org.oddjob.arooa.parsing
Class MutableAttributes

java.lang.Object
  extended by org.oddjob.arooa.parsing.MutableAttributes
All Implemented Interfaces:
ArooaAttributes

public class MutableAttributes
extends Object
implements ArooaAttributes


Constructor Summary
MutableAttributes()
           
MutableAttributes(ArooaAttributes attributes)
           
 
Method Summary
 String get(String name)
          The attribute value.
 String[] getAttributNames()
          Get all the names of the attributes.
 String remove(String name)
           
 void set(String name, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableAttributes

public MutableAttributes()

MutableAttributes

public MutableAttributes(ArooaAttributes attributes)
Method Detail

set

public void set(String name,
                String value)

get

public String get(String name)
Description copied from interface: ArooaAttributes
The attribute value.

Specified by:
get in interface ArooaAttributes
Parameters:
name - The name of the attribute.
Returns:
The value, or null if it doesn't exist.

getAttributNames

public String[] getAttributNames()
Description copied from interface: ArooaAttributes
Get all the names of the attributes.

Specified by:
getAttributNames in interface ArooaAttributes
Returns:
The attribute names. Never null.

remove

public String remove(String name)