|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.model.descriptor.DescriptorUtils
public class DescriptorUtils
This class provides generation/manipulation of Descriptor objects -
ConnectorDescriptor
, FunctionComponentDescriptor
,
ParserDescriptor
. The class has dependency on the system
MetamergeConfig
and the Global FormConfig
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.
Constructor Summary | |
---|---|
DescriptorUtils()
|
Method Summary | |
---|---|
static ConnectorDescriptor |
getConnectorDescriptor(String connId,
ConnectorConfig cfg)
Generates a ConnectorDescriptor based on the tdi.xml for the
connector specified by the provided parameters. |
static FunctionComponentDescriptor |
getFunctionComponentDescriptor(String connId,
FunctionConfig cfg)
Generates a FunctionComponentDescriptor based on the tdi.xml for
the FC specified by the provided parameters. |
static ParserDescriptor |
getParserDescriptor(String connId,
ParserConfig cfg)
Generates a ParserDescriptor based on the tdi.xml for the parser
specified by the provided parameters. |
static String |
toXMLString(BaseDescriptor desc)
Produces XML for the provided BaseDescriptor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DescriptorUtils()
Method Detail |
---|
public static ConnectorDescriptor getConnectorDescriptor(String connId, ConnectorConfig cfg) throws Exception
ConnectorDescriptor
based on the tdi.xml for the
connector specified by the provided parameters.
connId
- the connector name under which the ConnectorConfig
object is mapped in the MetamergeConfig
cfg
- the config object corresponding to the provided name.
ConnectorConfig
Exception
public static FunctionComponentDescriptor getFunctionComponentDescriptor(String connId, FunctionConfig cfg) throws Exception
FunctionComponentDescriptor
based on the tdi.xml for
the FC specified by the provided parameters.
connId
- the FC name under which the FunctionConfig
object is
mapped in the MetamergeConfig
cfg
- the config object corresponding to the provided name.
FunctionConfig
Exception
public static ParserDescriptor getParserDescriptor(String connId, ParserConfig cfg) throws Exception
ParserDescriptor
based on the tdi.xml for the parser
specified by the provided parameters.
connId
- the parser name under which the ParserConfig
object is
mapped in the MetamergeConfig
cfg
- the config object corresponding to the provided name.
ParserConfig
Exception
public static String toXMLString(BaseDescriptor desc) throws javax.xml.bind.JAXBException
BaseDescriptor
desc
- the BaseDescriptor
to serialize as XML
javax.xml.bind.JAXBException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |