| Class | Description |
|---|---|
| DefaultModelProcessor |
Default object management and configuration
ModelProcessor implementation. |
| DefaultModelProvider |
Default object management and configuration
ModelProvider implementation. |
| DefaultModelValidator |
Default object management and configuration
ModelValidator implementation. |
| ModelHelper |
Object management and configuration
Model helper. |
The object management and configuration model is identified by the http://jomc.org/model public id in
a ModelContext. The any property of a Model instance searched using that public id will
hold a JAXBElement<Modules> instance to access using the getAnyElement method of class
Model.
final ModelContext modelContext = ModelContextFactory.newInstance().newModelContext( a class loader );
final Model model = modelContext.findModel( ModelObject.MODEL_PUBLIC_ID );
final Model processed = modelContext.processModel( model );
final ModelValidationReport validationReport = modelContext.validateModel( processed );
final Modules modules = ModelHelper.getModules( model );
final Model model = new Model();
model.setIdentifier( ModelObject.MODEL_PUBLIC_ID );
ModelHelper.setModules( model, new Modules() );
ModelHelperCopyright © 2005–2014 The JOMC Project. All rights reserved.