public class

PropertyTypeSelection

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

Class Overview

Specialized type of integer property offering a selection of string-based values.

Summary

Nested Classes
class PropertyTypeSelection.Builder  
class PropertyTypeSelection.E  
Public Methods
Object afterRead(IPropertyDefinition def, Object value)
Post-processing to be done after reading a value.
Integer getDefault()
Get the default value.
List<PropertyTypeSelection.E> getEntries()
int getMax()
Get the maximum allowed integer value.
int getMin()
Get the minimum allowed integer value.
String getName()
Get the type name.
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 Integer getDefault ()

Get the default value.

Returns
  • the default value, cannot be null

public List<PropertyTypeSelection.E> getEntries ()

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 String toString ()

public boolean validate (Object value)

Validate a property value.

Parameters
value the property value
Returns
  • true on success