biz.hammurapi.web.properties
Class TransientPropertySet

java.lang.Object
  extended bybiz.hammurapi.web.properties.TransientPropertySet
All Implemented Interfaces:
biz.hammurapi.config.Context, biz.hammurapi.xml.dom.DomSerializable, biz.hammurapi.config.MutableContext, PropertySet

public class TransientPropertySet
extends java.lang.Object
implements PropertySet


Constructor Summary
TransientPropertySet()
           
TransientPropertySet(java.util.Map source)
           
 
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)
           
 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 set(java.lang.String name, java.lang.Object value)
           
 void setAll(PropertySet source)
          Copies all entries from the source property set to self.
 void toDom(org.w3c.dom.Element holder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransientPropertySet

public TransientPropertySet()

TransientPropertySet

public TransientPropertySet(java.util.Map source)
Method Detail

getPropertyNames

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

getSubset

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

remove

public void remove(java.lang.String name)
Description copied from interface: PropertySet
Removes property from the set.

Specified by:
remove in interface PropertySet
Parameters:
name -

set

public void set(java.lang.String name,
                java.lang.Object value)
Specified by:
set in interface biz.hammurapi.config.MutableContext

get

public java.lang.Object get(java.lang.String name)
Specified by:
get in interface biz.hammurapi.config.Context

clear

public void clear()
Description copied from interface: PropertySet
Removes all entries from the property set

Specified by:
clear in interface PropertySet

load

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

Specified by:
load in interface PropertySet
Parameters:
source -

mount

public void mount(java.lang.String prefix,
                  PropertySet source)
Description copied from interface: PropertySet
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.

Specified by:
mount in interface PropertySet
Parameters:
prefix -
source -

toDom

public void toDom(org.w3c.dom.Element holder)
Specified by:
toDom in interface biz.hammurapi.xml.dom.DomSerializable

setAll

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

Specified by:
setAll in interface PropertySet
Parameters:
source -

compareProperties

public boolean compareProperties(PropertySet otherSet)
Specified by:
compareProperties in interface PropertySet
Parameters:
otherSet -
Returns:
true if other property set entries are equal to this property set entries. Other Property set attribute

containsAll

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


Copyright © 2006 Hammurapi Group. All Rights Reserved.