dk.brics.xact
Class OperationNode

java.lang.Object
  extended by dk.brics.xact.Node
      extended by dk.brics.xact.XML
          extended by dk.brics.xact.OperationNode
All Implemented Interfaces:
ToXMLable
Direct Known Subclasses:
CloseNode, ConcatNode, PlugNode

abstract class OperationNode
extends XML

Base class for operation nodes. Used for lazily executed operations.


Constructor Summary
OperationNode(Origin origin)
          Constructs a new operation node.
 
Method Summary
 Comment asComment()
          Returns this node as a comment node.
 Element asElement()
          Returns this node as an element node.
 ProcessingInstruction asProcessingInstruction()
          Returns this node as a processing instruction node.
 TempNode asTemplate()
          Returns this node as an XML template content node.
 Text asText()
          Returns this node as a text node.
 boolean isComment()
          Checks whether this is an comment node.
 boolean isElement()
          Checks whether this is an element node.
 boolean isProcessingInstruction()
          Checks whether this is an processing instruction node.
(package private)  boolean isTemplate()
          Checks whether this is an XML template content node.
 boolean isText()
          Checks whether this is a text node.
(package private)  void visitNormalizedBy(NodeVisitor v)
          Visits this normalized node it by the given visitor.
(package private)
<R,A> R
visitNormalizedBy(NodeVisitorParameterized<R,A> v, A arg)
          Visits this normalized node it by the given visitor.
 
Methods inherited from class dk.brics.xact.XML
analyze, append, appendContent, appendContent, byteLength, close, concat, concat, concatXML, gapify, gapify, get, getAttribute, getAttribute, getElement, getElementByID, getElements, getFirstElement, getNamespaceMap, getNextSibling, getNumber, getNumber, getRealNextSibling, getString, getString, getStrings, getThreadNamespaceMap, has, insertAfter, insertBefore, loadXMLSchema, loadXMLSchema, normalize, parseDocument, parseDocument, parseDocument, parseDocument, parseTemplate, parseTemplate, parseTemplate, parseTemplate, parseTemplateResource, parseTemplateResource, plug, plugList, plugWrap, prepend, prependContent, prependContent, remove, set, set, set, set, setContent, setContent, toDocument, toDocument, toDocument, toDocument, toTemplate, toTemplate, toTemplate, toXML, toXML, validate, visitBy, visitBy
 
Methods inherited from class dk.brics.xact.Node
asAttribute, asNamespaceDecl, expanded, follow, follow, follow, follow, forward, getOrigin, isAttribute, isNamespaceDecl, toString, visitAnyBy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperationNode

OperationNode(Origin origin)
Constructs a new operation node.

Method Detail

asComment

public Comment asComment()
Description copied from class: Node
Returns this node as a comment node.

Overrides:
asComment in class Node

asElement

public Element asElement()
Description copied from class: Node
Returns this node as an element node.

Overrides:
asElement in class Node

asProcessingInstruction

public ProcessingInstruction asProcessingInstruction()
Description copied from class: Node
Returns this node as a processing instruction node.

Overrides:
asProcessingInstruction in class Node

asTemplate

public TempNode asTemplate()
Description copied from class: Node
Returns this node as an XML template content node.

Overrides:
asTemplate in class Node

asText

public Text asText()
Description copied from class: Node
Returns this node as a text node.

Overrides:
asText in class Node

isComment

public boolean isComment()
Description copied from class: Node
Checks whether this is an comment node.

Overrides:
isComment in class Node

isElement

public boolean isElement()
Description copied from class: Node
Checks whether this is an element node.

Overrides:
isElement in class Node

isProcessingInstruction

public boolean isProcessingInstruction()
Description copied from class: Node
Checks whether this is an processing instruction node.

Overrides:
isProcessingInstruction in class Node

isTemplate

boolean isTemplate()
Description copied from class: Node
Checks whether this is an XML template content node.

Overrides:
isTemplate in class Node

isText

public boolean isText()
Description copied from class: Node
Checks whether this is a text node.

Overrides:
isText in class Node

visitNormalizedBy

void visitNormalizedBy(NodeVisitor v)
Description copied from class: Node
Visits this normalized node it by the given visitor.

Specified by:
visitNormalizedBy in class Node

visitNormalizedBy

<R,A> R visitNormalizedBy(NodeVisitorParameterized<R,A> v,
                          A arg)
Description copied from class: Node
Visits this normalized node it by the given visitor.

Specified by:
visitNormalizedBy in class Node


Copyright © 2005-2011 Aarhus University.