com.bmc.cmdb.api
Class CMDBEnumLimit

java.lang.Object
  extended by com.bmc.cmdb.api.CMDBAttributeLimit
      extended by com.bmc.cmdb.api.CMDBEnumLimit

public class CMDBEnumLimit
extends CMDBAttributeLimit

The CMDBEnumLimit class defines the limit of an enumeration attribute.


Field Summary
static int CMDB_ATTR_ENUM_STYLE_CUSTOM
          Specifies that the enumeration type is custom.
static int CMDB_ATTR_ENUM_STYLE_REGULAR
          Specifies that the enumeration type is regular.
 
Fields inherited from class com.bmc.cmdb.api.CMDBAttributeLimit
CMDB_ATTR_DATA_TYPE_ATTACH, CMDB_ATTR_DATA_TYPE_ATTACH_POOL, CMDB_ATTR_DATA_TYPE_CHAR, CMDB_ATTR_DATA_TYPE_CURRENCY, CMDB_ATTR_DATA_TYPE_DATE, CMDB_ATTR_DATA_TYPE_DECIMAL, CMDB_ATTR_DATA_TYPE_DIARY, CMDB_ATTR_DATA_TYPE_ENUM, CMDB_ATTR_DATA_TYPE_INTEGER, CMDB_ATTR_DATA_TYPE_NULL, CMDB_ATTR_DATA_TYPE_REAL, CMDB_ATTR_DATA_TYPE_TIME, CMDB_ATTR_DATA_TYPE_TIME_OF_DAY
 
Constructor Summary
CMDBEnumLimit()
          Default constructor to create an enumeration attribute limit.
CMDBEnumLimit(EnumItem[] enumItemArray)
          This constructor creates an enumeration attribute limit of custom style.
CMDBEnumLimit(java.lang.String[] enumItemArray)
          This constructor creates an enumeration attribute limit of regular style.
 
Method Summary
 EnumItem[] getEnumItemsCustom()
          Gets the items of the enumeration limit for the custom style.
 java.lang.String[] getEnumItemsRegular()
          Gets the items of the enumeration limit for the regular style.
 int getEnumStyle()
          Gets the style of the enumeration limit.
 void setEnumItemsCustom(EnumItem[] enumItemArray)
          Sets the enumeration items for the custom style.
 void setEnumItemsRegular(java.lang.String[] enumItemArray)
          Sets the enumeration items for the regular style.
 void setEnumStyle(int nEnumStyle)
          Sets the enumeration style.
 
Methods inherited from class com.bmc.cmdb.api.CMDBAttributeLimit
getDataType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMDB_ATTR_ENUM_STYLE_REGULAR

public static final int CMDB_ATTR_ENUM_STYLE_REGULAR
Specifies that the enumeration type is regular.

See Also:
Constant Field Values

CMDB_ATTR_ENUM_STYLE_CUSTOM

public static final int CMDB_ATTR_ENUM_STYLE_CUSTOM
Specifies that the enumeration type is custom.

See Also:
Constant Field Values
Constructor Detail

CMDBEnumLimit

public CMDBEnumLimit()
Default constructor to create an enumeration attribute limit.


CMDBEnumLimit

public CMDBEnumLimit(java.lang.String[] enumItemArray)
This constructor creates an enumeration attribute limit of regular style.

Parameters:
enumItemArray - is an array of enumeration items.

CMDBEnumLimit

public CMDBEnumLimit(EnumItem[] enumItemArray)
This constructor creates an enumeration attribute limit of custom style.

Parameters:
enumItemArray - is an array of custom enumeration items.
Method Detail

getEnumStyle

public int getEnumStyle()
Gets the style of the enumeration limit.

Returns:
returns the style of the enumeration limit

getEnumItemsRegular

public java.lang.String[] getEnumItemsRegular()
Gets the items of the enumeration limit for the regular style.

Returns:
returns the items of the enumeration limit for the regular style

getEnumItemsCustom

public EnumItem[] getEnumItemsCustom()
Gets the items of the enumeration limit for the custom style.

Returns:
returns the items of the enumeration limit for the custom style

setEnumItemsRegular

public void setEnumItemsRegular(java.lang.String[] enumItemArray)
Sets the enumeration items for the regular style.

Parameters:
enumItemArray - holds the items of the enumeration limit.
Throws:
java.lang.IllegalArgumentException - if the enumeration item has a name longer than the maximum allowed

setEnumItemsCustom

public void setEnumItemsCustom(EnumItem[] enumItemArray)
Sets the enumeration items for the custom style.

Parameters:
enumItemArray - holds the items of the enumeration limit.
Throws:
java.lang.IllegalArgumentException - if the enumeration item has a name longer than the maximum allowed

setEnumStyle

public void setEnumStyle(int nEnumStyle)
Sets the enumeration style.

Parameters:
nEnumStyle - enumeration type of the enumeration attribute limit


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