biz.hammurapi.web.properties
Interface PropertySet

All Superinterfaces:
biz.hammurapi.config.Context, biz.hammurapi.xml.dom.DomSerializable, biz.hammurapi.config.MutableContext
All Known Subinterfaces:
PersistentPropertySet
All Known Implementing Classes:
DbPropertySet, PropertySubSet, TransientPropertySet

public interface PropertySet
extends biz.hammurapi.config.MutableContext, biz.hammurapi.xml.dom.DomSerializable


Method Summary
 void clear()
          Removes all entries from the property set
 boolean compareProperties(PropertySet otherSet)
           
 boolean containsAll(PropertySet subSet)
           
 java.util.Set getPropertyNames()
           
 PropertySet getSubset(java.lang.String prefix)
           
 void load(PropertySet source)
          Loads all entries from the source to this property set
 void mount(java.lang.String prefix, PropertySet source)
          Mounts source property set at specified prefix.
 void remove(java.lang.String name)
          Removes property from the set.
 void setAll(PropertySet source)
          Copies all entries from the source property set to self.
 
Methods inherited from interface biz.hammurapi.config.MutableContext
set
 
Methods inherited from interface biz.hammurapi.config.Context
get
 
Methods inherited from interface biz.hammurapi.xml.dom.DomSerializable
toDom
 

Method Detail

getPropertyNames

public java.util.Set getPropertyNames()
Returns:
Names of properties in the set

getSubset

public PropertySet getSubset(java.lang.String prefix)
Parameters:
prefix -
Returns:
Property set which operates on properties starting with given prefix.

remove

public void remove(java.lang.String name)
Removes property from the set.

Specified by:
remove in interface biz.hammurapi.config.MutableContext
Parameters:
name -

clear

public void clear()
Removes all entries from the property set


load

public void load(PropertySet source)
Loads all entries from the source to this property set

Parameters:
source -

mount

public void mount(java.lang.String prefix,
                  PropertySet source)
Mounts source property set at specified prefix. E.g. if source property set has entry 'a' and prefix is 'b/' then that entry will be available as 'b/a'. Own property set entries shall shadow mounted entries.

Parameters:
prefix -
source -

setAll

public void setAll(PropertySet source)
Copies all entries from the source property set to self.

Parameters:
source -

containsAll

public boolean containsAll(PropertySet subSet)
Parameters:
subSet -
Returns:
true if all properties of subset are present in this set with same values

compareProperties

public boolean compareProperties(PropertySet otherSet)
Parameters:
otherSet -
Returns:
true if all properties in this set are equal to properties in the other set.


Copyright © 2006 Hammurapi Group. All Rights Reserved.