public class PathConverter extends Object implements ValueConverter<java.nio.file.Path>
Path
objects and checks the status of the underlying file.Constructor and Description |
---|
PathConverter(PathProperties... pathProperties) |
Modifier and Type | Method and Description |
---|---|
java.nio.file.Path |
convert(String value)
Converts the given string value into a Java type.
|
String |
valuePattern()
Gives a string that describes the pattern of the values this converter expects, if any.
|
Class<java.nio.file.Path> |
valueType()
Gives the class of the type of values this converter converts to.
|
public PathConverter(PathProperties... pathProperties)
public java.nio.file.Path convert(String value)
ValueConverter
convert
in interface ValueConverter<java.nio.file.Path>
value
- the string to convertpublic Class<java.nio.file.Path> valueType()
ValueConverter
valueType
in interface ValueConverter<java.nio.file.Path>
public String valuePattern()
ValueConverter
date format string
.valuePattern
in interface ValueConverter<java.nio.file.Path>
null
if there's nothing interesting hereCopyright © 2016. All Rights Reserved.