Class PropertyTypePath
java.lang.Object
com.pnfsoftware.jeb.core.properties.impl.PropertyTypePath
- All Implemented Interfaces:
IPropertyType
,IPropertyTypePath
,IPropertyTypeString
Path (custom string) property type.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyTypePath
create()
Define a path property that defaults to the empty string.static PropertyTypePath
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.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
afterRead, beforeWrite
-
Method Details
-
create
-
create
Define a path 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
-
hashCode
public int hashCode() -
equals
-
toString
-