In api.base 6 enum classes are currently defined which belong to the MDM application model (ScalarType, SequenceRepresentation, TypeSpecification, AxisType, VersionState, Interpolation). If a new enumeration is created in MDM / ODS, this is not known in Java and the OdsAdapter aborts with an exception when it is started up. Enums can not be created dynamically in Java, so it would be necessary to know all enumerations at compile time. To avoid this, the Java Enum feature should be switched to normal objects. This requires a rebuild in api.base and thus also in all available adapters (for example odsadapter).
See Bugzilla Bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=518821
we also need some code to read and cache the possible enum values in the odsadapter, otherwise we can't really make use of them.
Sorry about any confusion, but the above comment is from me, not Alex
The patch is in, and now also reads custom enumerations in the odsadapter.
The following changes in the API happend:
Enumeration, EnumerationValue and EnumRegistry have been introduced in org.eclipse.mdm.model
The enumerations in org.eclipse.mdm.model were changed to the class EnumerationValue
org.eclipse.mdm.api.base.query.Attribute.getEnumClass has been renamed to Attribute.getEnumObj and returns an object of type enumeration
usage of the new classes src/main/java/org/eclipse/mdm/api/dflt/model instead of enums
usage of the new classes in org.eclipse.mdm.api.odsadapter instead of enums
No changes to other projects like nucleus were necessary, so the api changes have mostly internal impact to the .api.-packages.