com.pow2.resources
Interface PropertyContainer

All Known Subinterfaces:
NodeVisitorInterface
All Known Implementing Classes:
PropertyContainerImpl, StringBufferNodeVisitor

public interface PropertyContainer

PropertyContainer Interface

Author:
Paul Monday

Method Summary
 void addProperty(Object value, String token)
          Add a property associated with a token name.
 Object getObject(String token)
          Retrieve a value by a particular token.
 String getProperty(String token)
          Retrieve a value by a particular token.
 String[] getPropertyKeys()
          Retrieve all property keys currently in use.
 void removeProperty(String token)
          Remove a value associated with a particular token.
 

Method Detail

addProperty

public void addProperty(Object value,
                        String token)
Add a property associated with a token name.
If the token already exists, the value will be replaced. If the token does not exist, it will be added with the value.

Parameters:
value - is an object that cannot be null
token - is a key that can be used to retrieve the value

getProperty

public String getProperty(String token)
Retrieve a value by a particular token.

Parameters:
token - is a key that can be used to retrieve the value
Returns:
String is the value associated with the token. It will not be null

getObject

public Object getObject(String token)
Retrieve a value by a particular token.

Parameters:
token - is a key that can be used to retrieve the value
Returns:
Object is the value associated with the token. It will not be null

getPropertyKeys

public String[] getPropertyKeys()
Retrieve all property keys currently in use.

Returns:
String[] is an array of all valid token names

removeProperty

public void removeProperty(String token)
Remove a value associated with a particular token.

Parameters:
token - is a key associated with a value that was added


Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.