org.crsh.plugin
Class PropertyDescriptor<T>

java.lang.Object
  extended by org.crsh.plugin.PropertyDescriptor<T>

public abstract class PropertyDescriptor<T>
extends Object

Version:
$Revision$
Author:
Julien Viet

Field Summary
static Map<String,PropertyDescriptor<?>> ALL
          .
 T defaultValue
          .
 String description
          .
 String name
          .
static PropertyDescriptor<String> SSH_KEYPATH
          .
static PropertyDescriptor<Integer> SSH_PORT
          .
static PropertyDescriptor<Integer> TELNET_PORT
          .
 Class<T> type
          .
 
Method Summary
protected abstract  T doParse(String s)
           
 T parse(String s)
           
 Property<T> toProperty(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL

public static final Map<String,PropertyDescriptor<?>> ALL
.


SSH_PORT

public static final PropertyDescriptor<Integer> SSH_PORT
.


SSH_KEYPATH

public static final PropertyDescriptor<String> SSH_KEYPATH
.


TELNET_PORT

public static final PropertyDescriptor<Integer> TELNET_PORT
.


type

public final Class<T> type
.


name

public final String name
.


defaultValue

public final T defaultValue
.


description

public final String description
.

Method Detail

parse

public final T parse(String s)
              throws NullPointerException,
                     IllegalArgumentException
Throws:
NullPointerException
IllegalArgumentException

toProperty

public final Property<T> toProperty(String s)
                             throws NullPointerException,
                                    IllegalArgumentException
Throws:
NullPointerException
IllegalArgumentException

doParse

protected abstract T doParse(String s)


Copyright © 2011 eXo Platform SAS. All Rights Reserved.