org.apache.ws.jaxme.impl

Class Configuration.Manager

Enclosing Class:
Configuration
Implemented Interfaces:
JMManager

public class Configuration.Manager
extends java.lang.Object
implements JMManager

Nested Class Summary

class
Configuration.Manager.Property

Method Summary

Configuration.Manager.Property
createProperty()
void
finish()
JMSAXDriver
getDriver()
Returns an instance of the document types driver class.
Class
getDriverClass()
Returns the document types driverr class.
Class
getElementClass()
Class
getElementInterface()
Returns the interface matching the document type.
Object
getElementJ()
Returns an instance of the element class.
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.
Class
getHandlerClass()
Returns the document types handler class.
Class
getPmClass()
Returns the persistency class.
String
getPrefix()
String
getProperty(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(String pMarshallerClass)
void
setElementClass(String pElementClass)
void
setElementInterface(String pElementInterface)
void
setHandlerClass(String pHandlerClass)
void
setPmClass(String pPersistencyClass)
Sets the persistence manager class.
void
setPrefix(String prefix)
Sets the suggested prefix for the elements namespace.
void
setQName(QName pName)

Method Details

createProperty

public Configuration.Manager.Property createProperty()

finish

public void finish()
            throws SAXException

getDriver

public JMSAXDriver getDriver()
            throws SAXException
Returns an instance of the document types driver class.
Specified by:
getDriver in interface JMManager

getDriverClass

public Class getDriverClass()
Returns the document types driverr class.
Specified by:
getDriverClass in interface JMManager

getElementClass

public Class getElementClass()

getElementInterface

public 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.
Specified by:
getElementInterface in interface JMManager

getElementJ

public Object getElementJ()
            throws JAXBException
Returns an instance of the element class. Same as JMManager.getElementS(), except that it throws a different exception.
Specified by:
getElementJ in interface JMManager

getElementS

public Object getElementS()
            throws SAXException
Specified by:
getElementS in interface JMManager

getFactory

public JAXBContextImpl getFactory()
Returns the JAXBContextImpl, that created this manager.
Specified by:
getFactory in interface JMManager

getHandler

public JMSAXElementParser getHandler()
            throws SAXException
Returns an instance of the document types handler class.
Specified by:
getHandler in interface JMManager

getHandlerClass

public Class getHandlerClass()
Returns the document types handler class.
Specified by:
getHandlerClass in interface JMManager

getPmClass

public Class getPmClass()
Returns the persistency class. The persistency class must be able to store documents in a database, update, delete or retrieve them.
Specified by:
getPmClass in interface JMManager

getPrefix

public String getPrefix()

getProperty

public String getProperty(String pName)
Returns a property value, which is used to configure the manager. The property value is set in the configuration file.
Specified by:
getProperty in interface JMManager
Parameters:
pName - The property name
Returns:
pValue The property value; null, if the property is not set.

getQName

public QName getQName()
Returns the QName of the document type that this Manager controls.
Specified by:
getQName in interface JMManager

setDriverClass

public void setDriverClass(String pMarshallerClass)
            throws ClassNotFoundException

setElementClass

public void setElementClass(String pElementClass)
            throws ClassNotFoundException

setElementInterface

public void setElementInterface(String pElementInterface)
            throws ClassNotFoundException

setHandlerClass

public void setHandlerClass(String pHandlerClass)
            throws ClassNotFoundException

setPmClass

public void setPmClass(String pPersistencyClass)
            throws ClassNotFoundException
Sets the persistence manager class.

setPrefix

public void setPrefix(String prefix)
Sets the suggested prefix for the elements namespace.

setQName

public void setQName(QName pName)