|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface ModelManager
Manages the object management and configuration model.
Entity resolution
JAXB
Validation
Transformation
Queries
getInstance(org.jomc.model.Modules, org.jomc.model.Implementation, java.lang.ClassLoader)getInstance(org.jomc.model.Modules, org.jomc.model.Implementation, org.jomc.model.Dependency, java.lang.ClassLoader)getInstance(org.jomc.model.Modules, java.lang.Object)getObject(org.jomc.model.Modules, org.jomc.model.Specification, org.jomc.model.Instance)
| Method Summary | ||
|---|---|---|
JAXBContext |
getContext()
Gets the object management and configuration JAXBContext. |
|
EntityResolver |
getEntityResolver()
Gets the object management and configuration entity resolver. |
|
Instance |
getInstance(Modules modules,
Implementation implementation,
ClassLoader classLoader)
Gets an instance of an implementation. |
|
Instance |
getInstance(Modules modules,
Implementation implementation,
Dependency dependency,
ClassLoader classLoader)
Gets an instance of an implementation for a dependency. |
|
Instance |
getInstance(Modules modules,
Object object)
Gets the instance of an object. |
|
LSResourceResolver |
getLSResourceResolver()
Gets the object management and configuration L/S resolver. |
|
Marshaller |
getMarshaller(boolean validating,
boolean formattedOutput)
Gets an object management and configuration Marshaller. |
|
Object |
getObject(Modules modules,
Specification specification,
Instance instance)
Gets the object of an instance. |
|
ObjectFactory |
getObjectFactory()
Gets the object management and configuration ObjectFactory. |
|
Schema |
getSchema()
Gets the object management and configuration schema. |
|
Unmarshaller |
getUnmarshaller(boolean validating)
Gets an object management and configuration Unmarshaller. |
|
|
transformModelObject(JAXBElement<T> modelObject,
Transformer transformer)
Transforms a given ModelObject with a given Transformer. |
|
void |
validateModelObject(JAXBElement<? extends ModelObject> modelObject)
Validates a given model object. |
|
void |
validateModules(Modules modules)
Validates modules. |
|
| Method Detail |
|---|
EntityResolver getEntityResolver()
LSResourceResolver getLSResourceResolver()
ObjectFactory getObjectFactory()
ObjectFactory.
ObjectFactory.
Schema getSchema()
throws IOException,
SAXException,
JAXBException
IOException - if reading schema resources fails.
SAXException - if parsing schema resources fails.
JAXBException - if unmarshalling schema resources fails.
JAXBContext getContext()
throws IOException,
SAXException,
JAXBException
JAXBContext.
JAXBContext.
IOException - if reading schema resources fails.
SAXException - if parsing schema resources fails.
JAXBException - if unmarshalling schema resources fails.
Marshaller getMarshaller(boolean validating,
boolean formattedOutput)
throws IOException,
SAXException,
JAXBException
Marshaller.
validating - true for a marshaller with additional schema validation support enabled; false
for a marshaller without additional schema validation support enabled.formattedOutput - true for the marshaller to produce formatted output; false for the
marshaller to not apply any formatting when marshalling.
Marshaller.
IOException - if reading schema resources fails.
SAXException - if parsing schema resources fails.
JAXBException - if unmarshalling schema resources fails.
Unmarshaller getUnmarshaller(boolean validating)
throws IOException,
SAXException,
JAXBException
Unmarshaller.
validating - true for an unmarshaller with additional schema validation support enabled;
false for an unmarshaller without additional schema validation support enabled.
Unmarshaller.
IOException - if reading schema resources fails.
SAXException - if parsing schema resources fails.
JAXBException - if unmarshalling schema resources fails.
void validateModelObject(JAXBElement<? extends ModelObject> modelObject)
throws NullPointerException,
ModelException,
IOException,
SAXException,
JAXBException
modelObject - The object to validate.
NullPointerException - if modelObject is null.
ModelException - if modelObject is invalid.
IOException - if reading schema resources fails.
SAXException - if parsing schema resources fails.
JAXBException - if unmarshalling schema resources fails.
void validateModules(Modules modules)
throws NullPointerException,
ModelException,
IOException,
SAXException,
JAXBException
modules - The modules to validate.
NullPointerException - if modules is null.
ModelException - if modules is invalid.
IOException - if reading schema resources fails.
SAXException - if parsing schema resources fails.
JAXBException - if unmarshalling schema resources fails.
<T extends ModelObject> T transformModelObject(JAXBElement<T> modelObject,
Transformer transformer)
throws NullPointerException,
IOException,
SAXException,
JAXBException,
TransformerException
ModelObject with a given Transformer.
T - The type of modelObject.modelObject - The ModelObject to transform.transformer - The Transformer to transform modelObject with.
modelObject transformed with transformer.
NullPointerException - if modelObject or transformer is null.
IOException - if reading schema resources fails.
SAXException - if parsing schema resources fails.
JAXBException - if binding fails.
TransformerException - if the transformation fails.
Instance getInstance(Modules modules,
Implementation implementation,
ClassLoader classLoader)
throws NullPointerException
modules - The modules declaring the instance to get.implementation - The implementation to get an instance of.classLoader - The class loader of the instance to get.
implementation or null if no instance is available.
NullPointerException - if modules, implementation or classLoader is null.
Instance getInstance(Modules modules,
Implementation implementation,
Dependency dependency,
ClassLoader classLoader)
throws NullPointerException
modules - The modules declaring the instance to get.implementation - The implementation to get an instance of.dependency - The dependency declaring the instance to get.classLoader - The class loader of the instance to get.
implementation or null if no instance is available.
NullPointerException - if modules, implementation, dependency or
classLoader is null.
Instance getInstance(Modules modules,
Object object)
throws NullPointerException
modules - The modules declaring the instance to get.object - The object to get the instance of.
object or null of nothing is known about object.
NullPointerException - if modules or object is null,
Object getObject(Modules modules,
Specification specification,
Instance instance)
throws NullPointerException,
InstantiationException
modules - The modules declaring the object to get.specification - The specification specifying the object to get.instance - The instance of the object to get.
instance or null if nothing is known about instance.
NullPointerException - if modules, specification or instance is null.
InstantiationException - if instantiating the object fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||