|
|||||||||||
| 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 | |
|---|---|
String |
getVersion()
Version information. |
void |
initialize(Object obj)
In the initialize method the FC initializes its parameters. |
Object |
perform(Object obj)
This method retruns an XML document from a Java object or an Entry object. |
Entry |
unmarshal(Entry aEntry,
String aMappingFile,
List aAttributeList)
This method is called when the CastorXMLToJava FC is passed an Entry object. |
Object |
unmarshal(Object aInputXML,
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(Object obj)
throws Exception
initialize in interface FunctionInterfaceinitialize in class Functionobj - not used.
Exception - If the mapping file parameter is missing or the return type
is not valid.
public Object perform(Object obj)
throws Exception
obj - this is the input data passed to the FC.
Exception - If initialization is not performed or if an Exception occur
during the marshaling process.
public Entry unmarshal(Entry aEntry,
String aMappingFile,
List aAttributeList)
throws 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.
Exception - If an Exception occurs during the object unmarshaling.
public Object unmarshal(Object aInputXML,
String aMappingFile)
throws Exception
aInputXML - the input data as a java.lang.Object.aMappingFile - the path to the Castor XML Mapping File that defines mapping
rules.
Exception - If an Exception occurs during the object unmarshaling.public String getVersion()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||