Package com.ibm.di.model.descriptor
Class DescriptorUtils
- java.lang.Object
-
- com.ibm.di.model.descriptor.DescriptorUtils
-
public class DescriptorUtils extends java.lang.Object
This class provides generation/manipulation of Descriptor objects -ConnectorDescriptor
,FunctionComponentDescriptor
,ParserDescriptor
. The class has dependency on the systemMetamergeConfig
and the GlobalFormConfig
so 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 ConnectorDescriptor
getConnectorDescriptor(java.lang.String connId, ConnectorConfig cfg)
Generates aConnectorDescriptor
based on the tdi.xml for the connector specified by the provided parameters.static FunctionComponentDescriptor
getFunctionComponentDescriptor(java.lang.String connId, FunctionConfig cfg)
Generates aFunctionComponentDescriptor
based on the tdi.xml for the FC specified by the provided parameters.static ParserDescriptor
getParserDescriptor(java.lang.String connId, ParserConfig cfg)
Generates aParserDescriptor
based on the tdi.xml for the parser specified by the provided parameters.static java.lang.String
toXMLString(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 aConnectorDescriptor
based on the tdi.xml for the connector specified by the provided parameters.- Parameters:
connId
- the connector name under which theConnectorConfig
object is mapped in theMetamergeConfig
cfg
- 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 aFunctionComponentDescriptor
based on the tdi.xml for the FC specified by the provided parameters.- Parameters:
connId
- the FC name under which theFunctionConfig
object is mapped in theMetamergeConfig
cfg
- 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 aParserDescriptor
based on the tdi.xml for the parser specified by the provided parameters.- Parameters:
connId
- the parser name under which theParserConfig
object is mapped in theMetamergeConfig
cfg
- 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
- theBaseDescriptor
to serialize as XML- Returns:
- the XML as String
- Throws:
javax.xml.bind.JAXBException
-
-