com.smallx.xml.infoset
Interface Child

All Superinterfaces:
Item
All Known Subinterfaces:
Characters, Comment, Document, Element, Parent, ProcessingInstruction
All Known Implementing Classes:
MemoryCharacters, MemoryComment, MemoryDocument, MemoryElement, MemoryParent, MemoryProcessingInstruction

public interface Child
extends Item

This interface represents a infoset item in an XML document.


Field Summary
 
Fields inherited from interface com.smallx.xml.infoset.Item
ANCESTOR_AXIS, ANCESTOR_OR_SELF_AXIS, ATTRIBUTE, ATTRIBUTE_AXIS, CHARACTERS, CHILD_AXIS, COMMENT, DESCENDANT_AXIS, DESCENDANT_OR_SELF_AXIS, DOCUMENT, DOCUMENT_END, ELEMENT, ELEMENT_END, FOLLOWING_AXIS, FOLLOWING_SIBLING_AXIS, N_TYPES, NAMESPACE, NAMESPACE_AXIS, PARENT_AXIS, PRECEDING_AXIS, PRECEDING_SIBLING_AXIS, PROCESSING_INSTRUCTION, SELF_AXIS
 
Method Summary
 int compareTo(Item other)
          Compares this node to another node returning 1, 0, or -1.
 Document getDocument()
          This method returns the same as getOrigin().getDocument().
 Child getFollowingSibling()
          Returns the following sibling of this node.
 java.util.Iterator getFollowingSiblings()
           
 Parent getParent()
          Returns the origin of this node.
 Child getPrecedingSibling()
          Returns the preceeding sibling to this node.
 java.util.Iterator getPrecedingSiblings()
           
 
Methods inherited from interface com.smallx.xml.infoset.Item
getAxis, getGeneratedId, getInfoset, getOrigin, getType
 

Method Detail

getDocument

public Document getDocument()
Description copied from interface: Item
This method returns the same as getOrigin().getDocument(). That is, the document that contains this item.

Specified by:
getDocument in interface Item

getParent

public Parent getParent()
Returns the origin of this node. This is either the element on which the attribute is declared or the parent of the node.


getFollowingSibling

public Child getFollowingSibling()
Returns the following sibling of this node.

Returns:
An instance of Item or null.

getFollowingSiblings

public java.util.Iterator getFollowingSiblings()

getPrecedingSibling

public Child getPrecedingSibling()
Returns the preceeding sibling to this node.


getPrecedingSiblings

public java.util.Iterator getPrecedingSiblings()

compareTo

public int compareTo(Item other)
Compares this node to another node returning 1, 0, or -1.

Specified by:
compareTo in interface Item
Parameters:
other - The node with which to compare.