Skip to content

Upgrade to netex-java-model 3.0.0-SNAPSHOT and netex-parser-java 5.0.0-SNAPSHOT#354

Draft
vpaturet wants to merge 10 commits intomainfrom
upgrade-netex-java-model-3
Draft

Upgrade to netex-java-model 3.0.0-SNAPSHOT and netex-parser-java 5.0.0-SNAPSHOT#354
vpaturet wants to merge 10 commits intomainfrom
upgrade-netex-java-model-3

Conversation

@vpaturet
Copy link
Collaborator

@vpaturet vpaturet commented Mar 6, 2026

Summary

Upgrade to netex-java-model 3.0.0-SNAPSHOT (NeTEx 2.0 schema) and netex-parser-java 5.0.0-SNAPSHOT.

Based on update_netex_1_16_jakarta branch. Adapts to the following breaking API changes:

  • Enum rename: AllVehicleModesOfTransportEnumerationAllPublicTransportModesEnumeration
  • MultilingualString: getValue() replaced by mixed content model (getContent() returns List<Serializable>). Added MultilingualStringValue utility for extracting string values.
  • DatedServiceJourney: Replaced journeys now accessed via getReplacedJourneys() instead of being mixed into getJourneyRef() list. getJourneyRef() now returns a single element.

See OTP PR #7259 for reference migration patterns.

Test plan

  • All 262 existing tests pass

vpaturet added 6 commits March 6, 2026 10:40
Convert DatedServiceJourneyRef direct children to
replacedJourneys/DatedVehicleJourneyRef to match NeTEx 1.16 schema.
Fix UTF-16 to UTF-8 encoding.
…0-SNAPSHOT

Adapt to breaking changes in netex-java-model 3.0.0 (NeTEx 2.0 schema):
- Rename AllVehicleModesOfTransportEnumeration to AllPublicTransportModesEnumeration
- MultilingualString: getValue() replaced by mixed content model (getContent()),
  add MultilingualStringValue utility for extraction
- DatedServiceJourney: replaced journeys now accessed via getReplacedJourneys()
  instead of being mixed into getJourneyRef()
@vpaturet vpaturet changed the title Upgrade netex java model 3 Upgrade to netex-java-model 3.0.0-SNAPSHOT and netex-parser-java 5.0.0-SNAPSHOT Mar 6, 2026
vpaturet added 4 commits March 6, 2026 13:32
netex-java-model 3.0.0-SNAPSHOT is compiled with Java 21 (class file version 65.0).
Verify that the ReferenceToValidEntityTypeValidator allows
DatedVehicleJourneyRef to reference DatedServiceJourney entities.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 6, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots
57.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant