public class PathParameterType extends ParameterType<String>
Constructor and Description |
---|
PathParameterType(Path.Type pathType)
Create a new optional path parameter type.
|
PathParameterType(Path.Type pathType,
String defaultValue,
boolean notNull)
Create a new path parameter type.
|
PathParameterType(Path.Type pathType,
String defaultValue,
boolean notNull,
int multiplicity,
int width,
int height,
List<String> items) |
Modifier and Type | Method and Description |
---|---|
Path.Type |
getPathType()
Get the type of the path to ask for.
|
(package private) ParameterValueData<String> |
newParameterValueData()
Create a new
TextParameterValueData object. |
String |
toString() |
(package private) void |
validateValue(String name,
String value)
Checks if the value is a valif
Path value. |
getDefaultValue, getEnumeration, getHeight, getItems, getMultiplicity, getNotNull, getParameterClass, getValueType, getWidth, isEnumeration, isMasked, validate, validate
private final Path.Type pathType
public PathParameterType(Path.Type pathType)
pathType
- If the path is to a directory or filepublic PathParameterType(Path.Type pathType, String defaultValue, boolean notNull)
pathType
- If the path is to a directory or filedefaultValue
- The default value of this parameternotNull
- FALSE if nulls values are allowed, TRUE otherwisevoid validateValue(String name, String value) throws InvalidDataException
Path
value.validateValue
in class ParameterType<String>
value
- The value to testname
- The name of the parameter, use the name if there is need to
throw an exceptionInvalidDataException
- If the value is not a valid pathParameterValueData<String> newParameterValueData()
TextParameterValueData
object.newParameterValueData
in class ParameterType<String>
public Path.Type getPathType()
Path.Type
object