|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.hammurapi.properties.PropertySetFilter
public class PropertySetFilter
Delegates all calls to the master property set. Developers can override some methods, e.g. convert properties from one type to another.
Field Summary | |
---|---|
protected PropertySet |
master
|
Constructor Summary | |
---|---|
PropertySetFilter(PropertySet master)
|
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 |
Field Detail |
---|
protected PropertySet master
Constructor Detail |
---|
public PropertySetFilter(PropertySet master)
Method Detail |
---|
public void clear()
PropertySet
clear
in interface PropertySet
public boolean compareProperties(PropertySet otherSet)
compareProperties
in interface PropertySet
public boolean containsAll(PropertySet subSet)
containsAll
in interface PropertySet
public java.lang.Object get(java.lang.String name)
PropertySet
get
in interface Context
get
in interface PropertySet
public java.util.Set getPropertyNames()
getPropertyNames
in interface PropertySet
public PropertySet getSubset(java.lang.String prefix)
getSubset
in interface PropertySet
public void mount(java.lang.String prefix, PropertySet source)
PropertySet
mount
in interface PropertySet
public boolean remove(java.lang.String name)
MutableContext
remove
in interface MutableContext
remove
in interface PropertySet
public void set(java.lang.String name, java.lang.Object value)
MutableContext
set
in interface MutableContext
set
in interface PropertySet
public void setAll(PropertySet source)
PropertySet
setAll
in interface PropertySet
public java.lang.Object get(java.lang.String name, java.lang.Object defaultValue)
get
in interface PropertySet
name
- Property name.defaultValue
- Default value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |