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
 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.
 
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

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

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


Copyright © 2005-2011 Aarhus University.