|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthenplus.PropertyRegistry
public class PropertyRegistry
A Registry that binds names to Properties.
Constructor Summary | |
---|---|
PropertyRegistry()
|
Method Summary | |
---|---|
SortedMap |
getPropertyMap()
returns a Map view of property-Names to values. |
void |
registerProperty(String name,
PropertyHolder holder)
Every command or subsystem that needs to be able to set Properties, needs to register its property here. |
void |
setProperty(String name,
String value)
sets the Property to the given value. |
void |
unregisterProperty(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyRegistry()
Method Detail |
---|
public void registerProperty(String name, PropertyHolder holder) throws IllegalArgumentException
IllegalArgumentException
public void unregisterProperty(String name)
public void setProperty(String name, String value) throws Exception
name
- the name the property is bound to.value
- the new value of the property to be set.
Exception,
- if the property does not exist or throws an
Exception to veto the new value.
Exception
public SortedMap getPropertyMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |