Class PropertyTypeString
java.lang.Object
com.pnfsoftware.jeb.core.properties.impl.PropertyTypeString
- All Implemented Interfaces:
IPropertyType
,IPropertyTypeString
String property type.
-
Method Summary
Modifier and TypeMethodDescriptionafterRead
(IPropertyDefinition def, Object value) Post-processing to be done after reading a value.beforeWrite
(IPropertyDefinition def, Object value) Pre-processing to be done before storing a value.static PropertyTypeString
create()
Define a string property that defaults to the empty string.static PropertyTypeString
static PropertyTypeString
boolean
Get the default value.int
Get the maximum allowed string length.int
Get the minimum allowed string length.getName()
Get the type name.int
hashCode()
toString()
boolean
Validate a property value.
-
Method Details
-
create
-
create
-
create
Define a string property that defaults to the empty string.- Returns:
-
getName
Description copied from interface:IPropertyType
Get the type name.- Specified by:
getName
in interfaceIPropertyType
- Returns:
-
getMinLength
public int getMinLength()Description copied from interface:IPropertyTypeString
Get the minimum allowed string length.- Specified by:
getMinLength
in interfaceIPropertyTypeString
- Returns:
- the minimum length
-
getMaxLength
public int getMaxLength()Description copied from interface:IPropertyTypeString
Get the maximum allowed string length.- Specified by:
getMaxLength
in interfaceIPropertyTypeString
- Returns:
- the maximum length
-
getDefault
Description copied from interface:IPropertyType
Get the default value.- Specified by:
getDefault
in interfaceIPropertyType
- Specified by:
getDefault
in interfaceIPropertyTypeString
- 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:
-
beforeWrite
Description copied from interface:IPropertyType
Pre-processing to be done before storing a value.- Specified by:
beforeWrite
in interfaceIPropertyType
- Returns:
-
hashCode
public int hashCode() -
equals
-
toString
-