|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
SixdmlXpathObject.java This class represents the results of an XPath query on a document or collection. Later implemntations may want to use this as a base type for a hierarchy of types based on the XPath type system. Created: Fri Jan 11 10:56:12 2002
| Field Summary | |
static SixdmlXpathObjectType |
BOOLEAN
Represents a boolean. |
static SixdmlXpathObjectType |
NODESET
Represents a list of DOM nodes. |
static SixdmlXpathObjectType |
NUMBER
Represents a number. |
static SixdmlXpathObjectType |
STRING
Represents a string. |
static SixdmlXpathObjectType |
TREE_FRAGMENT
Represents a DOM tree fragment. |
static SixdmlXpathObjectType |
UNKNOWN
Represents an unknown result. |
| Method Summary | |
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. |
NodeList |
getObjectAsNodeSet()
Returns the object as a DOM node list. |
double |
getObjectAsNumber()
Returns the object as a double. |
String |
getObjectAsString()
Returns the object as a string. |
SixdmlXpathObjectType |
getType()
Get the type of this object as a SixdmlXpathObjectType. |
| Field Detail |
public static final SixdmlXpathObjectType NODESET
public static final SixdmlXpathObjectType TREE_FRAGMENT
public static final SixdmlXpathObjectType BOOLEAN
public static final SixdmlXpathObjectType STRING
public static final SixdmlXpathObjectType NUMBER
public static final SixdmlXpathObjectType UNKNOWN
| Method Detail |
public SixdmlXpathObjectType getType()
public String getNodeSetAsXML()
public boolean getObjectAsBoolean()
public String getObjectAsString()
getNodeSetAsXML()public double getObjectAsNumber()
public NodeList getObjectAsNodeSet()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||