|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.hammurapi.properties.PropertySubSet
public class PropertySubSet
Wrapper around a property set to get access to a sub-set of properties based on prefix.
| Constructor Summary | |
|---|---|
PropertySubSet(PropertySet master,
java.lang.String prefix)
|
|
| Method Summary | |
|---|---|
void |
clear()
Removes all entries from the property set |
boolean |
compareProperties(PropertySet otherSet)
|
boolean |
containsAll(PropertySet subSet)
|
java.lang.Object |
get(java.lang.String name)
Retrieves property. |
java.lang.Object |
get(java.lang.String name,
java.lang.Object defaultValue)
|
java.util.Set |
getPropertyNames()
|
PropertySet |
getSubset(java.lang.String prefix)
|
void |
mount(java.lang.String prefix,
PropertySet source)
Mounts source property set at specified prefix. |
boolean |
remove(java.lang.String name)
Removes context value. |
void |
set(java.lang.String name,
java.lang.Object value)
Sets context value. |
void |
setAll(PropertySet source)
Copies all entries from the source property set to self. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertySubSet(PropertySet master,
java.lang.String prefix)
| Method Detail |
|---|
public java.util.Set getPropertyNames()
getPropertyNames in interface PropertySetpublic PropertySet getSubset(java.lang.String prefix)
getSubset in interface PropertySetpublic boolean remove(java.lang.String name)
MutableContext
remove in interface MutableContextremove in interface PropertySet
public void set(java.lang.String name,
java.lang.Object value)
MutableContext
set in interface MutableContextset in interface PropertySetpublic java.lang.Object get(java.lang.String name)
PropertySet
get in interface Contextget in interface PropertySetpublic void clear()
PropertySet
clear in interface PropertySet
public void mount(java.lang.String prefix,
PropertySet source)
PropertySet
mount in interface PropertySetpublic void setAll(PropertySet source)
PropertySet
setAll in interface PropertySetpublic boolean compareProperties(PropertySet otherSet)
compareProperties in interface PropertySetpublic boolean containsAll(PropertySet subSet)
containsAll in interface PropertySet
public java.lang.Object get(java.lang.String name,
java.lang.Object defaultValue)
get in interface PropertySetname - Property name.defaultValue - Default value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||