com.notuvy.xml
Class PersistentJdom

java.lang.Object
  extended by com.notuvy.xml.SimpleJdom
      extended by com.notuvy.xml.PersistentJdom
Direct Known Subclasses:
GenericConfigurationFile, ScriptGenerator, WindowLocation

public abstract class PersistentJdom
extends SimpleJdom

A generic object that can be represented as XML and saved to a file. This is useful when the full DOM tree is small enough to be comfortably held all in memory. User: murali Date: Dec 30, 2007 Time: 7:56:40 AM


Field Summary
 
Fields inherited from class com.notuvy.xml.SimpleJdom
LOG
 
Constructor Summary
protected PersistentJdom(File pFileImage)
           
 
Method Summary
 File getFileImage()
           
 boolean isOnlySaveIfChanged()
           
 XmlIOStatus read()
           
 XmlIOStatus readIfFileExists()
           
 XmlIOStatus readOrCreate()
           
 XmlIOStatus save()
           
 void setOnlySaveIfChanged(boolean pOnlySaveIfChanged)
           
 
Methods inherited from class com.notuvy.xml.SimpleJdom
addChildElement, createFormat, createRoot, getChildInteger, getChildLong, getChildren, getChildrenOfContainer, getChildText, getFormat, getStorage, isValidRoot, parse, readFrom, readFrom, readFromContent, reportXmlParseError, rootName, saveTo, setStorage, toDocument, toString, toXml, toXmlString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistentJdom

protected PersistentJdom(File pFileImage)
Method Detail

getFileImage

public File getFileImage()

isOnlySaveIfChanged

public boolean isOnlySaveIfChanged()

setOnlySaveIfChanged

public void setOnlySaveIfChanged(boolean pOnlySaveIfChanged)

save

public XmlIOStatus save()

read

public XmlIOStatus read()

readIfFileExists

public XmlIOStatus readIfFileExists()

readOrCreate

public XmlIOStatus readOrCreate()


Copyright © 2013. All Rights Reserved.