com.notuvy.util
Class GenericConfigurationFile

java.lang.Object
  extended by com.notuvy.xml.SimpleJdom
      extended by com.notuvy.xml.PersistentJdom
          extended by com.notuvy.util.GenericConfigurationFile

public class GenericConfigurationFile
extends PersistentJdom

A utility to represent all the application configuration settings as an XML document. User: murali Date: Dec 30, 2007 Time: 7:56:40 AM


Nested Class Summary
static class GenericConfigurationFile.Field
           
static class GenericConfigurationFile.TextField
           
static class GenericConfigurationFile.TextValueField
          Process text and store the value locally in a ValueHolder.
 
Field Summary
 
Fields inherited from class com.notuvy.xml.SimpleJdom
LOG
 
Constructor Summary
GenericConfigurationFile(File pFileImage)
           
 
Method Summary
 GenericConfigurationFile add(GenericConfigurationFile.Field pField)
           
protected  void parse(org.jdom.Element pRoot)
           
 String rootName()
           
 org.jdom.Element toXml()
          Return this object as a sub-element to be inserted within another object.
 
Methods inherited from class com.notuvy.xml.PersistentJdom
getFileImage, isOnlySaveIfChanged, read, readIfFileExists, readOrCreate, save, setOnlySaveIfChanged
 
Methods inherited from class com.notuvy.xml.SimpleJdom
addChildElement, createFormat, createRoot, getChildInteger, getChildLong, getChildren, getChildrenOfContainer, getChildText, getFormat, getStorage, isValidRoot, readFrom, readFrom, readFromContent, reportXmlParseError, saveTo, setStorage, toDocument, toString, toXmlString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericConfigurationFile

public GenericConfigurationFile(File pFileImage)
Method Detail

add

public GenericConfigurationFile add(GenericConfigurationFile.Field pField)

rootName

public final String rootName()
Overrides:
rootName in class SimpleJdom

toXml

public final org.jdom.Element toXml()
Description copied from class: SimpleJdom
Return this object as a sub-element to be inserted within another object. This does NOT return a Document representation.

Specified by:
toXml in class SimpleJdom
Returns:
Element representation suitable for insertion into another object.

parse

protected final void parse(org.jdom.Element pRoot)
Specified by:
parse in class SimpleJdom


Copyright © 2013. All Rights Reserved.