Package com.ibm.di.config.xml
Class SchemaFactory
- java.lang.Object
-
- com.ibm.di.config.xml.Factories
-
- com.ibm.di.config.xml.SchemaFactory
-
public class SchemaFactory extends Factories
Read/WriteSchemaConfigelements in XML.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSCHEMA_ITEM_COMMENTstatic java.lang.StringSCHEMA_ITEM_DEFVALstatic java.lang.StringSCHEMA_ITEM_EXCLUDEDstatic java.lang.StringSCHEMA_ITEM_NAMEstatic java.lang.StringSCHEMA_ITEM_NATIVEstatic java.lang.StringSCHEMA_ITEM_PRESENCEstatic java.lang.StringSCHEMA_ITEM_REQINPstatic java.lang.StringSCHEMA_ITEM_REQOUTstatic java.lang.StringSCHEMA_ITEM_SAMPLEstatic java.lang.StringSCHEMA_ITEM_SYNTAXstatic java.lang.StringSCHEMA_ITEM_TAGstatic java.lang.StringSCHEMA_TAG-
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 SchemaFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuild(BaseConfiguration config, org.w3c.dom.Element elem)Generate a XML element from a configuration object.voidgetSchemaItem(org.w3c.dom.Element elem, BaseConfiguration config)voidmigrate(ConnectorConfig cc, org.w3c.dom.Element elem)protected voidmigrateSchema(SchemaConfig cc, AttributeMapConfig amc, org.w3c.dom.Element elem, boolean input)voidmigrateSchemaItem(org.w3c.dom.Element elem, SchemaConfig config, AttributeMapConfig amc, boolean input)voidparse(BaseConfiguration config, org.w3c.dom.Element elem)Parse a XML element into a configuration object.voidparseSchemaItem(org.w3c.dom.Element elem, SchemaItemConfig sci)voidsetSchemaItem(org.w3c.dom.Element elem, SchemaItemConfig config)-
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
-
SCHEMA_TAG
public static final java.lang.String SCHEMA_TAG
- See Also:
- Constant Field Values
-
SCHEMA_ITEM_TAG
public static final java.lang.String SCHEMA_ITEM_TAG
- See Also:
- Constant Field Values
-
SCHEMA_ITEM_NAME
public static final java.lang.String SCHEMA_ITEM_NAME
- See Also:
- Constant Field Values
-
SCHEMA_ITEM_SYNTAX
public static final java.lang.String SCHEMA_ITEM_SYNTAX
- See Also:
- Constant Field Values
-
SCHEMA_ITEM_NATIVE
public static final java.lang.String SCHEMA_ITEM_NATIVE
- See Also:
- Constant Field Values
-
SCHEMA_ITEM_EXCLUDED
public static final java.lang.String SCHEMA_ITEM_EXCLUDED
- See Also:
- Constant Field Values
-
SCHEMA_ITEM_REQINP
public static final java.lang.String SCHEMA_ITEM_REQINP
- See Also:
- Constant Field Values
-
SCHEMA_ITEM_REQOUT
public static final java.lang.String SCHEMA_ITEM_REQOUT
- See Also:
- Constant Field Values
-
SCHEMA_ITEM_DEFVAL
public static final java.lang.String SCHEMA_ITEM_DEFVAL
- See Also:
- Constant Field Values
-
SCHEMA_ITEM_SAMPLE
public static final java.lang.String SCHEMA_ITEM_SAMPLE
- See Also:
- Constant Field Values
-
SCHEMA_ITEM_PRESENCE
public static final java.lang.String SCHEMA_ITEM_PRESENCE
- See Also:
- Constant Field Values
-
SCHEMA_ITEM_COMMENT
public static final java.lang.String SCHEMA_ITEM_COMMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public void parse(BaseConfiguration config, org.w3c.dom.Element elem) throws java.lang.Exception
Parse a XML element into a configuration object.- Overrides:
parsein classFactories- Parameters:
config- an instance of theBaseConfigurationclass 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 theBaseConfigurationobject.- Throws:
java.lang.Exception- in case the configuration object the provided XML element represents is not recognized.
-
migrate
public void migrate(ConnectorConfig cc, org.w3c.dom.Element elem) throws java.lang.Exception
- Throws:
java.lang.Exception
-
migrateSchema
protected void migrateSchema(SchemaConfig cc, AttributeMapConfig amc, org.w3c.dom.Element elem, boolean input) throws java.lang.Exception
- Throws:
java.lang.Exception
-
migrateSchemaItem
public void migrateSchemaItem(org.w3c.dom.Element elem, SchemaConfig config, AttributeMapConfig amc, boolean input) throws java.lang.Exception- Throws:
java.lang.Exception
-
getSchemaItem
public void getSchemaItem(org.w3c.dom.Element elem, BaseConfiguration config) throws java.lang.Exception- Throws:
java.lang.Exception
-
parseSchemaItem
public void parseSchemaItem(org.w3c.dom.Element elem, SchemaItemConfig sci) throws java.lang.Exception- Throws:
java.lang.Exception
-
build
public void build(BaseConfiguration config, org.w3c.dom.Element elem) throws java.lang.Exception
Generate a XML element from a configuration object.- Overrides:
buildin classFactories- Parameters:
config- an instance of theBaseConfigurationclass 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.
-
setSchemaItem
public void setSchemaItem(org.w3c.dom.Element elem, SchemaItemConfig config) throws java.lang.Exception- Throws:
java.lang.Exception
-
-