|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.plugin.PropertyManager
class PropertyManager
| Field Summary | |
|---|---|
private static Logger |
log
. |
private Map<String,Property<?>> |
properties
. |
| Constructor Summary | |
|---|---|
PropertyManager()
|
|
| Method Summary | ||
|---|---|---|
|
getProperty(PropertyDescriptor<T> desc)
Returns a context property or null if it cannot be found. |
|
(package private)
|
getProperty(String propertyName,
Class<T> type)
Returns a context property or null if it cannot be found. |
|
(package private)
|
parseProperty(PropertyDescriptor<T> desc,
String value)
Set a context property to a new value. |
|
|
resolveProperty(PropertyDescriptor<T> desc)
Resolve a context property or null if it cannot be resolved. |
|
(package private)
|
resolveProperty(String propertyName,
Class<T> type)
Resolve a context property or null if it cannot be resolved. |
|
|
resolvePropertyValue(PropertyDescriptor<T> desc)
Returns a context property value or null if it cannot be found. |
|
(package private)
|
resolvePropertyValue(String propertyName,
Class<T> type)
Returns a context property value or null if it cannot be found. |
|
(package private)
|
setProperty(PropertyDescriptor<T> desc,
T value)
Set a context property to a new value. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Logger log
private final Map<String,Property<?>> properties
| Constructor Detail |
|---|
PropertyManager()
| Method Detail |
|---|
public <T> Property<T> getProperty(PropertyDescriptor<T> desc)
throws NullPointerException
T - the property parameter typedesc - the property descriptor
NullPointerException - if the descriptor argument is null
<T> Property<T> getProperty(String propertyName,
Class<T> type)
throws NullPointerException
T - the property parameter typepropertyName - the name of the propertytype - the property type
NullPointerException - if the descriptor argument is null
public <T> T resolvePropertyValue(PropertyDescriptor<T> desc)
throws NullPointerException
T - the property parameter typedesc - the property descriptor
NullPointerException - if the descriptor argument is null
<T> T resolvePropertyValue(String propertyName,
Class<T> type)
throws NullPointerException
T - the property parameter typepropertyName - the name of the propertytype - the property type
NullPointerException - if the descriptor argument is null
public <T> Property<? extends T> resolveProperty(PropertyDescriptor<T> desc)
throws NullPointerException
T - the property parameter typedesc - the property descriptor
NullPointerException - if the descriptor argument is null
<T> Property<? extends T> resolveProperty(String propertyName,
Class<T> type)
throws NullPointerException
T - the property parameter typepropertyName - the name of the propertytype - the property type
NullPointerException - if the descriptor argument is null
<T> void setProperty(PropertyDescriptor<T> desc,
T value)
throws NullPointerException
T - the property parameter typedesc - the property descriptorvalue - the property value
NullPointerException - if the descriptor argument is null
<T> void parseProperty(PropertyDescriptor<T> desc,
String value)
throws NullPointerException,
IllegalArgumentException
T - the property parameter typedesc - the property descriptorvalue - the property value
NullPointerException - if the descriptor argument or the value is null
IllegalArgumentException - if the string value cannot be converted to the property type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||