org.crsh.cli.impl
Class ParameterType<V>

java.lang.Object
  extended by org.crsh.cli.impl.ParameterType<V>

public final class ParameterType<V>
extends Object


Field Summary
private  Class<?> declaredType
          .
private  Class<V> effectiveType
          .
private  Multiplicity multiplicity
          .
private  ValueType<V> valueType
          .
 
Constructor Summary
ParameterType(Multiplicity multiplicity, Class<?> declaredType, Class<V> effectiveType, ValueType<V> valueType)
           
 
Method Summary
static ParameterType create(ValueTypeFactory factory, Type type)
           
 Class<?> getDeclaredType()
           
 Class<V> getEffectiveType()
           
 Multiplicity getMultiplicity()
           
 ValueType<V> getValueType()
           
 Object parse(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

multiplicity

private final Multiplicity multiplicity
.


declaredType

private final Class<?> declaredType
.


effectiveType

private final Class<V> effectiveType
.


valueType

private final ValueType<V> valueType
.

Constructor Detail

ParameterType

ParameterType(Multiplicity multiplicity,
              Class<?> declaredType,
              Class<V> effectiveType,
              ValueType<V> valueType)
Method Detail

create

public static ParameterType create(ValueTypeFactory factory,
                                   Type type)
                            throws IllegalValueTypeException
Throws:
IllegalValueTypeException

parse

public Object parse(String s)
             throws Exception
Throws:
Exception

getMultiplicity

public Multiplicity getMultiplicity()

getDeclaredType

public Class<?> getDeclaredType()

getEffectiveType

public Class<V> getEffectiveType()

getValueType

public ValueType<V> getValueType()


Copyright © 2014 eXo Platform SAS. All Rights Reserved.