org.apache.ws.jaxme.impl
Class Configuration.Manager

java.lang.Object
  extended by org.apache.ws.jaxme.impl.Configuration.Manager
All Implemented Interfaces:
JMManager
Enclosing class:
Configuration

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


Nested Class Summary
 class Configuration.Manager.Property
           
 
Constructor Summary
Configuration.Manager()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration.Manager

public Configuration.Manager()
Method Detail

getPrefix

public java.lang.String getPrefix()

setPrefix

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


setQName

public void setQName(QName pName)

getQName

public QName getQName()
Description copied from interface: JMManager

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

Specified by:
getQName in interface JMManager

setElementClass

public void setElementClass(java.lang.String pElementClass)
                     throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

getElementClass

public java.lang.Class getElementClass()

setElementInterface

public void setElementInterface(java.lang.String pElementInterface)
                         throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

getElementInterface

public java.lang.Class getElementInterface()
Description copied from interface: JMManager
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

getHandlerClass

public java.lang.Class getHandlerClass()
Description copied from interface: JMManager
Returns the document types handler class.

Specified by:
getHandlerClass in interface JMManager

setHandlerClass

public void setHandlerClass(java.lang.String pHandlerClass)
                     throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

setDriverClass

public void setDriverClass(java.lang.String pMarshallerClass)
                    throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

getDriverClass

public java.lang.Class getDriverClass()
Description copied from interface: JMManager
Returns the document types driverr class.

Specified by:
getDriverClass in interface JMManager

getDriver

public JMSAXDriver getDriver()
                      throws org.xml.sax.SAXException
Description copied from interface: JMManager
Returns an instance of the document types driver class.

Specified by:
getDriver in interface JMManager
Throws:
org.xml.sax.SAXException

setPmClass

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

Throws:
java.lang.ClassNotFoundException

getPmClass

public java.lang.Class getPmClass()
Description copied from interface: JMManager

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

getFactory

public JAXBContextImpl getFactory()
Description copied from interface: JMManager

Returns the JAXBContextImpl, that created this manager.

Specified by:
getFactory in interface JMManager

createProperty

public Configuration.Manager.Property createProperty()

getProperty

public java.lang.String getProperty(java.lang.String pName)
Description copied from interface: JMManager

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.

finish

public void finish()
            throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getHandler

public JMSAXElementParser getHandler()
                              throws org.xml.sax.SAXException
Description copied from interface: JMManager
Returns an instance of the document types handler class.

Specified by:
getHandler in interface JMManager
Throws:
org.xml.sax.SAXException

getElementJ

public java.lang.Object getElementJ()
                             throws JAXBException
Description copied from interface: JMManager
Returns an instance of the element class. Same as JMManager.getElementS(), except that it throws a different exception.

Specified by:
getElementJ in interface JMManager
Throws:
JAXBException

getElementS

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

Specified by:
getElementS in interface JMManager
Throws:
org.xml.sax.SAXException