org.xins.common.collections
Class BasicPropertyReader

java.lang.Object
  extended byorg.xins.common.collections.AbstractPropertyReader
      extended byorg.xins.common.collections.BasicPropertyReader
All Implemented Interfaces:
PropertyReader, Serializable

public final class BasicPropertyReader
extends AbstractPropertyReader

Modifiable implementation of a property reader.

Since:
XINS 1.0.0
Version:
$Revision: 1.9 $ $Date: 2006/08/28 09:12:31 $
Author:
Ernst de Haan
See Also:
Serialized Form

Constructor Summary
BasicPropertyReader()
          Constructs a new BasicPropertyReader.
 
Method Summary
 void remove(String name)
          Removes the specified property.
 void set(String name, String value)
          Sets the specified property.
 
Methods inherited from class org.xins.common.collections.AbstractPropertyReader
get, getNames, getPropertiesMap, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPropertyReader

public BasicPropertyReader()
Constructs a new BasicPropertyReader.

Method Detail

set

public void set(String name,
                String value)
         throws IllegalArgumentException
Sets the specified property.

Parameters:
name - the name of the property to set or reset, cannot be null.
value - the value for the property, can be null.
Throws:
IllegalArgumentException - if name == null.

remove

public void remove(String name)
            throws IllegalArgumentException
Removes the specified property.

Parameters:
name - the name of the property to set or reset, cannot be null.
Throws:
IllegalArgumentException - if name == null.


See http://www.xins.org/.