Package com.ibm.di.fc.emf
Class EmfSdoToXml
- java.lang.Object
-
- com.ibm.di.fc.Function
-
- com.ibm.di.fc.emf.EmfSdoToXml
-
- All Implemented Interfaces:
FunctionInterface
,VersionInfoInterface
@Deprecated public class EmfSdoToXml extends Function
Deprecated.Function Component that using XML Schema converts Data Objects to an XML document. It also implements a discover schema functionality through itsupdateSchema
method.
THIS CLASS IS DEPRECATED FOR THE IBM Tivoli Directory Integrator 7.0 or 7.1 RELEASES AND WILL BE COMPLETELY REMOVED IN A FUTURE RELEASE!
-
-
Constructor Summary
Constructors Constructor Description EmfSdoToXml()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static commonj.sdo.DataObject
createRootObject(java.lang.String xsdFile)
Deprecated.java.lang.String
getVersion()
Deprecated.void
initialize(java.lang.Object obj)
Deprecated.java.lang.Object
perform(java.lang.Object obj)
Deprecated.boolean
updateSchema(FunctionConfig config)
Deprecated.-
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, verifyInitialized
-
-
-
-
Method Detail
-
createRootObject
@Deprecated public static commonj.sdo.DataObject createRootObject(java.lang.String xsdFile) throws java.lang.Exception
Deprecated.Creates and returns a Data Object corresponding to the root object of a document compliant to the XML Schema specified in thexsdFile
file.- Parameters:
xsdFile
- location of a XML Schema file.- Returns:
- Data Object corresponding to the root object of a document compliant to the XML Schema specified
- Throws:
java.lang.Exception
- if the specified file cannot be found or is not valid XML Schema. if the XML Schema does not define a root element.
-
initialize
@Deprecated public void initialize(java.lang.Object obj) throws java.lang.Exception
Deprecated.Initializes the function component. Sets instance members corresponding to the function component paramters.- Specified by:
initialize
in interfaceFunctionInterface
- Overrides:
initialize
in classFunction
- Parameters:
obj
- this object provides information to the Function Component needed on initialization- Throws:
java.lang.Exception
- if the xsdFile parameter is not specified
-
perform
@Deprecated public java.lang.Object perform(java.lang.Object obj) throws java.lang.Exception
Deprecated.Serializes Data Objects to XML document according to the XML Schema specified by thexsdFile
function component parameter. The Data Objects are stored in the Entry Attributes of the IBM Tivoli Directory Integrator Entry passed as parameter to the function.- Parameters:
obj
- the object is the working IBM Tivoli Directory Integrator Entry and should be of type com.ibm.di.entry.Entry.- Returns:
- IBM Tivoli Directory Integrator Entry containing Entry Attributes coresponding to the XML elements and attributes.
- Throws:
java.lang.Exception
- if the names of the Entry Attributes do not represent valid XML elements. if an Entry Attribute for the root element does not exist in the entry and the XML Schema does not define a root element.
-
updateSchema
@Deprecated public boolean updateSchema(FunctionConfig config) throws java.lang.Exception
Deprecated.Implements the discovery schema functionality. The method reads the specified XML Schema File and creates Entry Attribute names based on the nesting of the XML elements.- Specified by:
updateSchema
in interfaceFunctionInterface
- Overrides:
updateSchema
in classFunction
- Parameters:
config
- contains the function configuration parameter.- Returns:
- returns true on success
- Throws:
java.lang.Exception
- If the the xsdFile parameter is not specified. If the the specified file extension is not .xsd If the target file is not found If the target file is not valid XML Schema file
-
getVersion
@Deprecated public java.lang.String getVersion()
Deprecated.Returns function component's version- Returns:
- version information
-
-