| java.lang.Object org.jfree.xml.writer.AttributeList
AttributeList | public class AttributeList (Code) | | The attribute list is used by a writer to specify the attributes
of an XML element in a certain order.
author: Thomas Morgner |
Constructor Summary | |
public | AttributeList() Creates an empty attribute list with no default values. |
Method Summary | |
public synchronized String | getAttribute(String name) Returns the attribute value for the given attribute name or null,
if the attribute is not defined in this list. | public synchronized String | getAttribute(String name, String defaultValue) Returns the attribute value for the given attribute name or the given
defaultvalue, if the attribute is not defined in this list.
Parameters: name - the name of the attribute. Parameters: defaultValue - the default value. | public Iterator | keys() Returns an iterator over all attribute names. | public synchronized void | removeAttribute(String name) Removes the attribute with the given name from the list. | public synchronized void | setAttribute(String name, String value) Defines an attribute. |
AttributeList | public AttributeList()(Code) | | Creates an empty attribute list with no default values.
|
getAttribute | public synchronized String getAttribute(String name)(Code) | | Returns the attribute value for the given attribute name or null,
if the attribute is not defined in this list.
Parameters: name - the name of the attribute the attribute value or null. |
getAttribute | public synchronized String getAttribute(String name, String defaultValue)(Code) | | Returns the attribute value for the given attribute name or the given
defaultvalue, if the attribute is not defined in this list.
Parameters: name - the name of the attribute. Parameters: defaultValue - the default value. the attribute value or the defaultValue. |
keys | public Iterator keys()(Code) | | Returns an iterator over all attribute names. The names are returned
in their oder of addition to the list. The iterator contains strings.
the iterator over all attribute names. |
removeAttribute | public synchronized void removeAttribute(String name)(Code) | | Removes the attribute with the given name from the list.
Parameters: name - the name of the attribute which should be removed.. |
setAttribute | public synchronized void setAttribute(String name, String value)(Code) | | Defines an attribute.
Parameters: name - the name of the attribute to be defined Parameters: value - the value of the attribute. |
|
|