com.ibm.di.connector.ccmdb
Class EntryUtilities

java.lang.Object
  extended by com.ibm.di.connector.ccmdb.EntryUtilities

public class EntryUtilities
extends Object

An utilities class that contains several static methods for manipulating Entry objects.


Constructor Summary
EntryUtilities()
           
 
Method Summary
static void addAttributesToEntry(ActualCI configItem, ActualCIDefinition definition, Entry entry)
          Adds object attributes as attributes to a DI Entry.
static void addAttributesToEntryAttribute(Attribute attribute, ActualCI configItem, ActualCIDefinition definition, Entry entry)
          Adds object attributes as child attributes to a DI Entry attribute.
static void addAttributesToObject(ActualCI configItem, ActualCIDefinition definition, NodeList attrNodeList)
          Extract attribute values form a NodeList and add them to a ModelObject.
static void addAttributesToSchema(Collection<AttributeDefinition> attributes, Entry schema)
          Adds class attribute definitions as attributes to a DI Entry.
static void addAttributesToSchemaAttribute(Attribute attribute, Collection<AttributeDefinition> attributes, Entry schema)
          Adds class attribute definitions as attributes to a DI Entry attribute.
static void addPropertiesToEntry(ModelObject object, ModelObjectDefinition definition, Entry entry)
          Adds object properties as attributes to a DI Entry.
static void addPropertiesToEntryAttribute(Attribute attribute, ModelObject object, ModelObjectDefinition definition, Entry entry)
          Adds object attributes as child attributes to a DI Entry attribute.
static void addPropertiesToObject(ModelObject object, ModelObjectDefinition definition, NodeList attrNodeList)
          Extract property values form a NodeList and add them to a ModelObject.
static void addPropertiesToSchema(ModelObjectDefinition definition, Entry schema)
          Adds property definitions as attributes to a DI Entry.
static void addPropertiesToSchemaAttribute(Attribute attribute, ModelObjectDefinition definition, Entry schema)
          Adds property definitions as child attributes to an Attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryUtilities

public EntryUtilities()
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 updated
definition - the ModelObjectDefinition instance whose properties to be added.
schema - parent DI Entry object

addAttributesToSchema

public static void addAttributesToSchema(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,
                                                  Collection<AttributeDefinition> attributes,
                                                  Entry schema)
Adds class attribute definitions as attributes to a DI Entry attribute.

Parameters:
attribute - the DI Entry attribute to be updated
attributes - class attribute definitions to be added
schema - 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 updated
configItem - the object whose attributes to be added
definition - the object definition
entry - 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 updated
object - the object whose properties to be added.
definition - the object definition
entry - parent DI Entry

addPropertiesToObject

public static void addPropertiesToObject(ModelObject object,
                                         ModelObjectDefinition definition,
                                         NodeList attrNodeList)
Extract property values form a NodeList and add them to a ModelObject.

Parameters:
object - the ModeObject instance to be updated
definition - the object definition
attrNodeList - a NodeList that contains property values

addAttributesToObject

public static void addAttributesToObject(ActualCI configItem,
                                         ActualCIDefinition definition,
                                         NodeList attrNodeList)
Extract attribute values form a NodeList and add them to a ModelObject.

Parameters:
configItem - the configuration item to be updated
definition - the object definition
attrNodeList - a NodeList that contains property values