Package org.jomc.model.modlet

Package class diagram package org.jomc.model.modlet
Object management and configuration modlet classes.

See: Description

Package org.jomc.model.modlet Description

Object management and configuration modlet classes.

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() );
      

See Also:
ModelHelper

Copyright © 2005–2015 The JOMC Project. All rights reserved.