|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.plugin.PropertyDescriptor<T>
public abstract class PropertyDescriptor<T>
| Field Summary | |
|---|---|
static Map<String,PropertyDescriptor<?>> |
ALL
. |
T |
defaultValue
. |
String |
description
. |
private static Map<String,PropertyDescriptor<?>> |
INTERNAL_ALL
. |
String |
name
. |
Class<T> |
type
. |
static PropertyDescriptor<Integer> |
VFS_REFRESH_PERIOD
. |
static PropertyDescriptor<TimeUnit> |
VFS_REFRESH_UNIT
. |
| Constructor Summary | |
|---|---|
protected |
PropertyDescriptor(Class<T> type,
String name,
T defaultValue,
String description)
|
| 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 |
|---|
private static final Map<String,PropertyDescriptor<?>> INTERNAL_ALL
public static final Map<String,PropertyDescriptor<?>> ALL
public static final PropertyDescriptor<TimeUnit> VFS_REFRESH_UNIT
public static final PropertyDescriptor<Integer> VFS_REFRESH_PERIOD
public final Class<T> type
public final String name
public final T defaultValue
public final String description
| Constructor Detail |
|---|
protected PropertyDescriptor(Class<T> type,
String name,
T defaultValue,
String description)
| Method Detail |
|---|
public final T parse(String s)
throws NullPointerException,
IllegalArgumentException
NullPointerException
IllegalArgumentException
public final Property<T> toProperty(String s)
throws NullPointerException,
IllegalArgumentException
NullPointerException
IllegalArgumentExceptionprotected abstract T doParse(String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||