|
||||||||||
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.CastorJavaToXML
public class CastorJavaToXML
This is the CastorJavaToXML class. This is the main class of the CastorJavaToXML function component. The CastorJavaToXML Function Component creates an XML document from a Java object or an Entry object.
Field Summary |
---|
Fields inherited from class com.ibm.di.fc.Function |
---|
logger |
Constructor Summary | |
---|---|
CastorJavaToXML()
|
Method Summary | |
---|---|
java.lang.String |
getVersion()
Version information. |
void |
initialize(java.lang.Object obj)
In the initialize method the FC initializes its parameters. |
Entry |
marshal(Entry aEntry,
java.lang.String aMappingFile,
java.lang.String aRootElementName,
boolean aUseAttrNames)
This method is called when the CastorJavaToXML FC is passed an Entry object. |
java.lang.Object |
marshal(java.lang.Object aObject,
java.lang.String aMappingFile)
This method is called when the CastorJavaToXML FC is passed a Java object which is not an Entry object, the metho will serialize the object passed using Castor serialization and this will be the result XML. |
java.lang.Object |
perform(java.lang.Object obj)
The CastorJavaToXML Function Component can operate both with Entry objects and with custom Java objects. |
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 CastorJavaToXML()
Method Detail |
---|
public void initialize(java.lang.Object obj) throws java.lang.Exception
initialize
in interface FunctionInterface
initialize
in class Function
obj
- 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 object passed to the FC.
java.lang.Exception
- If initialization is not performed or if an Exception occur
during the marshaling process.public Entry marshal(Entry aEntry, java.lang.String aMappingFile, java.lang.String aRootElementName, boolean aUseAttrNames) 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.aRootElementName
- This parameter specifies the name of the root element of the
generated XML.aUseAttrNames
- When set to "true" the names of the Entry Attributes are used
as XML element names, otherwise the XML elements are named as
specified in the mapping file.
java.lang.Exception
- If an Exception occurs during the object marshaling.public java.lang.Object marshal(java.lang.Object aObject, java.lang.String aMappingFile) throws java.lang.Exception
aObject
- 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 marshaling.public java.lang.String getVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |