|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.igfay.jfig.JFigParser
Abstract class to parse a configuration file. Concrete classes parse either XML or INI file. This class contains common logic to resolve symbolic and property variables.
Constructor Summary | |
JFigParser(JFig config,
JFigLocatorIF jfigLocator)
Constructor to allow user to override configFileName default. |
Method Summary | |
protected void |
addPropertyValues()
|
java.util.Map |
getAllConfigFiles()
Returns the allConfigFiles. |
JFig |
getConfig()
|
protected JFigDictionary |
getConfigDictionary()
|
protected java.lang.String |
getConfigFileName()
|
JFigLocatorIF |
getJFigLocator()
|
protected static java.util.regex.Pattern |
getRegexGlobalSubstitution()
|
protected static java.util.regex.Pattern |
getRegexPropertyVariable()
|
protected static java.util.regex.Pattern |
getRegexSubstitution()
|
protected abstract boolean |
processConfig()
processConfig |
protected void |
resolveSymbolicValues()
Resolve symbolic values in the configuration. |
void |
setConfig(JFig config)
|
void |
setJFigLocator(JFigLocatorIF locatorIF)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JFigParser(JFig config, JFigLocatorIF jfigLocator)
Method Detail |
public java.util.Map getAllConfigFiles()
protected abstract boolean processConfig() throws JFigException
JFigException
- Description of Exceptionprotected void resolveSymbolicValues() throws JFigException
JFigException
protected void addPropertyValues()
protected JFigDictionary getConfigDictionary()
protected java.lang.String getConfigFileName()
protected static java.util.regex.Pattern getRegexPropertyVariable()
protected static java.util.regex.Pattern getRegexSubstitution() throws JFigException
JFigException
protected static java.util.regex.Pattern getRegexGlobalSubstitution() throws JFigException
JFigException
public JFig getConfig()
public void setConfig(JFig config)
config
- public JFigLocatorIF getJFigLocator()
public void setJFigLocator(JFigLocatorIF locatorIF)
locatorIF
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |