Class PropertyTypeSelection
java.lang.Object
com.pnfsoftware.jeb.core.properties.impl.PropertyTypeSelection
- All Implemented Interfaces:
IPropertyType
,IPropertyTypeInteger
Specialized type of integer property offering a selection of string-based values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Method Summary
Modifier and TypeMethodDescriptionafterRead
(IPropertyDefinition def, Object value) Post-processing to be done after reading a value.Get the default value.int
getMax()
Get the maximum allowed integer value.int
getMin()
Get the minimum allowed integer value.getName()
Get the type name.toString()
boolean
Validate a property value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.pnfsoftware.jeb.core.properties.IPropertyType
beforeWrite
-
Method Details
-
getName
Description copied from interface:IPropertyType
Get the type name.- Specified by:
getName
in interfaceIPropertyType
- Returns:
-
getEntries
-
getMin
public int getMin()Description copied from interface:IPropertyTypeInteger
Get the minimum allowed integer value.- Specified by:
getMin
in interfaceIPropertyTypeInteger
- Returns:
- the value
-
getMax
public int getMax()Description copied from interface:IPropertyTypeInteger
Get the maximum allowed integer value.- Specified by:
getMax
in interfaceIPropertyTypeInteger
- Returns:
-
getDefault
Description copied from interface:IPropertyType
Get the default value.- Specified by:
getDefault
in interfaceIPropertyType
- Specified by:
getDefault
in interfaceIPropertyTypeInteger
- Returns:
- the default value, cannot be null
-
validate
Description copied from interface:IPropertyType
Validate a property value.- Specified by:
validate
in interfaceIPropertyType
- Parameters:
value
- the property value- Returns:
- true on success
-
afterRead
Description copied from interface:IPropertyType
Post-processing to be done after reading a value. This method should only be called after a successful call toIPropertyType.validate(Object)
.- Specified by:
afterRead
in interfaceIPropertyType
value
- must not be null- Returns:
-
toString
-