Class PropertyTypeBoolean
java.lang.Object
com.pnfsoftware.jeb.core.properties.impl.PropertyTypeBoolean
- All Implemented Interfaces:
IPropertyType
,IPropertyTypeBoolean
Boolean property type.
-
Method Summary
Modifier and TypeMethodDescriptionafterRead
(IPropertyDefinition def, Object value) Post-processing to be done after reading a value.static PropertyTypeBoolean
create()
Define a boolean property that defaults to 'false'static PropertyTypeBoolean
boolean
Get the default value.getName()
Get the type name.int
hashCode()
toString()
boolean
Validate a property value.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.pnfsoftware.jeb.core.properties.IPropertyType
beforeWrite
-
Method Details
-
create
-
create
Define a boolean property that defaults to 'false'- Returns:
- the property type
-
getName
Description copied from interface:IPropertyType
Get the type name.- Specified by:
getName
in interfaceIPropertyType
- Returns:
-
getDefault
Description copied from interface:IPropertyType
Get the default value.- Specified by:
getDefault
in interfaceIPropertyType
- Specified by:
getDefault
in interfaceIPropertyTypeBoolean
- 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:
-
hashCode
public int hashCode() -
equals
-
toString
-