com.jclark.xsl.om
Interface Node

All Known Implementing Classes:
NodeBase

public interface Node


Field Summary
static byte ATTRIBUTE
           
static byte COMMENT
           
static byte ELEMENT
           
static int N_TYPES
           
static byte PROCESSING_INSTRUCTION
           
static byte ROOT
           
static byte TEXT
           
 
Method Summary
 int compareTo(Node node)
           
 Node getAttribute(Name name)
           
 SafeNodeIterator getAttributes()
           
 java.lang.String getAttributeValue(Name name)
           
 SafeNodeIterator getChildren()
           
 java.lang.String getData()
          Returns text for TEXT node; value for attribute node; content for comment node; content after PI for PI node; null otherwise.
 Node getElementWithId(java.lang.String id)
           
 SafeNodeIterator getFollowingSiblings()
           
 java.lang.String getGeneratedId()
           
 int getLineNumber()
           
 Name getName()
          Returns element type name for element; attribute name for an attribute; target for a PI.
 NamespacePrefixMap getNamespacePrefixMap()
           
 Node getParent()
           
 Node getRoot()
           
 byte getType()
           
 java.lang.String getUnparsedEntityURI(java.lang.String name)
           
 java.net.URL getURL()
           
 boolean isId(java.lang.String id)
           
 

Field Detail

ELEMENT

public static final byte ELEMENT
See Also:
Constant Field Values

TEXT

public static final byte TEXT
See Also:
Constant Field Values

ATTRIBUTE

public static final byte ATTRIBUTE
See Also:
Constant Field Values

ROOT

public static final byte ROOT
See Also:
Constant Field Values

PROCESSING_INSTRUCTION

public static final byte PROCESSING_INSTRUCTION
See Also:
Constant Field Values

COMMENT

public static final byte COMMENT
See Also:
Constant Field Values

N_TYPES

public static final int N_TYPES
See Also:
Constant Field Values
Method Detail

getType

public byte getType()

getName

public Name getName()
Returns element type name for element; attribute name for an attribute; target for a PI.


getData

public java.lang.String getData()
Returns text for TEXT node; value for attribute node; content for comment node; content after PI for PI node; null otherwise.


getParent

public Node getParent()

getChildren

public SafeNodeIterator getChildren()

getFollowingSiblings

public SafeNodeIterator getFollowingSiblings()

getURL

public java.net.URL getURL()

getLineNumber

public int getLineNumber()

getNamespacePrefixMap

public NamespacePrefixMap getNamespacePrefixMap()

compareTo

public int compareTo(Node node)

getElementWithId

public Node getElementWithId(java.lang.String id)

isId

public boolean isId(java.lang.String id)

getAttributeValue

public java.lang.String getAttributeValue(Name name)

getAttribute

public Node getAttribute(Name name)

getAttributes

public SafeNodeIterator getAttributes()

getGeneratedId

public java.lang.String getGeneratedId()

getUnparsedEntityURI

public java.lang.String getUnparsedEntityURI(java.lang.String name)

getRoot

public Node getRoot()