java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.properties.impl.PropertyTypeInteger |
Integer property type with constraints.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Object |
afterRead(IPropertyDefinition def, Object value)
Post-processing to be done after reading a value.
| ||||||||||
static PropertyTypeInteger |
create(Integer def)
Create an integer property type without constraints.
| ||||||||||
static PropertyTypeInteger |
create(int min, int max, Integer def)
Create an integer property.
| ||||||||||
static PropertyTypeInteger |
create()
Create an integer property type without constraints, whose default value is zero.
| ||||||||||
static PropertyTypeInteger |
createNegative(Integer def)
Create a negative integer property type.
| ||||||||||
static PropertyTypeInteger |
createNegativeOrZero(Integer def)
Create a negative or null integer property type.
| ||||||||||
static PropertyTypeInteger |
createPositive(Integer def)
Create a positive integer property type.
| ||||||||||
static PropertyTypeInteger |
createPositiveOrZero(Integer def)
Create a positive or null integer property type.
| ||||||||||
boolean | equals(Object obj) | ||||||||||
Integer |
getDefault()
Get the default value.
| ||||||||||
int |
getMax()
Get the maximum allowed integer value.
| ||||||||||
int |
getMin()
Get the minimum allowed integer value.
| ||||||||||
String |
getName()
Get the type name.
| ||||||||||
int | hashCode() | ||||||||||
String | toString() | ||||||||||
boolean |
validate(Object value)
Validate a property value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.properties.IPropertyType
| |||||||||||
From interface
com.pnfsoftware.jeb.core.properties.IPropertyTypeInteger
|
Post-processing to be done after reading a value. This method should only be called after a
successful call to validate(Object)
.
value | must not be null |
---|
Create an integer property type without constraints.
def | default value |
---|
Create an integer property.
min | minimum value allowed |
---|---|
max | maximum value allowed |
def | default value |
Create an integer property type without constraints, whose default value is zero.
Create a negative integer property type.
def | the default value |
---|
Create a negative or null integer property type.
def | the default value |
---|
Create a positive integer property type.
def | the default value |
---|
Create a positive or null integer property type.
def | the default value |
---|
Get the default value.
Get the maximum allowed integer value.
Get the minimum allowed integer value.
Get the type name.
Validate a property value.
value | the property value |
---|