org.jomc.model
Interface ModelManager

Package class diagram package ModelManager
All Known Implementing Classes:
DefaultModelManager

public interface ModelManager

Manages the object management and configuration model.

Resource management

Binding management

Validation management

Version:
$Id: ModelManager.java 891 2009-11-02 03:40:00Z schulte2005 $
Author:
Christian Schulte

Method Summary
 javax.xml.bind.JAXBContext getContext(ClassLoader classLoader)
          Gets a new object management and configuration JAXB context instance.
 EntityResolver getEntityResolver(ClassLoader classLoader)
          Gets a new object management and configuration entity resolver instance.
 javax.xml.bind.Marshaller getMarshaller(ClassLoader classLoader)
          Gets a new object management and configuration JAXB marshaller instance.
 LSResourceResolver getResourceResolver(ClassLoader classLoader)
          Gets a new object management and configuration L/S resource resolver instance.
 Schema getSchema(ClassLoader classLoader)
          Gets a new object management and configuration JAXP schema instance.
 javax.xml.bind.Unmarshaller getUnmarshaller(ClassLoader classLoader)
          Gets a new object management and configuration JAXB unmarshaller instance.
 

Method Detail

getEntityResolver

EntityResolver getEntityResolver(ClassLoader classLoader)
                                 throws NullPointerException
Gets a new object management and configuration entity resolver instance.

Parameters:
classLoader - The class loader to use for resolving entities.
Returns:
A new object management and configuration entity resolver instance resolving entities using the given class loader.
Throws:
NullPointerException - if classLoader is null.

getResourceResolver

LSResourceResolver getResourceResolver(ClassLoader classLoader)
                                       throws NullPointerException
Gets a new object management and configuration L/S resource resolver instance.

Parameters:
classLoader - The class loader to use for resolving entities.
Returns:
A new object management and configuration L/S resource resolver instance resolving entities using the given class loader.
Throws:
NullPointerException - if classLoader is null.

getSchema

Schema getSchema(ClassLoader classLoader)
                 throws NullPointerException,
                        IOException,
                        SAXException,
                        javax.xml.bind.JAXBException
Gets a new object management and configuration JAXP schema instance.

Parameters:
classLoader - The class loader to use for loading schema resources.
Returns:
A new object management and configuration JAXP schema instance loaded using the given class loader.
Throws:
NullPointerException - if classLoader is null.
IOException - if reading schema resources fails.
SAXException - if parsing schema resources fails.
javax.xml.bind.JAXBException - if unmarshalling schema resources or creating a context fails.

getContext

javax.xml.bind.JAXBContext getContext(ClassLoader classLoader)
                                      throws NullPointerException,
                                             IOException,
                                             SAXException,
                                             javax.xml.bind.JAXBException
Gets a new object management and configuration JAXB context instance.

Parameters:
classLoader - The class loader to create the context with.
Returns:
A new object management and configuration JAXB context instance created using the given class loader.
Throws:
NullPointerException - if classLoader is null.
IOException - if reading schema resources fails.
SAXException - if parsing schema resources fails.
javax.xml.bind.JAXBException - if unmarshalling schema resources or creating a context fails.

getMarshaller

javax.xml.bind.Marshaller getMarshaller(ClassLoader classLoader)
                                        throws NullPointerException,
                                               IOException,
                                               SAXException,
                                               javax.xml.bind.JAXBException
Gets a new object management and configuration JAXB marshaller instance.

Parameters:
classLoader - The class loader to create the marshaller with.
Returns:
A new object management and configuration JAXB marshaller instance created using the given class loader.
Throws:
NullPointerException - if classLoader is null.
IOException - if reading schema resources fails.
SAXException - if parsing schema resources fails.
javax.xml.bind.JAXBException - if unmarshalling schema resources or creating a marshaller fails.

getUnmarshaller

javax.xml.bind.Unmarshaller getUnmarshaller(ClassLoader classLoader)
                                            throws NullPointerException,
                                                   IOException,
                                                   SAXException,
                                                   javax.xml.bind.JAXBException
Gets a new object management and configuration JAXB unmarshaller instance.

Parameters:
classLoader - The class loader to create the unmarshaller with.
Returns:
A new object management and configuration JAXB unmarshaller instance created using the given class loader.
Throws:
NullPointerException - if classLoader is null.
IOException - if reading schema resources fails.
SAXException - if parsing schema resources fails.
javax.xml.bind.JAXBException - if unmarshalling schema resources or creating an unmarshaller fails.


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.