com.raritantechnologies.xml.dataCollection
Class FileXMLPersist

java.lang.Object
  extended bycom.raritantechnologies.xml.dataCollection.FileXMLPersist
All Implemented Interfaces:
IConfigurable, IXMLPersist

public class FileXMLPersist
extends java.lang.Object
implements IXMLPersist

Persists XML data to a File System.

XML Configuration Template:
    <XMLPersist class="com.raritantechnologies.xml.dataCollection.FileXMLPersist"
                   fileName="[ name of file to persist the XML to ]" />
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
FileXMLPersist()
           
 
Method Summary
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void saveXML(RaritanPageContext pageContext, org.w3c.dom.Document xmlDoc)
          Save the XML in org.w3c.dom.Document form.
 void saveXML(RaritanPageContext pageContext, org.w3c.dom.Element xmlElem)
          Save the XML in org.w3c.dom.Element form.
 void saveXML(RaritanPageContext pageContext, java.lang.String xmlString)
          Save the XML in String form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileXMLPersist

public FileXMLPersist()
Method Detail

saveXML

public void saveXML(RaritanPageContext pageContext,
                    java.lang.String xmlString)
Description copied from interface: IXMLPersist
Save the XML in String form.

Specified by:
saveXML in interface IXMLPersist

saveXML

public void saveXML(RaritanPageContext pageContext,
                    org.w3c.dom.Document xmlDoc)
Description copied from interface: IXMLPersist
Save the XML in org.w3c.dom.Document form.

Specified by:
saveXML in interface IXMLPersist

saveXML

public void saveXML(RaritanPageContext pageContext,
                    org.w3c.dom.Element xmlElem)
Description copied from interface: IXMLPersist
Save the XML in org.w3c.dom.Element form.

Specified by:
saveXML in interface IXMLPersist

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable