dk.brics.xmlgraph
Class AttributeNode
java.lang.Object
dk.brics.xmlgraph.Node
dk.brics.xmlgraph.SingleContentNode
dk.brics.xmlgraph.AttributeNode
- All Implemented Interfaces:
- ConcreteNode, Serializable, Cloneable
public class AttributeNode
- extends SingleContentNode
- implements ConcreteNode
Attribute node.
- See Also:
- Serialized Form
AttributeNode
public AttributeNode(Automaton name,
int content,
Origin origin)
- Constructs a new attribute node.
- Parameters:
name
- possible namescontent
- index of node representing attribute valueorigin
- source information (null if not applicable)
clone
protected AttributeNode clone()
- Description copied from class:
Node
- Clones this node.
- Specified by:
clone
in class SingleContentNode
getName
public Automaton getName()
- Returns possible attribute names.
- Returns:
- automaton representing possible names
process
public <T> T process(NodeProcessor<T> v)
- Description copied from class:
Node
- Applies the given node processor on this node.
- Specified by:
process
in class Node
- Type Parameters:
T
- return type- Parameters:
v
- node processor
- Returns:
- result from processor
setName
public void setName(Automaton name,
XMLGraph xg)
- Sets the possible names.
This operation replaces the node in the XML graph.
- Parameters:
name
- possible namesxg
- the current XML graph
Copyright © 2005-2010 Anders Møller.