|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zphinx.spine.start.helpers.AbstractConfigHelper
public abstract class AbstractConfigHelper
AbstractConfigHelper serves as a base helper for objects which read data from an xml configuration file
Copyright ©Zphinx Software Solutions
| Field Summary | |
|---|---|
protected HashMap |
hash
A HashMap used to temporarily store our configuration data |
| Constructor Summary | |
|---|---|
AbstractConfigHelper()
Public Constructor |
|
| Method Summary | |
|---|---|
HashMap |
createConfig(String fileName)
Create the configuration objects from the configuration Filename given. |
HashMap |
createConfig(String fileName,
boolean validating,
boolean nameSpaceAware)
Create the configuration objects from the configuration Filename given. |
protected String |
getNodeData(Node node)
Gets the value of the node data |
protected void |
loopChildNodes(Node node)
Loops through the child nodes of this node |
protected abstract void |
readNodeTypes(Node node,
int type)
Reads the different types of nodes e.g Element node |
protected void |
recurseNodeTree(Node node)
Reads a node for it's sub nodes and creates our requisite objects |
abstract void |
resetHelper()
Resets the helper variables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HashMap hash
| Constructor Detail |
|---|
public AbstractConfigHelper()
| Method Detail |
|---|
public HashMap createConfig(String fileName)
fileName - The full name and path to the configuration file
public HashMap createConfig(String fileName,
boolean validating,
boolean nameSpaceAware)
fileName - The full name and path to the configuration filevalidating - A boolean indicating if this xml file should be validatednameSpaceAware - A boolean indicating if this xml file should be set to nameSpaceAware
protected void recurseNodeTree(Node node)
throws Throwable
node - A method to recurse through the xml node
Throwable
protected abstract void readNodeTypes(Node node,
int type)
throws NumberFormatException,
Throwable
Element node
node - The node to readtype - The type of node to be read e.g Node.ELEMENT_NODE
NumberFormatException
Throwable
protected void loopChildNodes(Node node)
throws Throwable
node - The node whose children will be read
Throwablepublic abstract void resetHelper()
protected String getNodeData(Node node)
node - The node to examine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||