com.zphinx.spine.start.helpers.impl
Class ConfigurationHelper

java.lang.Object
  extended by com.zphinx.spine.start.helpers.AbstractConfigHelper
      extended by com.zphinx.spine.start.helpers.impl.ConfigurationHelper

public class ConfigurationHelper
extends AbstractConfigHelper

ConfigurationHelper creates the Hashmap used by the SpineConfiguration helper from a known configuration file

Version:
$1.0

Copyright ©Zphinx Software Solutions

Author:
David Ladapo

Field Summary
 
Fields inherited from class com.zphinx.spine.start.helpers.AbstractConfigHelper
hash
 
Constructor Summary
ConfigurationHelper()
          Public Constructor
 
Method Summary
 HashMap createConfig(String fileName)
          Create the configuration objects from the configuration Filename given.
protected  void readNodeTypes(Node node, int type)
          Reads the different types of nodes e.g Element node
 void resetHelper()
          Resets the helper variables
 
Methods inherited from class com.zphinx.spine.start.helpers.AbstractConfigHelper
createConfig, getNodeData, loopChildNodes, recurseNodeTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationHelper

public ConfigurationHelper()
Public Constructor

Method Detail

createConfig

public HashMap createConfig(String fileName)
Create the configuration objects from the configuration Filename given. This must be the full path to the configuration file

Overrides:
createConfig in class AbstractConfigHelper
Parameters:
fileName - The name/path to the configuration file
Returns:
The Hashmap created from the contents of the configuration

resetHelper

public void resetHelper()
Resets the helper variables

Specified by:
resetHelper in class AbstractConfigHelper

readNodeTypes

protected void readNodeTypes(Node node,
                             int type)
                      throws NumberFormatException,
                             Throwable
Description copied from class: AbstractConfigHelper
Reads the different types of nodes e.g Element node

Specified by:
readNodeTypes in class AbstractConfigHelper
Parameters:
node - The node to read
type - The type of node to be read e.g Node.ELEMENT_NODE
Throws:
NumberFormatException
Throwable