|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
org.jboss.util.property.PropertyMap (src)
org.jboss.util.property.PropertyGroup
This is a helper class to access a group of properties with out having to refer to their full names.
This class needs more work to be fully functional. It should suffice for adding property listeners and getting/setting property values, but other activies might not work out so well.
Field Summary | |
protected java.lang.String |
basename
Base property name |
Fields inherited from class org.jboss.util.property.PropertyMap (src) |
boundListeners, EMPTY_ARRAY_PROPERTY, PROPERTY_NAME_SEPARATOR, unboundListeners |
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary | |
PropertyGroup(java.lang.String basename,
java.util.Properties container)
Construct a PropertyGroup. |
Method Summary | |
protected void |
addPropertyListener(BoundPropertyListener (src) listener)
Add a bound property listener. |
boolean |
containsKey(java.lang.Object name)
Check if this PropertyMap contains a given property name. |
java.util.Set |
entrySet()
Returns an entry set for all properties in this group. |
java.lang.Object |
get(java.lang.Object name)
Get a property |
java.lang.String |
getBaseName()
Get the base property name for this group. |
java.lang.Object |
put(java.lang.Object name,
java.lang.Object value)
Set a property. |
java.lang.Object |
remove(java.lang.Object name)
Remove a property. |
protected boolean |
removePropertyListener(BoundPropertyListener (src) listener)
Remove a bound property listener. |
Methods inherited from class org.jboss.util.property.PropertyMap (src) |
addPropertyListener, addPropertyListeners, containsProperty, entrySet, firePropertyAdded, firePropertyChanged, firePropertyRemoved, getArrayProperty, getArrayProperty, getProperty, getPropertyGroup, getPropertyGroup, keySet, load, load, load, load, makeIndexPropertyName, makePrefixedPropertyName, names, removeProperty, removePropertyListener, setProperty |
Methods inherited from class java.util.Properties |
getProperty, list, list, load, propertyNames, save, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsValue, elements, equals, hashCode, isEmpty, keys, keySet, putAll, rehash, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final java.lang.String basename
Constructor Detail |
public PropertyGroup(java.lang.String basename, java.util.Properties container)
basename
- Base property name.container
- Property container.
NullArgumentException (src)
- Basename is null.Method Detail |
public final java.lang.String getBaseName()
public boolean containsKey(java.lang.Object name)
name
- Property name.
public java.lang.Object put(java.lang.Object name, java.lang.Object value)
put
in interface java.util.Map
put
in class PropertyMap (src)
name
- Property name.value
- Property value.
public java.lang.Object get(java.lang.Object name)
name
- Property name.
public java.lang.Object remove(java.lang.Object name)
remove
in interface java.util.Map
remove
in class PropertyMap (src)
name
- Property name.
public java.util.Set entrySet()
This is currently ver inefficient, but should get the job done for now.
protected void addPropertyListener(BoundPropertyListener (src) listener)
Generates a fully qualified property name and adds the listener under that name.
addPropertyListener
in class PropertyMap (src)
listener
- Bound property listener to add.protected boolean removePropertyListener(BoundPropertyListener (src) listener)
Generates a fully qualified property name and removes the listener under that name.
removePropertyListener
in class PropertyMap (src)
listener
- Bound property listener to remove.
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |