org.planx.xmlstore.docnodes
Class DocAttribute

java.lang.Object
  extended by org.planx.xmlstore.docnodes.DocAttribute
All Implemented Interfaces:
CharSequence, Comparable<Attribute>, Attribute

public class DocAttribute
extends Object
implements Attribute, Comparable<Attribute>

An Attribute returned by DocNode. Note that this class also provides the ability to get the owner of the attribute.

Author:
Thomas Ambus

Method Summary
 char charAt(int index)
           
 int compareTo(Attribute o)
           
 boolean equals(Object o)
           
 String getName()
          Returns the name of the attribute.
 DocNode getOwner()
          Returns the DocNode to which this attribute belongs.
 String getValue()
          Returns the value of the attribute.
 int hashCode()
           
 int length()
           
 CharSequence subSequence(int start, int end)
           
 String toString()
          Returns the value of this attribute
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getOwner

public DocNode getOwner()
Returns the DocNode to which this attribute belongs.


getValue

public String getValue()
Description copied from interface: Attribute
Returns the value of the attribute.

Specified by:
getValue in interface Attribute
Returns:
the value of the attribute

getName

public String getName()
Description copied from interface: Attribute
Returns the name of the attribute.

Specified by:
getName in interface Attribute
Returns:
the name of the attribute

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Attribute o)
Specified by:
compareTo in interface Comparable<Attribute>

toString

public String toString()
Returns the value of this attribute

Specified by:
toString in interface CharSequence
Overrides:
toString in class Object

charAt

public char charAt(int index)
Specified by:
charAt in interface CharSequence

length

public int length()
Specified by:
length in interface CharSequence

subSequence

public CharSequence subSequence(int start,
                                int end)
Specified by:
subSequence in interface CharSequence


Copyright © 2010. All Rights Reserved.