org.planx.xmlstore.nodes
Class DVMAttribute

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

public class DVMAttribute
extends Object
implements Attribute, Comparable<Attribute>, CharSequence

Author:
Kasper Bøgebjerg, Henning Niss, Thomas Ambus

Constructor Summary
DVMAttribute(String name, String value)
           
 
Method Summary
 char charAt(int index)
           
 int compareTo(Attribute o)
           
 boolean equals(Object o)
           
static Discriminator<Attribute> getDiscriminator()
           
static Discriminator<Attribute> getDiscriminator(Memory memory)
           
 String getName()
          Returns the name of the attribute.
static Streamer<Attribute> getStreamer()
           
 String getValue()
          Returns the value of the attribute.
 int hashCode()
           
 int length()
           
 CharSequence subSequence(int start, int end)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DVMAttribute

public DVMAttribute(String name,
                    String value)
Method Detail

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

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

compareTo

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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
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

getStreamer

public static Streamer<Attribute> getStreamer()

getDiscriminator

public static Discriminator<Attribute> getDiscriminator()

getDiscriminator

public static Discriminator<Attribute> getDiscriminator(Memory memory)


Copyright © 2010. All Rights Reserved.