org.apache.tapestry.util
Class BasePropertyHolder
java.lang.Object
|
+--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,v 1.2 2003/04/21 13:15:40 glongman Exp $
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasePropertyHolder
public BasePropertyHolder()
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