-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactored core model classes and support for collections of model in… #256
Refactored core model classes and support for collections of model in… #256
Commits on Jan 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for af9ad3e - Browse repository at this point
Copy the full SHA af9ad3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 19c547c - Browse repository at this point
Copy the full SHA 19c547cView commit details -
Refactored IBindingContext to move supporting interfaces to be child …
…interfaces. Removed the need to instances of IDataTypeHandler. Now IClassDataTypeHandler functionality is provided by IFeatureComplexItemValueHandler and JavaTypeAdapterDataTypeHandler is provided by IFeatureScalarItemValueHandler. Refactored bound class hierarchy to be more consistent with needed methods. - Moved Java field handling to IFeatureJavaField from IBoundNamedModelInstance - Moved JSON key and item handling to IBoundModelInstance. - Reworked XML and JSON reading and writing. - Added IBoundChoiceGroupInstance interface for choice groups.
Configuration menu - View commit details
-
Copy full SHA for 9a1de8a - Browse repository at this point
Copy the full SHA 9a1de8aView commit details -
Refactored ILet statement construction to use static factory methods.
Cleaned up IModelPropertyInfo and implementations, relocating supporting classes as child classes. Implemented a IModelInstance item parsing as IModelPropertyInfo.IReadHandler, allowing all item parsing to be implemented in the format-specific parsing classes, i.e. MetaschemaJsonReader, MetaschemaXmlReader.
Configuration menu - View commit details
-
Copy full SHA for 2e72f5f - Browse repository at this point
Copy the full SHA 2e72f5fView commit details -
Cleaned up IModelPropertyInfo readItems methods, which now return the…
… parsed value. Eliminated the need for IPropertyCollector instances.
Configuration menu - View commit details
-
Copy full SHA for bdc4897 - Browse repository at this point
Copy the full SHA bdc4897View commit details -
Renamed many instance implementation classes to ensure consistent use…
… of terminology. Prior the terms "property" and "instance" were used interchangeably, which could cause some confusion.
Configuration menu - View commit details
-
Copy full SHA for 2fb15b7 - Browse repository at this point
Copy the full SHA 2fb15b7View commit details -
Refactored XML and JSON item writing to use a shared IModelInstanceCo…
…llectionInfo.IWriteHandler implementation, allowing all item writing to be implemented in the format-specific classes, i.e. MetaschemaJsonWriter, MetaschemaXmlWriter.
Configuration menu - View commit details
-
Copy full SHA for 1424488 - Browse repository at this point
Copy the full SHA 1424488View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fe9042 - Browse repository at this point
Copy the full SHA 6fe9042View commit details -
Aligned annotations with class generation, adding support for many missing annotation entries.
Configuration menu - View commit details
-
Copy full SHA for c046172 - Browse repository at this point
Copy the full SHA c046172View commit details -
Fixed default value handling which wasn't producing empty collection …
…for unparsed model instances. Refactored JSON key handling to determine the JSON key on a per item basis. This is needed for ChoiceGroups. Fixed IBindingMatcher to use the correct class type.
Configuration menu - View commit details
-
Copy full SHA for b0ab481 - Browse repository at this point
Copy the full SHA b0ab481View commit details -
Added binding support for choice groups.
Fixed some PMD errors.
Configuration menu - View commit details
-
Copy full SHA for 744a3af - Browse repository at this point
Copy the full SHA 744a3afView commit details -
Moved JSON reading and writing code from IItemValueHandler to Metasch…
…emaJsonReader and MetaschemaJsonWriter using dispatch methods. This allows are IO code to be implemented withing the JSON format-specific implementation.
Configuration menu - View commit details
-
Copy full SHA for e224ac0 - Browse repository at this point
Copy the full SHA e224ac0View commit details -
Moved XML reading and writing code from IItemValueHandler to Metasche…
…maXmlReader and MetaschemaXmlWriter using dispatch methods. This allows are IO code to be implemented withing the XML format-specific implementation.
Configuration menu - View commit details
-
Copy full SHA for ff882ce - Browse repository at this point
Copy the full SHA ff882ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6addaae - Browse repository at this point
Copy the full SHA 6addaaeView commit details -
Refactored instance class hierarchy to support grouped and ungrouped …
…model instances, with minimal implementation. Cleaned up getDefaultValue and getEffectiveDefaultValue methods. Implemented choice group writing for XML, JSON, and YAML. Initial commit of the Metaschema module bindings.
Configuration menu - View commit details
-
Copy full SHA for 7b7b731 - Browse repository at this point
Copy the full SHA 7b7b731View commit details -
Cleaned up IBoundGroupedFieldInstance implementations to use only the…
… complex form, since a grouped item must have a bound class to determine its item type. Cleaned up JSON value key naming code. Adjusted the name used during code generation to use the value key name if available. This provides a more sensible name for Java property get and set methods created during code generation. Added support for deprecated on allowed value enumerations.
Configuration menu - View commit details
-
Copy full SHA for caf16e3 - Browse repository at this point
Copy the full SHA caf16e3View commit details -
Performed some code cleanup and formatting.
Fixed the compile error in SimpleFieldInstance by creating the ISimpleScalarItemValueJavaField interface to combine the interfaces used and point the getValue and setValue methods to the correct implementation.
Configuration menu - View commit details
-
Copy full SHA for b9a0297 - Browse repository at this point
Copy the full SHA b9a0297View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29e6200 - Browse repository at this point
Copy the full SHA 29e6200View commit details -
Fixed ordering of generated flag fields. They will now be ordered in …
…the order in which they are declared in the Metaschema module. Fixed compile errors.
Configuration menu - View commit details
-
Copy full SHA for def8f86 - Browse repository at this point
Copy the full SHA def8f86View commit details -
Renamed model interfaces for greater consistency.
Cleaned up bound module loading in DefaultBindingContext. Stubbed out grouped instance implementations. Started refactor of choice group instances. Still need to work on Metapath items and other unimplemented methods. Added testing of assemblies with various types of fields and flags. Refactored DefaultJsonDeserializer to read a root element without the need to produce a Metapath item first. Implemented new unit tests to test the model bindings. Adjusted the class generation for grouped instances to allow for extended classes where definitions are used by reference. Implemented subclass generation for choice group instances. Updated generated Metaschema module classes.
Configuration menu - View commit details
-
Copy full SHA for 1587382 - Browse repository at this point
Copy the full SHA 1587382View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a6b9b5 - Browse repository at this point
Copy the full SHA 1a6b9b5View commit details -
Removed "binding" interfaces and classes, flattening these into the r…
…elated "bound" interfaces and classes.
Configuration menu - View commit details
-
Copy full SHA for 0340a6e - Browse repository at this point
Copy the full SHA 0340a6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd93213 - Browse repository at this point
Copy the full SHA bd93213View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb3e8d2 - Browse repository at this point
Copy the full SHA eb3e8d2View commit details -
Fixed all identified bugs in XML parsing.
Added support for parsing XML fields as a root element.
Configuration menu - View commit details
-
Copy full SHA for a3b7c49 - Browse repository at this point
Copy the full SHA a3b7c49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c9bee8 - Browse repository at this point
Copy the full SHA 5c9bee8View commit details -
Some progress towards XML writing. Need to implement choice groups st…
…ill. Fixed miscellaneous compile errors in other modules.
Configuration menu - View commit details
-
Copy full SHA for 1025f39 - Browse repository at this point
Copy the full SHA 1025f39View commit details -
Fixed issues with the XML reader.
Fixed compile errors for other modules to align with recent changes.
Configuration menu - View commit details
-
Copy full SHA for 7e3a331 - Browse repository at this point
Copy the full SHA 7e3a331View commit details -
Fixed remaining unit test failures.
Fixed some compile issues. Fixed remaining unit tests.
Configuration menu - View commit details
-
Copy full SHA for d72569c - Browse repository at this point
Copy the full SHA d72569cView commit details -
Added support for choice group JSON reading, but encountered a bug in…
… the parser use.
Configuration menu - View commit details
-
Copy full SHA for 48e579a - Browse repository at this point
Copy the full SHA 48e579aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1a221d - Browse repository at this point
Copy the full SHA c1a221dView commit details -
Configuration menu - View commit details
-
Copy full SHA for bba78e9 - Browse repository at this point
Copy the full SHA bba78e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37c20c8 - Browse repository at this point
Copy the full SHA 37c20c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a87926 - Browse repository at this point
Copy the full SHA 0a87926View commit details -
Moved Metaschema module binding classes to a subdirectory to help wit…
…h change integration. Started work on Metaschema module wrappers for bound objects.
Configuration menu - View commit details
-
Copy full SHA for 593052b - Browse repository at this point
Copy the full SHA 593052bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1dd6083 - Browse repository at this point
Copy the full SHA 1dd6083View commit details -
Configuration menu - View commit details
-
Copy full SHA for e309ace - Browse repository at this point
Copy the full SHA e309aceView commit details -
Completed work on a Metaschema module loader that uses the Metaschema…
… module binding instead of the XML parser. Metaschema modules in XML, JSON, and YAML can now be fully read!
Configuration menu - View commit details
-
Copy full SHA for 07a7c7c - Browse repository at this point
Copy the full SHA 07a7c7cView commit details -
Added Metaschema module loader support for entity resolution. Tested …
…with OSCAL Metaschema modules.
Configuration menu - View commit details
-
Copy full SHA for 7ea4710 - Browse repository at this point
Copy the full SHA 7ea4710View commit details -
Refactored container handling code to reuse the core model implementa…
…tion where possible. Refactored group-as namespace handling to allow for no namespace situations. Implemented getEffectiveGroupAsNamespace to handle the default case of using the module namespace where no group-as support is provided. Relocated the IModulePostProcessor interface to the new IModuleLoader interface. Refactored flag and field name handling for a cleaner implementation. This new approach uses "name" as the binding annotation value for flags, instead of "useName". Completed binding support. All current JUnit tests run without error. Added support for a model(node) Metapath function that gets a nodeset based on the underlying Metaschema module model for the node.
Configuration menu - View commit details
-
Copy full SHA for c6a0b77 - Browse repository at this point
Copy the full SHA c6a0b77View commit details -
Refactored core model interfaces to reduce inheritance conflicts.
Fixed remaining JUnit and schema generation bugs.
Configuration menu - View commit details
-
Copy full SHA for 3231f85 - Browse repository at this point
Copy the full SHA 3231f85View commit details -
Configuration menu - View commit details
-
Copy full SHA for a89ece3 - Browse repository at this point
Copy the full SHA a89ece3View commit details -
Configuration menu - View commit details
-
Copy full SHA for f21e4de - Browse repository at this point
Copy the full SHA f21e4deView commit details -
Performed some overall interface cleanup.
Refactored JSON schema generator. Many improvements to the indexing approach used to determine which definitions become global definitions in the JSON schema. Fixed missing properties in choice group items. Improved JSON documentation to include titles and descriptions on properties. JSON and XML schema generation for choice groups is working.
Configuration menu - View commit details
-
Copy full SHA for 8dc5838 - Browse repository at this point
Copy the full SHA 8dc5838View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ef5f2c - Browse repository at this point
Copy the full SHA 1ef5f2cView commit details -
Fixed a bug causing constraint targets to not get parsed and instead …
…end up as null. Fixed a bug causing empty annotation documentation in XML for enumerated values with no description.
Configuration menu - View commit details
-
Copy full SHA for 53c5203 - Browse repository at this point
Copy the full SHA 53c5203View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2da5a5d - Browse repository at this point
Copy the full SHA 2da5a5dView commit details