Package com.ibm.di.connector.ccmdb
Class EntryUtilities
- java.lang.Object
-
- com.ibm.di.connector.ccmdb.EntryUtilities
-
public class EntryUtilities extends java.lang.ObjectAn utilities class that contains several static methods for manipulating Entry objects.
-
-
Constructor Summary
Constructors Constructor Description EntryUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddAttributesToEntry(ActualCI configItem, ActualCIDefinition definition, Entry entry)Adds object attributes as attributes to a DI Entry.static voidaddAttributesToEntryAttribute(Attribute attribute, ActualCI configItem, ActualCIDefinition definition, Entry entry)Adds object attributes as child attributes to a DI Entry attribute.static voidaddAttributesToObject(ActualCI configItem, ActualCIDefinition definition, org.w3c.dom.NodeList attrNodeList)Extract attribute values form a NodeList and add them to a ModelObject.static voidaddAttributesToSchema(java.util.Collection<AttributeDefinition> attributes, Entry schema)Adds class attribute definitions as attributes to a DI Entry.static voidaddAttributesToSchemaAttribute(Attribute attribute, java.util.Collection<AttributeDefinition> attributes, Entry schema)Adds class attribute definitions as attributes to a DI Entry attribute.static voidaddPropertiesToEntry(ModelObject object, ModelObjectDefinition definition, Entry entry)Adds object properties as attributes to a DI Entry.static voidaddPropertiesToEntryAttribute(Attribute attribute, ModelObject object, ModelObjectDefinition definition, Entry entry)Adds object attributes as child attributes to a DI Entry attribute.static voidaddPropertiesToObject(ModelObject object, ModelObjectDefinition definition, org.w3c.dom.NodeList attrNodeList)Extract property values form a NodeList and add them to a ModelObject.static voidaddPropertiesToSchema(ModelObjectDefinition definition, Entry schema)Adds property definitions as attributes to a DI Entry.static voidaddPropertiesToSchemaAttribute(Attribute attribute, ModelObjectDefinition definition, Entry schema)Adds property definitions as child attributes to an Attribute.
-
-
-
Method Detail
-
addPropertiesToSchema
public static void addPropertiesToSchema(ModelObjectDefinition definition, Entry schema)
Adds property definitions as attributes to a DI Entry.- Parameters:
definition- the ModelObjectDefinition instance whose properties to be added.schema- the DI Entry to be updated
-
addPropertiesToSchemaAttribute
public static void addPropertiesToSchemaAttribute(Attribute attribute, ModelObjectDefinition definition, Entry schema)
Adds property definitions as child attributes to an Attribute.- Parameters:
attribute- the attribute to be updateddefinition- the ModelObjectDefinition instance whose properties to be added.schema- parent DI Entry object
-
addAttributesToSchema
public static void addAttributesToSchema(java.util.Collection<AttributeDefinition> attributes, Entry schema)
Adds class attribute definitions as attributes to a DI Entry.- Parameters:
attributes- class attribute definitions to be added.schema- the DI Entry to be updated
-
addAttributesToSchemaAttribute
public static void addAttributesToSchemaAttribute(Attribute attribute, java.util.Collection<AttributeDefinition> attributes, Entry schema)
Adds class attribute definitions as attributes to a DI Entry attribute.- Parameters:
attribute- the DI Entry attribute to be updatedattributes- class attribute definitions to be addedschema- parent DI Entry object
-
addPropertiesToEntry
public static void addPropertiesToEntry(ModelObject object, ModelObjectDefinition definition, Entry entry)
Adds object properties as attributes to a DI Entry.- Parameters:
object- the model object whose properties to be added.definition- the object definition.entry- the DI Entry to be updated.
-
addAttributesToEntry
public static void addAttributesToEntry(ActualCI configItem, ActualCIDefinition definition, Entry entry)
Adds object attributes as attributes to a DI Entry.- Parameters:
configItem- the configuration item whose properties to be added.definition- the object definition.entry- the DI Entry to be updated.
-
addAttributesToEntryAttribute
public static void addAttributesToEntryAttribute(Attribute attribute, ActualCI configItem, ActualCIDefinition definition, Entry entry)
Adds object attributes as child attributes to a DI Entry attribute.- Parameters:
attribute- the Entry attribute to be updatedconfigItem- the object whose attributes to be addeddefinition- the object definitionentry- parent DI Entry
-
addPropertiesToEntryAttribute
public static void addPropertiesToEntryAttribute(Attribute attribute, ModelObject object, ModelObjectDefinition definition, Entry entry)
Adds object attributes as child attributes to a DI Entry attribute.- Parameters:
attribute- the Entry attribute to be updatedobject- the object whose properties to be added.definition- the object definitionentry- parent DI Entry
-
addPropertiesToObject
public static void addPropertiesToObject(ModelObject object, ModelObjectDefinition definition, org.w3c.dom.NodeList attrNodeList)
Extract property values form a NodeList and add them to a ModelObject.- Parameters:
object- the ModeObject instance to be updateddefinition- the object definitionattrNodeList- a NodeList that contains property values
-
addAttributesToObject
public static void addAttributesToObject(ActualCI configItem, ActualCIDefinition definition, org.w3c.dom.NodeList attrNodeList)
Extract attribute values form a NodeList and add them to a ModelObject.- Parameters:
configItem- the configuration item to be updateddefinition- the object definitionattrNodeList- a NodeList that contains property values
-
-