org.apache.tapestry.util
Interface IPropertyHolder

All Known Subinterfaces:
IApplicationSpecification, IAssetSpecification, IBeanSpecification, IComponentSpecification, IContainedComponent, IExtensionSpecification, ILibrarySpecification
All Known Implementing Classes:
ApplicationSpecification, AssetSpecification, BasePropertyHolder, BeanSpecification, ComponentSpecification, ContainedComponent, ExtensionSpecification, LibrarySpecification, LocatablePropertyHolder

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 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

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.
 

Method Detail

getPropertyNames

List getPropertyNames()
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.


setProperty

void setProperty(String name,
                 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

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


getProperty

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