Class 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 its updateSchema 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 Detail

      • EmfSdoToXml

        public EmfSdoToXml()
        Deprecated.
    • 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 the xsdFile 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 interface FunctionInterface
        Overrides:
        initialize in class Function
        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 the xsdFile 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 interface FunctionInterface
        Overrides:
        updateSchema in class Function
        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