net.sourceforge.xcool
Interface ResultNode


public interface ResultNode

Interface implemented by the XQL result returned after executing a query.

Author:
leon

Method Summary
 Attribute getAttribute(int n)
          Returns the n'th attribute.
 int getAttributeCount()
          Returns the number of attributes.
 java.util.Iterator getAttributes()
          Returns the node's attributes.
 ResultNode getChild(int n)
          Returns the n'th child.
 java.util.Iterator getChildren()
          Returns the node's children.
 int getChildrenCount()
          Returns the number of children.
 java.lang.String getValue()
          Returns the value of the node.
 

Method Detail

getValue

public java.lang.String getValue()
Returns the value of the node. For a xml element this is the name of the element, for a text node this is the text.
Returns:
the value of the node.

getAttributes

public java.util.Iterator getAttributes()
Returns the node's attributes.
Returns:
the node's attributes.

getChildren

public java.util.Iterator getChildren()
Returns the node's children.
Returns:
the node's children.

getChildrenCount

public int getChildrenCount()
Returns the number of children.
Returns:
the number of children.

getChild

public ResultNode getChild(int n)
Returns the n'th child.
Returns:
the n'th child.

getAttributeCount

public int getAttributeCount()
Returns the number of attributes.

getAttribute

public Attribute getAttribute(int n)
Returns the n'th attribute.
Returns:
the n'th attribute.