org.apache.pivot.xml
Class Element.Attribute

java.lang.Object
  extended by org.apache.pivot.xml.Element.Attribute
Enclosing class:
Element

public static class Element.Attribute
extends Object

Class representing an XML attribute.


Constructor Summary
Element.Attribute(String localName, String value)
           
Element.Attribute(String namespacePrefix, String localName, String value)
           
 
Method Summary
 boolean equals(Object o)
           
 Element getElement()
          Returns the element to which this attribute belongs.
 String getLocalName()
          Returns the attribute's local name.
 String getName()
          Returns the fully-qualified name of the attribute.
 String getNamespacePrefix()
          Returns the attribute's namespace prefix.
 String getValue()
          Returns the attribute's value.
 int hashCode()
           
 void setValue(String value)
          Sets the attribute's value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Element.Attribute

public Element.Attribute(String localName,
                         String value)

Element.Attribute

public Element.Attribute(String namespacePrefix,
                         String localName,
                         String value)
Method Detail

getElement

public Element getElement()
Returns the element to which this attribute belongs.

Returns:
This attribute's element, or null if the attribute does not belong to an element.

getNamespacePrefix

public String getNamespacePrefix()
Returns the attribute's namespace prefix.

Returns:
The attribute's namespace prefix, or null if the attribute belongs to the default namespace.

getLocalName

public String getLocalName()
Returns the attribute's local name.


getName

public String getName()
Returns the fully-qualified name of the attribute.


getValue

public String getValue()
Returns the attribute's value.


setValue

public void setValue(String value)
Sets the attribute's value.

Parameters:
value -

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object