com.bmc.cmdb.api
Class CMDBMetadataItem

java.lang.Object
  extended by com.bmc.cmdb.api.CMDBItemBase
      extended by com.bmc.cmdb.api.CMDBMetadataItem

public class CMDBMetadataItem
extends CMDBItemBase

The CMDBMetadataItem class defines metadata for import/export items.


Field Summary
static int OPTION_CLASS_ONLY
          Exports specified class alone.
static int OPTION_DEFAULT
          Default option value for processing a metadata item.
static int OPTION_SUB_CLASSES
          Exports all sub classes of the specified class.
static int OPTION_SUPER_CLASSES
          Exports super classes of the specified class.
 
Constructor Summary
CMDBMetadataItem(CMDBClassNameKey classNameId)
          Constructor.
CMDBMetadataItem(CMDBClassNameKey classNameId, int option)
          Constructor.
 
Method Summary
 void setOption(int option)
          Sets import/export option.
 
Methods inherited from class com.bmc.cmdb.api.CMDBItemBase
getClassNameId, getOption, setClassNameId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_DEFAULT

public static int OPTION_DEFAULT
Default option value for processing a metadata item. During export operation it is considered as OPTION_CLASS_ONLY. During import operation this option is not currently used.


OPTION_CLASS_ONLY

public static int OPTION_CLASS_ONLY
Exports specified class alone. Option values applicable while exporting a metadata item. Please observe that these values can be bitwise ORed to export any combination of (super classes, current classes, sub classes) as desired.


OPTION_SUPER_CLASSES

public static int OPTION_SUPER_CLASSES
Exports super classes of the specified class.


OPTION_SUB_CLASSES

public static int OPTION_SUB_CLASSES
Exports all sub classes of the specified class.

Constructor Detail

CMDBMetadataItem

public CMDBMetadataItem(CMDBClassNameKey classNameId,
                        int option)
Constructor.

Parameters:
classNameId - class name and namespace key
option - Integer value. The default option is OPTION_CLASS_ONLY.

CMDBMetadataItem

public CMDBMetadataItem(CMDBClassNameKey classNameId)
Constructor.

Parameters:
classNameId - class name and namespace key
Method Detail

setOption

public void setOption(int option)
               throws java.lang.Exception
Sets import/export option.

Throws:
java.lang.Exception - if the option is invalid


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