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

java.lang.Object
  extended byorg.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()
           
 java.lang.Class getElementClass()
          Returns the implementation class of the interface returned by getElementInterface().
 java.lang.Class getElementInterface()
          Returns the interface matching the document type.
 JAXBContextImpl getFactory()
          Returns the JAXBContextImpl, that created this manager.
 java.lang.Class getHandlerClass()
          Returns the document types handler class.
 java.lang.Class getMarshallerClass()
          Returns the document types marshaller 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.
 void setElementClass(java.lang.String pElementClass)
           
 void setElementInterface(java.lang.String pElementInterface)
           
 void setHandlerClass(java.lang.String pHandlerClass)
           
 void setMarshallerClass(java.lang.String pMarshallerClass)
           
 void setPmClass(java.lang.String pPersistencyClass)
           
 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

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()
Description copied from interface: JMManager

Returns the implementation class of the interface returned by getElementInterface().

Specified by:
getElementClass in interface JMManager

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. This must be a subinterface of JMElement.

Specified by:
getElementInterface in interface JMManager

setHandlerClass

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

getHandlerClass

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

Returns the document types handler class. This class must be implementing JMHandler and it must be able to convert the document type controlled by the manager into objects implementing the element interface.

Specified by:
getHandlerClass in interface JMManager

setMarshallerClass

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

getMarshallerClass

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

Returns the document types marshaller class. This class must be implementing JMXmlSerializer and it must be able to convert objects implementing the element interface into a stream of SAX events.

Specified by:
getMarshallerClass in interface JMManager

setPmClass

public void setPmClass(java.lang.String pPersistencyClass)
                throws java.lang.ClassNotFoundException
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