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()
JMManager
Returns the QName of the document type that this Manager controls.
public void setElementClass(java.lang.String pElementClass) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.lang.Class getElementClass()
public void setElementInterface(java.lang.String pElementInterface) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.lang.Class getElementInterface()
JMManager
JMElement
.
However, for support of POJO's, we should not depend
on this.getElementInterface
in interface JMManager
public java.lang.Class getHandlerClass()
JMManager
getHandlerClass
in interface JMManager
public void setHandlerClass(java.lang.String pHandlerClass) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public void setDriverClass(java.lang.String pMarshallerClass) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.lang.Class getDriverClass()
JMManager
getDriverClass
in interface JMManager
public JMSAXDriver getDriver() throws org.xml.sax.SAXException
JMManager
public void setPmClass(java.lang.String pPersistencyClass) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.lang.Class getPmClass()
JMManager
Returns the persistency class. The persistency class must be able to store documents in a database, update, delete or retrieve them.
getPmClass
in interface JMManager
public JAXBContextImpl getFactory()
JMManager
Returns the JAXBContextImpl
,
that created this manager.
getFactory
in interface JMManager
public Configuration.Manager.Property createProperty()
public java.lang.String getProperty(java.lang.String pName)
JMManager
Returns a property value, which is used to configure the manager. The property value is set in the configuration file.
getProperty
in interface JMManager
pName
- The property namepublic void finish() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public JMSAXElementParser getHandler() throws org.xml.sax.SAXException
JMManager
getHandler
in interface JMManager
org.xml.sax.SAXException
public java.lang.Object getElementJ() throws JAXBException
JMManager
JMManager.getElementS()
, except that it throws a
different exception.getElementJ
in interface JMManager
JAXBException
public java.lang.Object getElementS() throws org.xml.sax.SAXException
JMManager
JMManager.getElementJ()
, except that it throws a
different exception.getElementS
in interface JMManager
org.xml.sax.SAXException