dk.brics.xact
Class NamespaceDecl

java.lang.Object
  extended by dk.brics.xact.Node
      extended by dk.brics.xact.NamespaceDecl

public class NamespaceDecl
extends Node

Namespace declaration node. Provides a namespace prefix for use by XMLPrinter.


Constructor Summary
NamespaceDecl(String prefix, String namespace)
          Constructs a new namespace declaration node.
NamespaceDecl(String prefix, String namespace, NamespaceDecl nextnsdecl, Origin origin)
          Constructs a new namespace declaration node.
NamespaceDecl(String prefix, String namespace, Origin origin)
          Constructs a new namespace declaration node.
 
Method Summary
(package private)  NamespaceDecl copy(NamespaceDecl nextnsdecl)
          Returns a copy of this node with the given successor.
 String getNamespace()
          Returns the namespace URI.
 NamespaceDecl getNext()
          Returns the next namespace declaration.
 String getPrefix()
          Returns the prefix.
 String toString()
          Returns a description of this node.
(package private)  void visitAnyBy(AnyNodeVisitor v)
          Visits this node by the given any-node visitor.
(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.Node
asAttribute, asComment, asElement, asNamespaceDecl, asProcessingInstruction, asTemplate, asText, expanded, follow, follow, follow, follow, forward, getOrigin, isAttribute, isComment, isElement, isNamespaceDecl, isProcessingInstruction, isTemplate, isText, visitBy, visitBy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamespaceDecl

public NamespaceDecl(String prefix,
                     String namespace)
Constructs a new namespace declaration node.


NamespaceDecl

public NamespaceDecl(String prefix,
                     String namespace,
                     NamespaceDecl nextnsdecl,
                     Origin origin)
Constructs a new namespace declaration node.


NamespaceDecl

public NamespaceDecl(String prefix,
                     String namespace,
                     Origin origin)
Constructs a new namespace declaration node.

Method Detail

copy

NamespaceDecl copy(NamespaceDecl nextnsdecl)
Returns a copy of this node with the given successor.


getNamespace

public String getNamespace()
Returns the namespace URI.


getNext

public NamespaceDecl getNext()
Returns the next namespace declaration.


getPrefix

public String getPrefix()
Returns the prefix.


toString

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

Specified by:
toString in class Node

visitAnyBy

void visitAnyBy(AnyNodeVisitor v)
Description copied from class: Node
Visits this node by the given any-node visitor.

Specified by:
visitAnyBy 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.