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 PropertyTypeStringcreate()Define a string property that defaults to the empty string.static PropertyTypeStringstatic PropertyTypeStringbooleanGet the default value.intGet the maximum allowed string length.intGet the minimum allowed string length.getName()Get the type name.inthashCode()toString()booleanValidate a property value.
-
Method Details
-
create
-
create
-
create
Define a string property that defaults to the empty string.- Returns:
-
getName
Description copied from interface:IPropertyTypeGet the type name.- Specified by:
getNamein interfaceIPropertyType- Returns:
-
getMinLength
public int getMinLength()Description copied from interface:IPropertyTypeStringGet the minimum allowed string length.- Specified by:
getMinLengthin interfaceIPropertyTypeString- Returns:
- the minimum length
-
getMaxLength
public int getMaxLength()Description copied from interface:IPropertyTypeStringGet the maximum allowed string length.- Specified by:
getMaxLengthin interfaceIPropertyTypeString- Returns:
- the maximum length
-
getDefault
Description copied from interface:IPropertyTypeGet the default value.- Specified by:
getDefaultin interfaceIPropertyType- Specified by:
getDefaultin interfaceIPropertyTypeString- 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:
-
beforeWrite
Description copied from interface:IPropertyTypePre-processing to be done before storing a value.- Specified by:
beforeWritein interfaceIPropertyType- Returns:
-
hashCode
public int hashCode() -
equals
-
toString
-