dk.brics.xact
Class Attribute

java.lang.Object
  extended by dk.brics.xact.Node
      extended by dk.brics.xact.AttrNode
          extended by dk.brics.xact.Attribute

public class Attribute
extends AttrNode

Attribute node.


Constructor Summary
Attribute(String localname, String value)
          Constructs a new attribute node with no namespace.
Attribute(String localname, String value, Origin origin)
          Constructs a new attribute node with no namespace.
Attribute(String namespace, String localname, String value)
          Constructs a new attribute node.
Attribute(String namespace, String localname, String value, AttrNode nextattribute, Origin origin)
          Constructs a new attribute node.
Attribute(String namespace, String localname, String value, Origin origin)
          Constructs a new attribute node.
 
Method Summary
 Attribute copy(AttrNode nextattribute)
          Returns a copy of this attribute with the given successor.
 String getValue()
          Returns the value.
 String toString()
          Returns a description of this node.
 
Methods inherited from class dk.brics.xact.AttrNode
getExpandedName, getLocalName, getNamespace, getNextAttr, getNextAttribute
 
Methods inherited from class dk.brics.xact.Node
asAttribute, asComment, asElement, asNamespaceDecl, asProcessingInstruction, asText, getOrigin, isAttribute, isComment, isElement, isNamespaceDecl, isProcessingInstruction, isText, visitBy, visitBy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(String localname,
                 String value)
Constructs a new attribute node with no namespace.


Attribute

public Attribute(String localname,
                 String value,
                 Origin origin)
Constructs a new attribute node with no namespace.


Attribute

public Attribute(String namespace,
                 String localname,
                 String value)
Constructs a new attribute node.


Attribute

public Attribute(String namespace,
                 String localname,
                 String value,
                 AttrNode nextattribute,
                 Origin origin)
Constructs a new attribute node.


Attribute

public Attribute(String namespace,
                 String localname,
                 String value,
                 Origin origin)
Constructs a new attribute node.

Method Detail

copy

public Attribute copy(AttrNode nextattribute)
Description copied from class: AttrNode
Returns a copy of this attribute with the given successor.

Specified by:
copy in class AttrNode

getValue

public String getValue()
Returns the value.


toString

public String toString()
Description copied from class: Node
Returns a description of this node.

Specified by:
toString in class Node


Copyright © 2005-2011 Aarhus University.