public class PathConverter extends java.lang.Object implements ValueConverter<java.nio.file.Path>
Path objects and checks the status of the underlying file.| Modifier and Type | Field and Description |
|---|---|
private PathProperties[] |
pathProperties |
| Constructor and Description |
|---|
PathConverter(PathProperties... pathProperties) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.Path |
convert(java.lang.String value)
Converts the given string value into a Java type.
|
private java.lang.String |
message(java.lang.String errorKey,
java.lang.String value) |
java.lang.String |
valuePattern()
Gives a string that describes the pattern of the values this converter expects, if any.
|
java.lang.Class<java.nio.file.Path> |
valueType()
Gives the class of the type of values this converter converts to.
|
private final PathProperties[] pathProperties
public PathConverter(PathProperties... pathProperties)
public java.nio.file.Path convert(java.lang.String value)
ValueConverterconvert in interface ValueConverter<java.nio.file.Path>value - the string to convertpublic java.lang.Class<java.nio.file.Path> valueType()
ValueConvertervalueType in interface ValueConverter<java.nio.file.Path>public java.lang.String valuePattern()
ValueConverterdate format string.valuePattern in interface ValueConverter<java.nio.file.Path>null if there's nothing interesting hereprivate java.lang.String message(java.lang.String errorKey,
java.lang.String value)