org.planx.xmlstore.nodes
Class DVMAttribute
java.lang.Object
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
DVMAttribute
public DVMAttribute(String name,
String value)
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.