com.bmc.cmdb.api
Class CMDBXMLImportItem

java.lang.Object
  extended by com.bmc.cmdb.api.CMDBXMLImportItem

public class CMDBXMLImportItem
extends java.lang.Object

The CMDBXMLImportItem class describes the Object to be imported in the XML format for the given instance. The two types of objects that can be imported are type Class and type Attribute.


Field Summary
static int CMDB_DATA_IMPORT_OPT_ERROR_FOR_DUP
          Returns Error in case of Duplicate instance.
static int CMDB_DATA_IMPORT_OPT_MERGE_FOR_DUP
          Overrides the data for Duplicate instance.
static int CMDB_DATA_IMPORT_OPT_NEWID_FOR_ALL
          Creates NewId for all instances.
static int CMDB_DATA_IMPORT_OPT_NEWID_FOR_DUP
          Creates NewId for the Duplicate instance.
static int CMDB_DEF_IMPORT_OPT_CREATE
          Creates the Object with imported definition.
static int CMDB_DEF_IMPORT_OPT_OVERWRITE
          Overwrites the Object with imported definition.
static int CMDB_ITEM_TYPE_ATTRIBUTE
          Denotes that this import item object is of type attribute.
static int CMDB_ITEM_TYPE_CLASS
          Denotes that this import item object is of type class.
 
Constructor Summary
CMDBXMLImportItem()
          Default Constructor that creates an empty CMDBXMLImportItem object.
CMDBXMLImportItem(CMDBItemTypeAttribute aAttributeItem)
          Constructor initializing the data members for the import type "Attribute".
CMDBXMLImportItem(CMDBItemTypeClass aClassItem)
          Constructor initializing the data members for the import type "Class".
 
Method Summary
 CMDBItemTypeAttribute getAttributeItem()
          Returns Attribute item for the given CMDBXMLImportItem object.
 CMDBItemTypeClass getClassItem()
          Returns Class item for the given CMDBXMLImportItem object.
 int getItemType()
          Returns Item type for the given CMDBXMLImportItem object.
 void setAttributeItem(CMDBItemTypeAttribute aAttributeItem)
          Sets Attribute item for the given CMDBXMLImportItem object.
 void setClassItem(CMDBItemTypeClass aClassItem)
          Sets class item for the given CMDBXMLImportItem object.
 void setItemType(int aItemType)
          Sets Item type for the given CMDBXMLImportItem object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMDB_ITEM_TYPE_CLASS

public static final int CMDB_ITEM_TYPE_CLASS
Denotes that this import item object is of type class.

See Also:
Constant Field Values

CMDB_ITEM_TYPE_ATTRIBUTE

public static final int CMDB_ITEM_TYPE_ATTRIBUTE
Denotes that this import item object is of type attribute.

See Also:
Constant Field Values

CMDB_DEF_IMPORT_OPT_CREATE

public static final int CMDB_DEF_IMPORT_OPT_CREATE
Creates the Object with imported definition.

See Also:
Constant Field Values

CMDB_DEF_IMPORT_OPT_OVERWRITE

public static final int CMDB_DEF_IMPORT_OPT_OVERWRITE
Overwrites the Object with imported definition.

See Also:
Constant Field Values

CMDB_DATA_IMPORT_OPT_ERROR_FOR_DUP

public static final int CMDB_DATA_IMPORT_OPT_ERROR_FOR_DUP
Returns Error in case of Duplicate instance.

See Also:
Constant Field Values

CMDB_DATA_IMPORT_OPT_NEWID_FOR_DUP

public static final int CMDB_DATA_IMPORT_OPT_NEWID_FOR_DUP
Creates NewId for the Duplicate instance.

See Also:
Constant Field Values

CMDB_DATA_IMPORT_OPT_MERGE_FOR_DUP

public static final int CMDB_DATA_IMPORT_OPT_MERGE_FOR_DUP
Overrides the data for Duplicate instance.

See Also:
Constant Field Values

CMDB_DATA_IMPORT_OPT_NEWID_FOR_ALL

public static final int CMDB_DATA_IMPORT_OPT_NEWID_FOR_ALL
Creates NewId for all instances.

See Also:
Constant Field Values
Constructor Detail

CMDBXMLImportItem

public CMDBXMLImportItem()
Default Constructor that creates an empty CMDBXMLImportItem object.


CMDBXMLImportItem

public CMDBXMLImportItem(CMDBItemTypeClass aClassItem)
Constructor initializing the data members for the import type "Class".

Parameters:
aClassItem - class data for the given CMDBXMLImportItem object

CMDBXMLImportItem

public CMDBXMLImportItem(CMDBItemTypeAttribute aAttributeItem)
Constructor initializing the data members for the import type "Attribute".

Parameters:
aAttributeItem - attribute data for the given CMDBXMLImportItem object
Method Detail

setItemType

public void setItemType(int aItemType)
Sets Item type for the given CMDBXMLImportItem object.

Parameters:
aItemType - sets item type for the given CMDBXMLImportItem object

setClassItem

public void setClassItem(CMDBItemTypeClass aClassItem)
Sets class item for the given CMDBXMLImportItem object.

Parameters:
aClassItem - sets class item for the given CMDBXMLImportItem object

setAttributeItem

public void setAttributeItem(CMDBItemTypeAttribute aAttributeItem)
Sets Attribute item for the given CMDBXMLImportItem object.

Parameters:
aAttributeItem - sets attribute item for the given CMDBXMLImportItem object

getItemType

public int getItemType()
Returns Item type for the given CMDBXMLImportItem object.

Returns:
item type for the given CMDBXMLImportItem object

getClassItem

public CMDBItemTypeClass getClassItem()
Returns Class item for the given CMDBXMLImportItem object.

Returns:
class item for the given CMDBXMLImportItem object

getAttributeItem

public CMDBItemTypeAttribute getAttributeItem()
Returns Attribute item for the given CMDBXMLImportItem object.

Returns:
attribute item for the given CMDBXMLImportItem object


(c) Copyright 2004-2007 BMC Software, Inc.