Package com.ibm.di.config.xml
Class LoopFactory
- java.lang.Object
-
- com.ibm.di.config.xml.Factories
-
- com.ibm.di.config.xml.LoopFactory
-
public class LoopFactory extends Factories
Read/WriteLoopConfig
elements in XML format.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOOP_ATTR_NAME
static java.lang.String
LOOP_COLLECTION_TAG
static java.lang.String
LOOP_INIT_OPTION
static java.lang.String
LOOP_TAG
static java.lang.String
LOOP_TYPE_TAG
static java.lang.String
LOOP_WORK_NAME
-
Fields inherited from class com.ibm.di.config.xml.Factories
classMap, implMap, INHERIT_TAG, logger, MOD_TS_TAG, NAME_ATTRIBUTE, NAME_TAG, NULLBEHAVIOR, NULLBEHAVIORVALUE, NULLDEFINITION, NULLDEFINITIONVALUE, PARAMETER_TAG, parent, USER_COMMENT_ATTRIBUTE, VALUE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description LoopFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(BaseConfiguration bconfig, org.w3c.dom.Element elem)
Generate a XML element from a configuration object.void
build(LoopConfig config, org.w3c.dom.Element elem)
void
parse(BaseConfiguration bconfig, org.w3c.dom.Element elem)
Parse a XML element into a configuration object.void
parse(LoopConfig config, org.w3c.dom.Element elem)
-
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
-
-
-
-
Field Detail
-
LOOP_TAG
public static final java.lang.String LOOP_TAG
- See Also:
- Constant Field Values
-
LOOP_TYPE_TAG
public static final java.lang.String LOOP_TYPE_TAG
- See Also:
- Constant Field Values
-
LOOP_COLLECTION_TAG
public static final java.lang.String LOOP_COLLECTION_TAG
- See Also:
- Constant Field Values
-
LOOP_WORK_NAME
public static final java.lang.String LOOP_WORK_NAME
- See Also:
- Constant Field Values
-
LOOP_ATTR_NAME
public static final java.lang.String LOOP_ATTR_NAME
- See Also:
- Constant Field Values
-
LOOP_INIT_OPTION
public static final java.lang.String LOOP_INIT_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public void parse(BaseConfiguration bconfig, org.w3c.dom.Element elem) throws java.lang.Exception
Parse a XML element into a configuration object.- Overrides:
parse
in classFactories
- Parameters:
bconfig
- an instance of theBaseConfiguration
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 theBaseConfiguration
object.- Throws:
java.lang.Exception
- in case the configuration object the provided XML element represents is not recognized.
-
build
public void build(BaseConfiguration bconfig, org.w3c.dom.Element elem) throws java.lang.Exception
Generate a XML element from a configuration object.- Overrides:
build
in classFactories
- Parameters:
bconfig
- an instance of theBaseConfiguration
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:
java.lang.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.
-
parse
public void parse(LoopConfig config, org.w3c.dom.Element elem) throws java.lang.Exception
- Throws:
java.lang.Exception
-
build
public void build(LoopConfig config, org.w3c.dom.Element elem) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-