|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.ParameterType<String> net.sf.basedb.core.PathParameterType
public class PathParameterType
This class represent a parameter type that is a path to either a directory or a file. This parameter type should be used when a plugin needs to ask for a directory or file to save it's output.
Field Summary | |
---|---|
private Path.Type |
pathType
|
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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. |
Methods inherited from class net.sf.basedb.core.ParameterType |
---|
getDefaultValue, getEnumeration, getHeight, getItems, getMultiplicity, getNotNull, getParameterClass, getValueType, getWidth, isEnumeration, validate, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final Path.Type pathType
Constructor Detail |
---|
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 otherwisepublic PathParameterType(Path.Type pathType, String defaultValue, boolean notNull, int multiplicity, int width, int height, List<String> items)
Method Detail |
---|
public String toString()
toString
in class Object
void 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 exception
InvalidDataException
- If the value is not a valid pathParameterValueData<String> newParameterValueData()
TextParameterValueData
object.
newParameterValueData
in class ParameterType<String>
public Path.Type getPathType()
Path.Type
object
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |