com.remedy.cmdb.api
Class CMDBEnumLimit

java.lang.Object
  extended bycom.remedy.cmdb.api.CMDBAttributeLimit
      extended bycom.remedy.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
          Custom Style.
static int CMDB_ATTR_ENUM_STYLE_REGULAR
          Regular Style.
 
Fields inherited from class com.remedy.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)
          Creates an enumeration attribute limit.
CMDBEnumLimit(java.lang.String[] enumItemArray)
          Creates an enumeration attribute limit.
 
Method Summary
 EnumItem[] getEnumItemsCustom()
          Gets the enumeration items of the enumeration attribute limit.
 java.lang.String[] getEnumItemsRegular()
          Gets the enumeration items of the enumeration attribute limit.
 int getEnumStyle()
          Gets the enumeration style of the enumeration attribute limit.
 void setEnumItemsCustom(EnumItem[] enumItemArray)
          Sets the enumeration items of the enumeration attribute limit.
 void setEnumItemsRegular(java.lang.String[] enumItemArray)
          Sets the enumeration items of the enumeration attribute limit.
 void setEnumStyle(int nEnumStyle)
          Sets the enumeration style of the enumeration attribute limit.
 
Methods inherited from class com.remedy.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
Regular Style.

See Also:
Constant Field Values

CMDB_ATTR_ENUM_STYLE_CUSTOM

public static final int CMDB_ATTR_ENUM_STYLE_CUSTOM
Custom Style.

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)
Creates an enumeration attribute limit.

Parameters:
enumItemArray - is an array of enumeration items
Throws:
java.lang.IllegalArgumentException - if the length of any item in the enumeration array is longer than Constants.AR_MAX_NAME_SIZE

CMDBEnumLimit

public CMDBEnumLimit(EnumItem[] enumItemArray)
Creates an enumeration attribute limit.

Parameters:
enumItemArray - is an array of custom enumeration items
Throws:
java.lang.IllegalArgumentException - if the length of any item in the enumeration array is longer than Constants.AR_MAX_NAME_SIZE
Method Detail

getEnumStyle

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

Returns:
nEnumStyle enumeration type of the enumeration attribute limit

getEnumItemsRegular

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

Returns:
enumeration items of the enumeration attribute limit

getEnumItemsCustom

public EnumItem[] getEnumItemsCustom()
Gets the enumeration items of the enumeration attribute limit.

Returns:
enumeration items of the enumeration attribute limit

setEnumItemsRegular

public void setEnumItemsRegular(java.lang.String[] enumItemArray)
Sets the enumeration items of the enumeration attribute limit.

Parameters:
enumItemArray - enumeration items of the enumeration attribute limit
Throws:
java.lang.IllegalArgumentException - if the length of any item in the enumeration array is longer than Constants.AR_MAX_NAME_SIZE

setEnumItemsCustom

public void setEnumItemsCustom(EnumItem[] enumItemArray)
Sets the enumeration items of the enumeration attribute limit.

Parameters:
enumItemArray - enumeration items of the enumeration attribute limit
Throws:
java.lang.IllegalArgumentException - if the length of any item in the enumeration array is longer than Constants.AR_MAX_NAME_SIZE

setEnumStyle

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

Parameters:
nEnumStyle - enumeration type of the enumeration attribute limit