org.apache.ws.jaxme
Interface JMManager

All Known Implementing Classes:
Configuration.Manager

public interface JMManager

A JMManager controls the object factory (aka JAXBContext) for a given document type. The document type is both identified by its QName and its interface, which is extending JMElement.


Method Summary
 JMSAXDriver getDriver()
          Returns an instance of the document types driver class.
 java.lang.Class getDriverClass()
          Returns the document types driverr class.
 java.lang.Class getElementInterface()
          Returns the interface matching the document type.
 java.lang.Object getElementJ()
          Returns an instance of the element class.
 java.lang.Object getElementS()
          Returns an instance of the element class.
 JAXBContextImpl getFactory()
          Returns the JAXBContextImpl, that created this manager.
 JMSAXElementParser getHandler()
          Returns an instance of the document types handler class.
 java.lang.Class getHandlerClass()
          Returns the document types handler class.
 java.lang.Class getPmClass()
          Returns the persistency class.
 java.lang.String getProperty(java.lang.String pName)
          Returns a property value, which is used to configure the manager.
 QName getQName()
          Returns the QName of the document type that this Manager controls.
 

Method Detail

getProperty

java.lang.String getProperty(java.lang.String pName)

Returns a property value, which is used to configure the manager. The property value is set in the configuration file.

Parameters:
pName - The property name
Returns:
pValue The property value; null, if the property is not set.

getFactory

JAXBContextImpl getFactory()

Returns the JAXBContextImpl, that created this manager.


getQName

QName getQName()

Returns the QName of the document type that this Manager controls.


getElementInterface

java.lang.Class getElementInterface()
Returns the interface matching the document type. Usually, this is a a subinterface of JMElement. However, for support of POJO's, we should not depend on this.


getElementJ

java.lang.Object getElementJ()
                             throws JAXBException
Returns an instance of the element class. Same as getElementS(), except that it throws a different exception.

Throws:
JAXBException

getElementS

java.lang.Object getElementS()
                             throws org.xml.sax.SAXException
Returns an instance of the element class. Same as getElementJ(), except that it throws a different exception.

Throws:
org.xml.sax.SAXException

getHandlerClass

java.lang.Class getHandlerClass()
Returns the document types handler class.


getHandler

JMSAXElementParser getHandler()
                              throws org.xml.sax.SAXException
Returns an instance of the document types handler class.

Throws:
org.xml.sax.SAXException

getDriverClass

java.lang.Class getDriverClass()
Returns the document types driverr class.


getDriver

JMSAXDriver getDriver()
                      throws org.xml.sax.SAXException
Returns an instance of the document types driver class.

Throws:
org.xml.sax.SAXException

getPmClass

java.lang.Class getPmClass()

Returns the persistency class. The persistency class must be able to store documents in a database, update, delete or retrieve them.