|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.config.xml.Factories
com.ibm.di.config.xml.AssemblyLineFactory
public class AssemblyLineFactory
This class implements the reading and writing of a AssemblyLineConfig
in XML format.
Field Summary | |
---|---|
static String |
ASSEMBLYLINE_TAG
XML tag - "AssemblyLine" |
static String |
CALLPARAM_TAG
XML tag - "CallParam" |
static String |
CALLRETURN_TAG
IO setting - "CallReturn" |
static String |
CONNECTORS_TAG
XML tag - "Connectors" |
static String |
EPILOG_TAG
XML tag - "Epilog" |
static String |
EPILOG2_TAG
XML tag - "Epilog2" |
static String |
INIT_PARAMS_TAG
XML tag - "InitParams" |
static String |
IOSETTINGS_DEFAULT
IO setting - "DefaultValue" |
static String |
IOSETTINGS_INPUT
IO setting - "InputParameters" |
static String |
IOSETTINGS_NULLBEHAVIOR
IO setting - "NullBehavior" |
static String |
IOSETTINGS_NULLBEHAVIORVALUE
IO setting - "NullBehaviorValue" |
static String |
IOSETTINGS_OUTPUT
IO setting - "OutputParameters" |
static String |
IOSETTINGS_REQUIRED
IO setting - "Syntax" |
static String |
IOSETTINGS_SYNTAX
IO setting - "Syntax" |
static String |
IOSETTINGS_TAG
XML tag - "IOSettings" |
static String |
IOSETTINGS_TARGETATTR
IO setting - "TargetAttribute" |
static String |
LOG_ENABLED_TAG
XML tag - "LogEnabled" |
static String |
LOG_SETTINGS_TAG
IO setting - "Logging" |
static String |
ONFAILURE_TAG
XML tag - "OnFailure" |
static String |
ONSUCCESS_TAG
XML tag - "OnSuccess" |
static String |
OPERATION_PUBLIC_TAG
XML tag - "Public" |
static String |
OPERATION_TAG
XML tag - "Operation" |
static String |
OPERATIONS_TAG
XML tag - "Operations" |
static String |
OPTIONS_TAG
XML tag - "ThreadOptions" |
static String |
PROLOG_TAG
XML tag - "Prolog" |
static String |
PROLOGINIT_TAG
XML tag - "PrologInit" |
static String |
SETTINGS_TAG
XML tag - "Settings" |
static String |
SHUTDOWN_TAG
XML tag - "Shutdown" |
static String |
STARTCYCLE_TAG
XML tag - "StartCycle" |
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 | |
---|---|
AssemblyLineFactory()
|
Method Summary | |
---|---|
void |
build(BaseConfiguration config,
Element elem)
Generate a XML element from a configuration object. |
void |
getAttributeMaps(Element elem,
AssemblyLineConfig config)
This method parses all AttributeMap elements in the XML file into configuration objects. |
void |
getCallParam(CallConfig config,
Element elem)
|
void |
getInitParams(Element elem,
OperationsConfig al)
This method converts old style and reads the new style initialization parameters. |
void |
getOperation(Element elem,
OperationsConfig alc,
String forceName)
|
void |
getOperations(Element elem,
OperationsConfig alc)
Get operations. |
void |
getSchemas(Element elem,
AssemblyLineConfig config)
This method parses all Schema elements in the XML file into configuration objects. |
void |
migrateCallParam(AssemblyLineConfig assemblyLine,
Element elem,
boolean input)
Reads and converts the old style call parameters to the new style. |
void |
parse(BaseConfiguration config,
Element elem)
Parse a XML element into a configuration object. |
void |
setInitParams(Element elem,
OperationsConfig alc)
Generates a XML element from the init params of the provided operation configuration and add the newly created element to the it to the Input and Output Attribute Map of the connector. |
void |
setOperations(Element elem,
OperationsConfig alc)
Generates a XML element from the provided operation configuration and add it to the Input and Output Attribute Map of the connector. |
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 |
---|
public static final String ASSEMBLYLINE_TAG
public static final String CONNECTORS_TAG
public static final String LOG_ENABLED_TAG
public static final String PROLOG_TAG
public static final String PROLOGINIT_TAG
public static final String EPILOG_TAG
public static final String EPILOG2_TAG
public static final String SHUTDOWN_TAG
public static final String STARTCYCLE_TAG
public static final String ONSUCCESS_TAG
public static final String ONFAILURE_TAG
public static final String IOSETTINGS_TAG
public static final String SETTINGS_TAG
public static final String OPTIONS_TAG
public static final String OPERATIONS_TAG
public static final String OPERATION_TAG
public static final String OPERATION_PUBLIC_TAG
public static final String INIT_PARAMS_TAG
public static final String CALLPARAM_TAG
public static final String IOSETTINGS_INPUT
public static final String IOSETTINGS_OUTPUT
public static final String IOSETTINGS_TARGETATTR
public static final String IOSETTINGS_NULLBEHAVIOR
public static final String IOSETTINGS_NULLBEHAVIORVALUE
public static final String IOSETTINGS_SYNTAX
public static final String IOSETTINGS_DEFAULT
Note: Deprecated, only for backwards compatibility
public static final String IOSETTINGS_REQUIRED
public static final String LOG_SETTINGS_TAG
public static final String CALLRETURN_TAG
Constructor Detail |
---|
public AssemblyLineFactory()
Method Detail |
---|
public void parse(BaseConfiguration config, Element elem) throws Exception
parse
in class Factories
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.
Exception
- in case the configuration object the provided XML element
represents is not recognized.public void getOperations(Element elem, OperationsConfig alc) throws Exception
elem
- this is a part of the XML tree that represents the
BaseConfiguration
object.alc
- OperationsConfig object
Exception
- if error occurspublic void getOperation(Element elem, OperationsConfig alc, String forceName) throws Exception
elem
- this is a part of the XML tree that represents the
BaseConfiguration
object.alc
- OperationsConfig objectforceName
- if not null
sets the Operation name; otherwise
the Operation name is retrieved from its 'name' tag;
Exception
public void getInitParams(Element elem, OperationsConfig al) throws Exception
elem
- Element objectal
- OperationsConfig object
Exception
- elem
's children.public void getSchemas(Element elem, AssemblyLineConfig config) throws Exception
elem
- this is a part of the XML tree that represents the
AssemblyLineConfig
object.config
- an instance of the AssemblyLineConfig
class which
internal parameters will get set based on the information from
the provided XML Element.
Exception
- if could not parse the XML file into a configuration objectpublic void getAttributeMaps(Element elem, AssemblyLineConfig config) throws Exception
elem
- this is a part of the XML tree that represents the
AssemblyLineConfig
object.config
- an instance of the AssemblyLineConfig
class which
internal parameters will get set based on the information from
the provided XML Element.
Exception
- if could not parse the XML file into a configuration objectpublic void migrateCallParam(AssemblyLineConfig assemblyLine, Element elem, boolean input) throws Exception
assemblyLine
- an instance of the AssemblyLineConfig
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
AssemblyLineConfig
object.input
- if true
add call parameters to input attribute
map item, else to the output
Exception
public void getCallParam(CallConfig config, Element elem) throws Exception
elem
- this is a part of the XML tree that represents the
AssemblyLineConfig
object.config
- an instance of the AssemblyLineConfig
class which
internal parameters will get set based on the information from
the provided XML Element.
Exception
- if could not return some text from a node's childrenpublic void build(BaseConfiguration config, Element elem) throws Exception
build
in class Factories
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.
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.public void setOperations(Element elem, OperationsConfig alc) throws Exception
elem
- this is the part of the XML tree where the config object's XML
representation will be attached to.alc
- an instance of the OperationsConfig
class to set
Exception
public void setInitParams(Element elem, OperationsConfig alc) throws Exception
elem
- this is the part of the XML tree where the config object's XML
representation will be attached to.alc
- an instance of the OperationsConfig
class which
internal parameters will get set based on the information from
the provided XML Element.
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |