|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.hammurapi.properties.MapPropertySet
public class MapPropertySet
Creates property sets backed by java.util.HashMap.
Constructor Summary | |
---|---|
MapPropertySet()
|
|
MapPropertySet(java.util.Map source)
|
|
MapPropertySet(java.util.Map source,
PropertySet[] chain)
|
|
MapPropertySet(PropertySet[] chain)
|
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 MapPropertySet(PropertySet[] chain)
public MapPropertySet(java.util.Map source, PropertySet[] chain)
public MapPropertySet()
public MapPropertySet(java.util.Map source)
Method Detail |
---|
public java.util.Set getPropertyNames()
getPropertyNames
in interface PropertySet
public PropertySet getSubset(java.lang.String prefix)
getSubset
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 java.lang.Object get(java.lang.String name)
PropertySet
get
in interface Context
get
in interface PropertySet
public void clear()
PropertySet
clear
in interface PropertySet
public void mount(java.lang.String prefix, PropertySet source)
PropertySet
mount
in interface PropertySet
public void setAll(PropertySet source)
PropertySet
setAll
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, 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 |