org.igfay.jfig
Class XMLJFigParser

java.lang.Object
  extended byorg.igfay.jfig.JFigParser
      extended byorg.igfay.jfig.XMLJFigParser

public class XMLJFigParser
extends JFigParser

Author:
conrad4 Parse configuration files that are in XML format.

Constructor Summary
XMLJFigParser(JFig config, JFigLocatorIF jfigLocator)
           
 
Method Summary
protected  boolean isNewFile(java.lang.String fileName)
          Ensure same file is not processed multiple times
protected  org.w3c.dom.Element parse()
          Parse the config file into an xml document
protected  boolean processConfig()
          Process XML Configuration file
protected  void processEntries(org.w3c.dom.Element sectionNode, java.lang.String sectionString)
          For each entry element, process key value pair
protected  void processIncludes(org.w3c.dom.Element element)
           
protected  void processSections(org.w3c.dom.Element element)
          For each section element, find the entry elements
 
Methods inherited from class org.igfay.jfig.JFigParser
addPropertyValues, getAllConfigFiles, getConfig, getConfigDictionary, getConfigFileName, getJFigLocator, getRegexGlobalSubstitution, getRegexPropertyVariable, getRegexSubstitution, resolveSymbolicValues, setConfig, setJFigLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLJFigParser

public XMLJFigParser(JFig config,
                     JFigLocatorIF jfigLocator)
Method Detail

processConfig

protected boolean processConfig()
                         throws JFigException
Process XML Configuration file

Specified by:
processConfig in class JFigParser
Returns:
Description of the Returned Value
Throws:
JFigException - Description of Exception

processIncludes

protected void processIncludes(org.w3c.dom.Element element)
                        throws JFigException
Throws:
JFigException

processSections

protected void processSections(org.w3c.dom.Element element)
For each section element, find the entry elements


processEntries

protected void processEntries(org.w3c.dom.Element sectionNode,
                              java.lang.String sectionString)
For each entry element, process key value pair


isNewFile

protected boolean isNewFile(java.lang.String fileName)
Ensure same file is not processed multiple times

Parameters:
fileName -
Returns:
boolean

parse

protected org.w3c.dom.Element parse()
                             throws JFigException,
                                    XMLParseException
Parse the config file into an xml document

Returns:
Throws:
JFigException
XMLParseException