org.sixdml.excelon
Class xlnSixdmlXpathObject

java.lang.Object
  |
  +--org.sixdml.excelon.xlnSixdmlXpathObject
All Implemented Interfaces:
org.sixdml.query.SixdmlXpathObject

public class xlnSixdmlXpathObject
extends java.lang.Object
implements org.sixdml.query.SixdmlXpathObject

  
 xlnSixdmlXpathObject.java

 Represents an object returned from an XPath query. 
 
 Created: Mon Jan 14 18:09:44 2002

 


Fields inherited from interface org.sixdml.query.SixdmlXpathObject
BOOLEAN, NODESET, NUMBER, STRING, TREE_FRAGMENT, UNKNOWN
 
Method Summary
 java.lang.String getNodeSetAsXML()
          Returns the contents of the object as a n XML string if it is a nodeset or null otherwise.
 boolean getObjectAsBoolean()
          Returns the object as a boolean.
 org.w3c.dom.NodeList getObjectAsNodeSet()
          Returns the object as a DOM node list.
 double getObjectAsNumber()
          Returns the object as a double.
 java.lang.String getObjectAsString()
          Returns the object as a string.
 org.sixdml.query.SixdmlXpathObjectType getType()
          Get the type of this object as a SixdmlXpathObjectType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getType

public org.sixdml.query.SixdmlXpathObjectType getType()
Get the type of this object as a SixdmlXpathObjectType.
Specified by:
getType in interface org.sixdml.query.SixdmlXpathObject
Returns:
the type of this object.

getObjectAsBoolean

public boolean getObjectAsBoolean()
Returns the object as a boolean.
Specified by:
getObjectAsBoolean in interface org.sixdml.query.SixdmlXpathObject
Returns:
the object as a boolean.

getObjectAsString

public java.lang.String getObjectAsString()
Returns the object as a string. For a nodeset the text form of the first element in the set is returned to be compatible with the XPath spec. For retrieval of the entire XML from a nodeset the getNodeSetAsXML() method should be used.
Specified by:
getObjectAsString in interface org.sixdml.query.SixdmlXpathObject
Returns:
the object as a string.
See Also:
getNodeSetAsXML()

getObjectAsNumber

public double getObjectAsNumber()
Returns the object as a double.
Specified by:
getObjectAsNumber in interface org.sixdml.query.SixdmlXpathObject
Returns:
the object as a double.

getObjectAsNodeSet

public org.w3c.dom.NodeList getObjectAsNodeSet()
Returns the object as a DOM node list.
Specified by:
getObjectAsNodeSet in interface org.sixdml.query.SixdmlXpathObject
Returns:
the object as a DOM node list.

getNodeSetAsXML

public java.lang.String getNodeSetAsXML()
Returns the contents of the object as a n XML string if it is a nodeset or null otherwise.
Specified by:
getNodeSetAsXML in interface org.sixdml.query.SixdmlXpathObject
Returns:
the entire contents of the object as a string if it is a nodeset or null otherwise.