com.ibm.di.config.xml
Class SimulationFactory

java.lang.Object
  extended by com.ibm.di.config.xml.Factories
      extended by com.ibm.di.config.xml.SimulationFactory

public class SimulationFactory
extends Factories

Read/Write SimulationConfig elements in XML


Field Summary
static String COMPONENT_NAME_ATTR
           
static String COMPONENT_STATE_ATTR
           
static String COMPONENT_TAG
           
static String PROXY_SETTINGS
           
static String SIMULATE_TAG
           
static String SIMULATION_STATES
           
 
Fields inherited from class com.ibm.di.config.xml.Factories
classMap, implMap, INHERIT_TAG, logger, NAME_ATTRIBUTE, NAME_TAG, NULLBEHAVIOR, NULLBEHAVIORVALUE, NULLDEFINITION, NULLDEFINITIONVALUE, PARAMETER_TAG, parent, USER_COMMENT_ATTRIBUTE, VALUE_ATTRIBUTE
 
Constructor Summary
SimulationFactory()
           
 
Method Summary
 void build(BaseConfiguration config, Element elem)
          Generate a XML element from a configuration object.
 void parse(BaseConfiguration config, Element elem)
          Parse a XML element into a configuration object.
 
Methods inherited from class com.ibm.di.config.xml.Factories
debug, dump, getBaseName, getClassTag, getFactory, getImpl, getInheritsFrom, getNodeText, getNodeTextByName, getParameter, getParameters, getSingleElement, isDebugMode, logmsg, setBaseName, setInheritsFrom, setParameter, setParameters, setSingleElement, setSingleElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIMULATE_TAG

public static final String SIMULATE_TAG
See Also:
Constant Field Values

PROXY_SETTINGS

public static final String PROXY_SETTINGS
See Also:
Constant Field Values

SIMULATION_STATES

public static final String SIMULATION_STATES
See Also:
Constant Field Values

COMPONENT_TAG

public static final String COMPONENT_TAG
See Also:
Constant Field Values

COMPONENT_NAME_ATTR

public static final String COMPONENT_NAME_ATTR
See Also:
Constant Field Values

COMPONENT_STATE_ATTR

public static final String COMPONENT_STATE_ATTR
See Also:
Constant Field Values
Constructor Detail

SimulationFactory

public SimulationFactory()
Method Detail

parse

public void parse(BaseConfiguration config,
                  Element elem)
           throws Exception
Parse a XML element into a configuration object.

Overrides:
parse in class Factories
Parameters:
config - an instance of the BaseConfiguration class which internal parameters will get set based on the information from the provided XML Element.
elem - this is a part of the XML tree that represents the BaseConfiguration object.
Throws:
Exception - in case the configuration object the provided XML element represents is not recognized.

build

public void build(BaseConfiguration config,
                  Element elem)
           throws Exception
Generate a XML element from a configuration object.

Overrides:
build in class Factories
Parameters:
config - an instance of the BaseConfiguration class which internal parameters will be represented as a XML sub-tree.
elem - this is the part of the XML tree where the config object's XML representation will be attached to.
Throws:
Exception - in case the tag name of the provided XML element is not recognized as a valid name which is used for configuration object representation as a XML.