com.remedy.cmdb.api
Class CMDBCurrencyLimit

java.lang.Object
  extended bycom.remedy.cmdb.api.CMDBAttributeLimit
      extended bycom.remedy.cmdb.api.CMDBCurrencyLimit

public class CMDBCurrencyLimit
extends CMDBAttributeLimit

The CMDBCurrencyLimits class defines the limit of a currency attribute.


Field Summary
 
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
CMDBCurrencyLimit()
          Creates a default currency attribute limit that has a low range of -99999999999999999999999999.99, a high range of 99999999999999999999999999.99, and a precision of 2.
CMDBCurrencyLimit(java.math.BigDecimal low, java.math.BigDecimal high, int precision, CurrencyDetail[] functionalType, CurrencyDetail[] allowableType)
          Creates a currency limit with the specified limit information.
 
Method Summary
 CurrencyDetail[] getAllowableType()
          Gets the allowable type of the currency limit.
 CurrencyDetail[] getFunctionalType()
          Gets the functional type of the currency limit.
 java.math.BigDecimal getHighRange()
          Gets the high range of the decimal attribute limit.
 java.math.BigDecimal getLowRange()
          Gets the low range of the currency attribute limit.
 int getPrecision()
          Gets the precision of the decimal attribute limit.
 void setAllowableType(CurrencyDetail[] allowableType)
          Sets the allowable type of the currency attribute limit.
 void setFunctionalType(CurrencyDetail[] functionalType)
          Sets the functional type of the currency attribute limit.
 void setHighRange(java.math.BigDecimal high)
          Sets the high range of the decimal attribute limit.
 void setLowRange(java.math.BigDecimal low)
          Sets the low range of the decimal attribute limit.
 void setPrecision(int precision)
          Sets the precision of the decimal 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
 

Constructor Detail

CMDBCurrencyLimit

public CMDBCurrencyLimit()
Creates a default currency attribute limit that has a low range of -99999999999999999999999999.99, a high range of 99999999999999999999999999.99, and a precision of 2.


CMDBCurrencyLimit

public CMDBCurrencyLimit(java.math.BigDecimal low,
                         java.math.BigDecimal high,
                         int precision,
                         CurrencyDetail[] functionalType,
                         CurrencyDetail[] allowableType)
Creates a currency limit with the specified limit information.

Parameters:
low - the low range of the currency limit
high - the high range of the currency limit
precision - the precision of the currency limit
functionalType - the functional type of the currency limit
allowableType - the allowable type of the currency limit
Method Detail

getLowRange

public java.math.BigDecimal getLowRange()
Gets the low range of the currency attribute limit.

Returns:
the low range of the decimal attribute limit

getHighRange

public java.math.BigDecimal getHighRange()
Gets the high range of the decimal attribute limit.

Returns:
the high range of the decimal attribute limit

getPrecision

public int getPrecision()
Gets the precision of the decimal attribute limit.

Returns:
the precision of the decimal attribute limit

getAllowableType

public CurrencyDetail[] getAllowableType()
Gets the allowable type of the currency limit.

Returns:
the allowable type

getFunctionalType

public CurrencyDetail[] getFunctionalType()
Gets the functional type of the currency limit.

Returns:
the functional type

setLowRange

public void setLowRange(java.math.BigDecimal low)
Sets the low range of the decimal attribute limit.

Parameters:
low - the low range of the decimal attribute limit to set

setHighRange

public void setHighRange(java.math.BigDecimal high)
Sets the high range of the decimal attribute limit.

Parameters:
high - the high range of the decimal attribute limit to set

setPrecision

public void setPrecision(int precision)
Sets the precision of the decimal attribute limit.

Parameters:
precision - the precision of the decimal attribute limit to set

setAllowableType

public void setAllowableType(CurrencyDetail[] allowableType)
Sets the allowable type of the currency attribute limit.

Parameters:
allowableType - the allowable type

setFunctionalType

public void setFunctionalType(CurrencyDetail[] functionalType)
Sets the functional type of the currency attribute limit.

Parameters:
functionalType - the functional type