xacute.common
Interface Node

All Known Implementing Classes:
QuiltTextNode, QuiltAttributeNode, QuiltElementNode, QuiltShallowNode, NodeDefaultImpl

public interface Node


Method Summary
 int compareTo(Node n)
          to compare two nodes two nodes are not always comparable (from different documents, attribute nodes, etc.) the result can be: SAME BEFORE AFTER NOT_COMPARABLE
 NodeList deref(java.lang.String idref, Hint[] hints)
           
 boolean equals(Node n)
          to test for physical equality of two nodes
 ExpandedName expand(java.lang.String qName)
           
 NodeList findAxis(int axis, NodeTest nt)
          to evaluate axis::note-test on a given node
 NodeList findAxis(int axis, NodeTest nt, Predicate[] predicates)
          to evaluate axis::note-test[predicate1]..[predicaten] on a given node
 Node getDocumentRoot()
          to get the root of the document the node belongs to
 ExpandedName getExpandedName()
          functions that deal with the name of the node
 java.lang.String getQName()
           
 boolean isOfPrincipalType(int axis)
          functions that deal with the type of the node
 boolean isOfType(int type)
           
 java.lang.String stringValue_shallow()
           
 java.lang.String stringValue()
          output methods: 'shallow' means that children are ignored
 void toSAX_shallow(org.xml.sax.DocumentHandler handler)
           
 void toSAX(org.xml.sax.DocumentHandler handler)
           
 

Method Detail

equals

public boolean equals(Node n)
to test for physical equality of two nodes

compareTo

public int compareTo(Node n)
to compare two nodes two nodes are not always comparable (from different documents, attribute nodes, etc.) the result can be: SAME BEFORE AFTER NOT_COMPARABLE

getDocumentRoot

public Node getDocumentRoot()
                     throws QuiltException
to get the root of the document the node belongs to

findAxis

public NodeList findAxis(int axis,
                         NodeTest nt)
to evaluate axis::note-test on a given node

findAxis

public NodeList findAxis(int axis,
                         NodeTest nt,
                         Predicate[] predicates)
                  throws QuiltException
to evaluate axis::note-test[predicate1]..[predicaten] on a given node

deref

public NodeList deref(java.lang.String idref,
                      Hint[] hints)

getExpandedName

public ExpandedName getExpandedName()
                             throws QuiltException
functions that deal with the name of the node

expand

public ExpandedName expand(java.lang.String qName)
                    throws QuiltException

getQName

public java.lang.String getQName()

isOfPrincipalType

public boolean isOfPrincipalType(int axis)
functions that deal with the type of the node

isOfType

public boolean isOfType(int type)

stringValue

public java.lang.String stringValue()
output methods: 'shallow' means that children are ignored

stringValue_shallow

public java.lang.String stringValue_shallow()

toSAX

public void toSAX(org.xml.sax.DocumentHandler handler)
           throws org.xml.sax.SAXException

toSAX_shallow

public void toSAX_shallow(org.xml.sax.DocumentHandler handler)
                   throws org.xml.sax.SAXException