net.sf.jaxme
Interface JMManager

All Known Implementing Classes:
Configuration.Manager

public interface JMManager

A JMManager controls the object factory (aka JAXBContext) for a given document type. The document type is both identified by its QName and its interface, which is extending JMElement.

Version:
$Id: JMManager.java,v 1.1 2003/08/29 18:07:57 joe Exp $
Author:
Jochen Wiedmann

Method Summary
 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.
 java.lang.Class getHandlerClass()
          Returns the document types handler class.
 java.lang.Class getMarshallerClass()
          Returns the document types marshaller class.
 java.lang.Class getPersistencyClass()
          Returns the persistency class.
 QName getQName()
          Returns the QName of the document type that this Manager controls.
 

Method Detail

getQName

public QName getQName()

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


getElementInterface

public java.lang.Class getElementInterface()

Returns the interface matching the document type. This must be a subinterface of JMElement.


getElementClass

public java.lang.Class getElementClass()

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


getHandlerClass

public java.lang.Class getHandlerClass()

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.


getMarshallerClass

public java.lang.Class getMarshallerClass()

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.


getPersistencyClass

public java.lang.Class getPersistencyClass()

Returns the persistency class. The persistency class must be able to store documents in a database, update, delete or retrieve them.