org.crsh.jcr.command
Class PathValueType

java.lang.Object
  extended by org.crsh.cli.type.ValueType<Path>
      extended by org.crsh.jcr.command.PathValueType

public class PathValueType
extends ValueType<Path>


Field Summary
 
Fields inherited from class org.crsh.cli.type.ValueType
BOOLEAN, completer, ENUM, FILE, INTEGER, OBJECT_NAME, PROPERTIES, STRING, THREAD, type
 
Constructor Summary
PathValueType()
           
 
Method Summary
<S extends Path>
S
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.
 
Methods inherited from class org.crsh.cli.type.ValueType
equals, getCompleter, getType, hashCode, parse
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathValueType

public PathValueType()
              throws NullPointerException
Throws:
NullPointerException
Method Detail

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 value
s - 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.