Package com.ibm.di.model.descriptor
Class DescriptorUtils
- java.lang.Object
-
- com.ibm.di.model.descriptor.DescriptorUtils
-
public class DescriptorUtils extends java.lang.ObjectThis class provides generation/manipulation of Descriptor objects -ConnectorDescriptor,FunctionComponentDescriptor,ParserDescriptor. The class has dependency on the systemMetamergeConfigand the GlobalFormConfigso it should only be used in the context of the Tivoli Directory Integrator Server.
Note: This class is for internal usage only. Any dependency from the end-user will not be supported. Changes to this class will happen without a warning.- Since:
- 7.1
-
-
Constructor Summary
Constructors Constructor Description DescriptorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectorDescriptorgetConnectorDescriptor(java.lang.String connId, ConnectorConfig cfg)Generates aConnectorDescriptorbased on the tdi.xml for the connector specified by the provided parameters.static FunctionComponentDescriptorgetFunctionComponentDescriptor(java.lang.String connId, FunctionConfig cfg)Generates aFunctionComponentDescriptorbased on the tdi.xml for the FC specified by the provided parameters.static ParserDescriptorgetParserDescriptor(java.lang.String connId, ParserConfig cfg)Generates aParserDescriptorbased on the tdi.xml for the parser specified by the provided parameters.static java.lang.StringtoXMLString(BaseDescriptor desc)Produces XML for the providedBaseDescriptor
-
-
-
Method Detail
-
getConnectorDescriptor
public static ConnectorDescriptor getConnectorDescriptor(java.lang.String connId, ConnectorConfig cfg) throws java.lang.Exception
Generates aConnectorDescriptorbased on the tdi.xml for the connector specified by the provided parameters.- Parameters:
connId- the connector name under which theConnectorConfigobject is mapped in theMetamergeConfigcfg- the config object corresponding to the provided name.- Returns:
- the connector descriptor of the specified
ConnectorConfig - Throws:
java.lang.Exception
-
getFunctionComponentDescriptor
public static FunctionComponentDescriptor getFunctionComponentDescriptor(java.lang.String connId, FunctionConfig cfg) throws java.lang.Exception
Generates aFunctionComponentDescriptorbased on the tdi.xml for the FC specified by the provided parameters.- Parameters:
connId- the FC name under which theFunctionConfigobject is mapped in theMetamergeConfigcfg- the config object corresponding to the provided name.- Returns:
- the FC descriptor of the specified
FunctionConfig - Throws:
java.lang.Exception
-
getParserDescriptor
public static ParserDescriptor getParserDescriptor(java.lang.String connId, ParserConfig cfg) throws java.lang.Exception
Generates aParserDescriptorbased on the tdi.xml for the parser specified by the provided parameters.- Parameters:
connId- the parser name under which theParserConfigobject is mapped in theMetamergeConfigcfg- the config object corresponding to the provided name.- Returns:
- the parser descriptor of the specified
ParserConfig - Throws:
java.lang.Exception
-
toXMLString
public static java.lang.String toXMLString(BaseDescriptor desc) throws javax.xml.bind.JAXBException
Produces XML for the providedBaseDescriptor- Parameters:
desc- theBaseDescriptorto serialize as XML- Returns:
- the XML as String
- Throws:
javax.xml.bind.JAXBException
-
-