org.crsh.jcr.command
Class PathValueType
java.lang.Object
org.crsh.cli.type.ValueType<Path>
org.crsh.jcr.command.PathValueType
public class PathValueType
- extends ValueType<Path>
|
Method Summary |
|
parse(Class<S> type,
String s)
Parse the s argument into a value of type S that is a subclass of the
generic value type V. |
PathValueType
public PathValueType()
throws NullPointerException
- Throws:
NullPointerException
parse
public <S extends Path> S parse(Class<S> type,
String s)
throws Exception
- Description copied from class:
ValueType
- Parse the
s argument into a value of type S that is a subclass of the
generic value type V.
- Specified by:
parse in class ValueType<Path>
- Type Parameters:
S - the generic type of the converted value- Parameters:
type - the target type of the values - the string to convert
- Returns:
- the converted value
- Throws:
Exception - any exception that would prevent the conversion to happen
Copyright © 2014 eXo Platform SAS. All Rights Reserved.