com.primix.tapestry.util
Class BasePropertyHolder
java.lang.Object
|
+--com.primix.tapestry.util.BasePropertyHolder
- All Implemented Interfaces:
- IPropertyHolder
- Direct Known Subclasses:
- ApplicationSpecification, ComponentSpecification
- public class BasePropertyHolder
- extends java.lang.Object
- implements IPropertyHolder
Base class implementation for the IPropertyHolder
interface.
- Version:
- $Id: BasePropertyHolder.java,v 1.5 2001/05/02 14:15:16 hship Exp $
- Author:
- Howard Ship
Method Summary |
java.lang.String |
getProperty(java.lang.String name)
Retrieves the named property, or null if the property is not defined. |
java.util.Collection |
getPropertyNames()
Returns a Collection of Strings, the names of all
properties held by the receiver. |
void |
removeProperty(java.lang.String name)
Removes the named property, if present. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets a named property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasePropertyHolder
public BasePropertyHolder()
getProperty
public java.lang.String getProperty(java.lang.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(java.lang.String name,
java.lang.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(java.lang.String name)
- Description copied from interface:
IPropertyHolder
- Removes the named property, if present.
- Specified by:
removeProperty
in interface IPropertyHolder
getPropertyNames
public java.util.Collection getPropertyNames()
- Description copied from interface:
IPropertyHolder
- Returns a Collection of Strings, the names of all
properties held by the receiver. May return an empty collection.
- Specified by:
getPropertyNames
in interface IPropertyHolder