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 classstatic class -
Method Summary
Modifier and TypeMethodDescriptionafterRead(IPropertyDefinition def, Object value) Post-processing to be done after reading a value.Get the default value.intgetMax()Get the maximum allowed integer value.intgetMin()Get the minimum allowed integer value.getName()Get the type name.toString()booleanValidate a property value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.pnfsoftware.jeb.core.properties.IPropertyType
beforeWrite
-
Method Details
-
getName
Description copied from interface:IPropertyTypeGet the type name.- Specified by:
getNamein interfaceIPropertyType- Returns:
-
getEntries
-
getMin
public int getMin()Description copied from interface:IPropertyTypeIntegerGet the minimum allowed integer value.- Specified by:
getMinin interfaceIPropertyTypeInteger- Returns:
- the value
-
getMax
public int getMax()Description copied from interface:IPropertyTypeIntegerGet the maximum allowed integer value.- Specified by:
getMaxin interfaceIPropertyTypeInteger- Returns:
-
getDefault
Description copied from interface:IPropertyTypeGet the default value.- Specified by:
getDefaultin interfaceIPropertyType- Specified by:
getDefaultin interfaceIPropertyTypeInteger- Returns:
- the default value, cannot be null
-
validate
Description copied from interface:IPropertyTypeValidate a property value.- Specified by:
validatein interfaceIPropertyType- Parameters:
value- the property value- Returns:
- true on success
-
afterRead
Description copied from interface:IPropertyTypePost-processing to be done after reading a value. This method should only be called after a successful call toIPropertyType.validate(Object).- Specified by:
afterReadin interfaceIPropertyTypevalue- must not be null- Returns:
-
toString
-