Arch4J 1.1

org.arch4j.persistence.castor
Class XMLObjectManager

java.lang.Object
  |
  +--org.arch4j.persistence.castor.XMLObjectManager

public class XMLObjectManager
extends Object

Helper class for creating your own persistence manager objects as part of the persistence layer.

Author:
Allan Wick

Constructor Summary
XMLObjectManager()
          Creates a new instance of XMLObjectManager
 
Method Summary
 StringBuffer buildXml(Object anObject)
          Create the xml string for the given object.
 String getMappingFilename()
          Get the filename used for mapping objects.
 Object parse(Reader aReader, Class aClass)
           
 void setMappingFilename(String aFilename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLObjectManager

public XMLObjectManager()
Creates a new instance of XMLObjectManager

Method Detail

getMappingFilename

public String getMappingFilename()
Get the filename used for mapping objects.


setMappingFilename

public void setMappingFilename(String aFilename)

buildXml

public StringBuffer buildXml(Object anObject)
                      throws PersistenceException
Create the xml string for the given object.

Parameters:
anObject - The object to build the xml for.
Returns:
The buffer with the xml in it.
PersistenceException

parse

public Object parse(Reader aReader,
                    Class aClass)

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.