org.beanfabrics.model
Interface IIntegerPM

All Superinterfaces:
Bean, ContextOwner, HasComparable, ITextPM, IValuePM, PresentationModel, Supportable, Validatable
All Known Implementing Classes:
IntegerPM

public interface IIntegerPM
extends ITextPM

THe IIntegerPM is interface for PresentationModel classes that contain an numeric integer value.


Method Summary
 java.math.BigInteger getBigInteger()
          Returns the value of this PM as a BigInteger.
 java.lang.Byte getByte()
          Returns the value of this PM as a Byte.
 java.lang.Integer getInteger()
          Returns the value of this PM as an Integer.
 java.lang.Long getLong()
          Returns the value of this PM as a Long.
 long getMaxValue()
          Returns the maximum numeric value that is valid for this PM's value.
 long getMinValue()
          Returns the minimum numeric value that is valid for this PM's value.
 java.lang.Short getShort()
          Returns the value of this PM as a Short.
 void setBigInteger(java.math.BigInteger value)
          Sets the value of this PM to the given BigInteger.
 void setByte(java.lang.Byte value)
          Sets the value if this PM to the given Byte.
 void setInteger(java.lang.Integer value)
          Sets the value of this PM to the given Integer.
 void setLong(java.lang.Long value)
          Sets the value of this PM to the given Long.
 void setMaxValue(long maxValue)
          Sets the maximum numeric long value that is valid for this PM's value.
 void setMinValue(long minValue)
          Sets the minimum numeric long value that is valid for this PM's value.
 void setShort(java.lang.Short value)
          Sets the value of this PM to the given Short.
 
Methods inherited from interface org.beanfabrics.model.ITextPM
getOptions, getText, isModified, preset, reformat, reset, setOptions, setText
 
Methods inherited from interface org.beanfabrics.model.IValuePM
getDescription, getTitle, isEditable, isEmpty, isMandatory, setDescription, setEditable, setMandatory, setTitle
 
Methods inherited from interface org.beanfabrics.Bean
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface org.beanfabrics.validation.Validatable
getValidationState, getValidator, isValid, revalidate
 
Methods inherited from interface org.beanfabrics.support.Supportable
getSupportMap
 
Methods inherited from interface org.beanfabrics.context.ContextOwner
getContext
 
Methods inherited from interface org.beanfabrics.HasComparable
getComparable
 

Method Detail

setByte

void setByte(java.lang.Byte value)
Sets the value if this PM to the given Byte.

Parameters:
value - the Byte value

getByte

java.lang.Byte getByte()
                       throws ConversionException
Returns the value of this PM as a Byte.

Returns:
the value of this PM as a Byte
Throws:
ConversionException - if the text value of this PM cannot be converted to a Byte

setShort

void setShort(java.lang.Short value)
Sets the value of this PM to the given Short.

Parameters:
value - the Short value

getShort

java.lang.Short getShort()
                         throws ConversionException
Returns the value of this PM as a Short.

Returns:
the value of this PM as a Short
Throws:
ConversionException - if the text value of this PM cannot be converted to a Short

setInteger

void setInteger(java.lang.Integer value)
Sets the value of this PM to the given Integer.

Parameters:
value - the Integer value

getInteger

java.lang.Integer getInteger()
                             throws ConversionException
Returns the value of this PM as an Integer.

Returns:
the value of this PM as an Integer
Throws:
ConversionException - if the text value of this PM cannot be converted to an Integer

setLong

void setLong(java.lang.Long value)
Sets the value of this PM to the given Long.

Parameters:
value - the Long value

getLong

java.lang.Long getLong()
                       throws ConversionException
Returns the value of this PM as a Long.

Returns:
the value of this PM as a Long
Throws:
ConversionException - if the text value of this PM cannot be converted to a Long

setBigInteger

void setBigInteger(java.math.BigInteger value)
Sets the value of this PM to the given BigInteger.

Parameters:
value - the BigInteger value

getBigInteger

java.math.BigInteger getBigInteger()
                                   throws ConversionException
Returns the value of this PM as a BigInteger.

Returns:
the value of this PM as a BigInteger
Throws:
ConversionException - if the text value of this PM cannot be converted to a BigInteger

setMinValue

void setMinValue(long minValue)
Sets the minimum numeric long value that is valid for this PM's value.

Parameters:
minValue - the minimum value
See Also:
getMinValue()

getMinValue

long getMinValue()
Returns the minimum numeric value that is valid for this PM's value.

Implementors must ensure that the validation of this PM should evaluate to invalid if the numeric value of this PM is less than the specified minimum value.

Returns:
the minimum numeric value

setMaxValue

void setMaxValue(long maxValue)
Sets the maximum numeric long value that is valid for this PM's value.

Parameters:
maxValue - the maximum value
See Also:
getMaxValue()

getMaxValue

long getMaxValue()
Returns the maximum numeric value that is valid for this PM's value.

Implementors must ensure that the validation of this PM should evaluate to invalid if the numeric value of this PM is greater than the specified maximum value.

Returns:
the maximum numeric value