public final class

PropertyTypeInteger

extends Object
implements IPropertyTypeInteger
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.properties.impl.PropertyTypeInteger

Class Overview

Integer property type with constraints.

Summary

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

Public Methods

public Object afterRead (IPropertyDefinition def, Object value)

Post-processing to be done after reading a value. This method should only be called after a successful call to validate(Object).

Parameters
value must not be null

public static PropertyTypeInteger create (Integer def)

Create an integer property type without constraints.

Parameters
def default value
Returns
  • the property type

public static PropertyTypeInteger create (int min, int max, Integer def)

Create an integer property.

Parameters
min minimum value allowed
max maximum value allowed
def default value
Returns
  • the property type

public static PropertyTypeInteger create ()

Create an integer property type without constraints, whose default value is zero.

Returns
  • the property type

public static PropertyTypeInteger createNegative (Integer def)

Create a negative integer property type.

Parameters
def the default value
Returns
  • the property type

public static PropertyTypeInteger createNegativeOrZero (Integer def)

Create a negative or null integer property type.

Parameters
def the default value
Returns
  • the property type

public static PropertyTypeInteger createPositive (Integer def)

Create a positive integer property type.

Parameters
def the default value
Returns
  • the property type

public static PropertyTypeInteger createPositiveOrZero (Integer def)

Create a positive or null integer property type.

Parameters
def the default value
Returns
  • the property type

public boolean equals (Object obj)

public Integer getDefault ()

Get the default value.

Returns
  • the default value, cannot be null

public int getMax ()

Get the maximum allowed integer value.

public int getMin ()

Get the minimum allowed integer value.

Returns
  • the value

public String getName ()

Get the type name.

public int hashCode ()

public String toString ()

public boolean validate (Object value)

Validate a property value.

Parameters
value the property value
Returns
  • true on success