com.mucommander.xml
Class XmlAttributes

java.lang.Object
  extended by com.mucommander.xml.XmlAttributes

public class XmlAttributes
extends java.lang.Object

Container for XML attributes.

This class is meant for use with XmlWriter. It's used to hold a list of XML attributes that will be passed to one of the element opening methods.

Author:
Nicolas Rinaudo

Constructor Summary
XmlAttributes()
          Builds a new, empty XmlAttributes instance.
 
Method Summary
 void add(java.lang.String name, java.lang.String value)
          Adds the specified attribute to this container.
 void clear()
          Clears the list of all previously defined attributes.
 java.lang.String getValue(java.lang.String name)
          Returns the value associated with the specified attribute name.
 java.util.Iterator names()
          Returns an iterator on the attributes contained by this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlAttributes

public XmlAttributes()
Builds a new, empty XmlAttributes instance.

Method Detail

getValue

public java.lang.String getValue(java.lang.String name)
Returns the value associated with the specified attribute name.

Parameters:
name - name of the attribute whose value should be retrieved.
Returns:
the value associated with the specified attribute name if found, null otherwise.

clear

public void clear()
Clears the list of all previously defined attributes.


add

public void add(java.lang.String name,
                java.lang.String value)
Adds the specified attribute to this container.

Parameters:
name - name of the attribute to whose value should be set.
value - value to which the attribute should be set.

names

public java.util.Iterator names()
Returns an iterator on the attributes contained by this instance.

Returns:
an iterator on the attributes contained by this instance.


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard