public class Configuration.Manager extends java.lang.Object implements JMManager
| Type | Property and Description |
|---|---|
Configuration.Manager.Property |
create |
| Modifier and Type | Class and Description |
|---|---|
class |
Configuration.Manager.Property |
| Constructor and Description |
|---|
Configuration.Manager() |
| Modifier and Type | Method and Description |
|---|---|
Configuration.Manager.Property |
createProperty() |
void |
finish() |
JMSAXDriver |
getDriver()
Returns an instance of the document types driver class.
|
java.lang.Class |
getDriverClass()
Returns the document types driverr class.
|
java.lang.Class |
getElementClass() |
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 |
getPrefix() |
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.
|
void |
setDriverClass(java.lang.String pMarshallerClass) |
void |
setElementClass(java.lang.String pElementClass) |
void |
setElementInterface(java.lang.String pElementInterface) |
void |
setHandlerClass(java.lang.String pHandlerClass) |
void |
setPmClass(java.lang.String pPersistencyClass)
Sets the persistence manager class.
|
void |
setPrefix(java.lang.String prefix)
Sets the suggested prefix for the elements namespace.
|
void |
setQName(QName pName) |
public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
public void setQName(QName pName)
public QName getQName()
JMManagerReturns the QName of the document type that this Manager controls.
public void setElementClass(java.lang.String pElementClass)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic java.lang.Class getElementClass()
public void setElementInterface(java.lang.String pElementInterface)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic java.lang.Class getElementInterface()
JMManagerJMElement.
However, for support of POJO's, we should not depend
on this.getElementInterface in interface JMManagerpublic java.lang.Class getHandlerClass()
JMManagergetHandlerClass in interface JMManagerpublic void setHandlerClass(java.lang.String pHandlerClass)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic void setDriverClass(java.lang.String pMarshallerClass)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic java.lang.Class getDriverClass()
JMManagergetDriverClass in interface JMManagerpublic JMSAXDriver getDriver() throws org.xml.sax.SAXException
JMManagerpublic void setPmClass(java.lang.String pPersistencyClass)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic java.lang.Class getPmClass()
JMManagerReturns the persistency class. The persistency class must be able to store documents in a database, update, delete or retrieve them.
getPmClass in interface JMManagerpublic JAXBContextImpl getFactory()
JMManagerReturns the JAXBContextImpl,
that created this manager.
getFactory in interface JMManagerpublic Configuration.Manager.Property createProperty()
public java.lang.String getProperty(java.lang.String pName)
JMManagerReturns a property value, which is used to configure the manager. The property value is set in the configuration file.
getProperty in interface JMManagerpName - The property namepublic void finish()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic JMSAXElementParser getHandler() throws org.xml.sax.SAXException
JMManagergetHandler in interface JMManagerorg.xml.sax.SAXExceptionpublic java.lang.Object getElementJ()
throws JAXBException
JMManagerJMManager.getElementS(), except that it throws a
different exception.getElementJ in interface JMManagerJAXBExceptionpublic java.lang.Object getElementS()
throws org.xml.sax.SAXException
JMManagerJMManager.getElementJ(), except that it throws a
different exception.getElementS in interface JMManagerorg.xml.sax.SAXException