org.apache.tapestry.util
Class BasePropertyHolder

java.lang.Object
  extended by org.apache.tapestry.util.BasePropertyHolder
All Implemented Interfaces:
IPropertyHolder
Direct Known Subclasses:
LocatablePropertyHolder

public class BasePropertyHolder
extends Object
implements IPropertyHolder

Base class implementation for the IPropertyHolder interface.

Version:
$Id: BasePropertyHolder.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Constructor Summary
BasePropertyHolder()
           
 
Method Summary
 String getProperty(String name)
          Retrieves the named property, or null if the property is not defined.
 List getPropertyNames()
          Returns a List of Strings, the names of all properties held by the receiver.
 void removeProperty(String name)
          Removes the named property, if present.
 void setProperty(String name, String value)
          Sets a named property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasePropertyHolder

public BasePropertyHolder()
Method Detail

getProperty

public String getProperty(String name)
Description copied from interface: IPropertyHolder
Retrieves the named property, or null if the property is not defined.

Specified by:
getProperty in interface IPropertyHolder

setProperty

public void setProperty(String name,
                        String value)
Description copied from interface: IPropertyHolder
Sets a named property. The new value replaces the existing value, if any. Setting a property to null is the same as removing the property.

Specified by:
setProperty in interface IPropertyHolder

removeProperty

public void removeProperty(String name)
Description copied from interface: IPropertyHolder
Removes the named property, if present.

Specified by:
removeProperty in interface IPropertyHolder

getPropertyNames

public List getPropertyNames()
Description copied from interface: IPropertyHolder
Returns a List of Strings, the names of all properties held by the receiver. May return an empty list. The List is sorted alphabetically. The List may be modified without affecting this property holder.

Prior to release 2.2, this method returned Collection.

Specified by:
getPropertyNames in interface IPropertyHolder