com.primix.tapestry.util
Interface IPropertyHolder

All Known Implementing Classes:
BasePropertyHolder

public interface IPropertyHolder

An interface that defines an object that can store named propertys. The names and the properties are Strings.

Version:
$Id: IPropertyHolder.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.
 

Method Detail

getPropertyNames

public java.util.Collection getPropertyNames()
Returns a Collection of Strings, the names of all properties held by the receiver. May return an empty collection.

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
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.

removeProperty

public void removeProperty(java.lang.String name)
Removes the named property, if present.

getProperty

public java.lang.String getProperty(java.lang.String name)
Retrieves the named property, or null if the property is not defined.