jd.xml.xpath.model
Class NodeName

java.lang.Object
  extended byjd.xml.xpath.model.NodeName
All Implemented Interfaces:
Cloneable

public class NodeName
extends Object
implements Cloneable

A NodeName represents the name of a XPath node. NodeNames are created and managed by a NodeNamePool.

See Also:
NodeNamePool

Field Summary
 int index
           
static int INVALID_ID
           
 boolean isXmlSpace
           
 String localName
           
 int nameId
           
 String namespaceUri
           
 int namespaceUriId
           
(package private)  NodeName next_
           
 String prefix
           
 String qname
           
 
Constructor Summary
(package private) NodeName(NodeName nodeName, String qname, int index)
          Create a copy of a NodeName with a non null namespace uri.
(package private) NodeName(String namespaceUri, String localName, String qname, int namespaceUriId, int nameId, int index)
          Create a NodeName.
 
Method Summary
 Object clone()
          Return a copy of the NodeName.
 boolean equalsName(String namespaceUri, String localName)
          Test if the NodeName has the same uri and local name.
 boolean isCDataSectionName()
          Return if elements with this NodeName should output their text childs as cdata section.
 boolean preserveSpace()
          Return if elements with this NodeName preserve whitespace text when transformed with a XSLT stylesheet.
(package private)  void setCDataSectionName()
          Set if elements with this NodeName should output their text childs as cdata section.
(package private)  void setPreserveSpace(boolean preserve)
          Setup the whitespace preserve flag.
 String toString()
          Return the qname.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALID_ID

public static final int INVALID_ID
See Also:
Constant Field Values

nameId

public final int nameId

namespaceUri

public final String namespaceUri

prefix

public final String prefix

localName

public final String localName

qname

public final String qname

namespaceUriId

public final int namespaceUriId

index

public final int index

isXmlSpace

public final boolean isXmlSpace

next_

NodeName next_
Constructor Detail

NodeName

NodeName(String namespaceUri,
         String localName,
         String qname,
         int namespaceUriId,
         int nameId,
         int index)
Create a NodeName.


NodeName

NodeName(NodeName nodeName,
         String qname,
         int index)
Create a copy of a NodeName with a non null namespace uri. The new name is equal to the original one, only the prefix and qname differ.

Parameters:
nodeName - the other NodeName
qname - a qname from which the prefix is derived
index - the node index
Method Detail

equalsName

public boolean equalsName(String namespaceUri,
                          String localName)
Test if the NodeName has the same uri and local name.

Parameters:
namespaceUri - a namespaceUri, can be null
localName - a localName

isCDataSectionName

public boolean isCDataSectionName()
Return if elements with this NodeName should output their text childs as cdata section.


setCDataSectionName

void setCDataSectionName()
Set if elements with this NodeName should output their text childs as cdata section.


preserveSpace

public boolean preserveSpace()
Return if elements with this NodeName preserve whitespace text when transformed with a XSLT stylesheet.


setPreserveSpace

void setPreserveSpace(boolean preserve)
Setup the whitespace preserve flag.


clone

public Object clone()
Return a copy of the NodeName.


toString

public String toString()
Return the qname.