|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.fc.Function
com.ibm.di.fc.castorbind.CastorXMLToJava
public class CastorXMLToJava
This is the CastorXMLToJava class. The CastorXMLToJava Function Component creates an Entry or a general Java object from an XML document. CastorXMLToJava provides the option to get data from certain parts of the XML tree when unmarshalling the XML document.
| Field Summary |
|---|
| Fields inherited from class com.ibm.di.fc.Function |
|---|
logger |
| Constructor Summary | |
|---|---|
CastorXMLToJava()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getVersion()
Version information. |
void |
initialize(java.lang.Object obj)
In the initialize method the FC initializes its parameters. |
java.lang.Object |
perform(java.lang.Object obj)
This method retruns an XML document from a Java object or an Entry object. |
Entry |
unmarshal(Entry aEntry,
java.lang.String aMappingFile,
java.util.List aAttributeList)
This method is called when the CastorXMLToJava FC is passed an Entry object. |
java.lang.Object |
unmarshal(java.lang.Object aInputXML,
java.lang.String aMappingFile)
This method is called when the CastorXMLToJava FC is passed a java.lang.Object. |
| Methods inherited from class com.ibm.di.fc.Function |
|---|
debug, getConfiguration, getContext, getDebug, getLog, getParam, getRSInterface, getUI, initialize, logmsg, querySchema, setConfiguration, setContext, setDebug, setLog, setParam, setRSInterface, terminate, updateSchema, verifyInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CastorXMLToJava()
| Method Detail |
|---|
public void initialize(java.lang.Object obj)
throws java.lang.Exception
initialize in interface FunctionInterfaceinitialize in class Functionobj - not used.
java.lang.Exception - If the mapping file parameter is missing or the return type
is not valid.
public java.lang.Object perform(java.lang.Object obj)
throws java.lang.Exception
obj - this is the input data passed to the FC.
java.lang.Exception - If initialization is not performed or if an Exception occur
during the marshaling process.
public Entry unmarshal(Entry aEntry,
java.lang.String aMappingFile,
java.util.List aAttributeList)
throws java.lang.Exception
aEntry - the input data as an Entry object.aMappingFile - the path to the Castor XML Mapping File that defines mapping
rules.aAttributeList - List of attributes which contains the attributes specified in
the Attribute Specification section of the FC.
java.lang.Exception - If an Exception occurs during the object unmarshaling.
public java.lang.Object unmarshal(java.lang.Object aInputXML,
java.lang.String aMappingFile)
throws java.lang.Exception
aInputXML - the input data as a java.lang.Object.aMappingFile - the path to the Castor XML Mapping File that defines mapping
rules.
java.lang.Exception - If an Exception occurs during the object unmarshaling.public java.lang.String getVersion()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||