org.apache.xpath.objects
Class XNull
- Cloneable, DTMIterator, ExpressionNode, PathComponent, Serializable, SourceLocator, XPathVisitable
This class represents an XPath null object, and is capable of
converting the null to other types, such as a string.
- Serialized Form
XNull() - Create an XObject.
|
boolean | bool() - Cast result object to a boolean.
|
boolean | equals(XObject obj2) - Tell if two objects are functionally equal.
|
int | getType() - Tell what kind of class this is.
|
String | getTypeString() - Given a request type, return the equivalent string.
|
double | num() - Cast result object to a number.
|
int | rtf(XPathContext support) - Cast result object to a result tree fragment.
|
String | str() - Cast result object to a string.
|
appendToFsb , bool , boolWithSideEffects , compare , dispatchCharactersEvents , equals , getFresh , getNumberFromNode , getStringFromNode , getType , getTypeString , greaterThan , greaterThanOrEqual , iter , iterRaw , lessThan , lessThanOrEqual , mutableNodeset , nodelist , nodeset , notEquals , num , numWithSideEffects , object , release , str , xstr |
allowDetachToRelease , clone , cloneWithReset , detach , fixupVariables , getAnalysisBits , getAxis , getContainedIter , getCurrentNode , getCurrentPos , getDTM , getDTMManager , getExpandEntityReferences , getLength , getRoot , getWhatToShow , hasCache , isDocOrdered , isFresh , isMutable , item , nextNode , previousNode , reset , runTo , setCurrentPos , setItem , setIter , setRoot , setShouldCacheNodes |
allowDetachToRelease , appendToFsb , bool , boolWithSideEffects , callVisitors , castToType , create , create , deepEquals , destruct , detach , dispatchCharactersEvents , equals , execute , fixupVariables , getFresh , getType , getTypeString , greaterThan , greaterThanOrEqual , iter , lessThan , lessThanOrEqual , mutableNodeset , nodelist , nodeset , notEquals , num , numWithSideEffects , object , reset , rtf , rtf , rtree , rtree , str , toString , xstr |
asIterator , asIteratorRaw , asNode , assertion , bool , canTraverseOutsideSubtree , deepEquals , error , execute , execute , execute , execute , executeCharsToContentHandler , exprAddChild , exprGetChild , exprGetNumChildren , exprGetParent , exprSetParent , fixupVariables , getColumnNumber , getExpressionOwner , getLineNumber , getPublicId , getSystemId , isNodesetExpr , isStableNumber , num , warn , xstr |
XNull
public XNull()
Create an XObject.
bool
public boolean bool()
Cast result object to a boolean.
- bool in interface XNodeSet
- false
equals
public boolean equals(XObject obj2)
Tell if two objects are functionally equal.
- equals in interface XNodeSet
obj2
- Object to compare this to
- True if the given object is of type CLASS_NULL
getType
public int getType()
Tell what kind of class this is.
- getType in interface XNodeSet
- type CLASS_NULL
getTypeString
public String getTypeString()
Given a request type, return the equivalent string.
For diagnostic purposes.
- getTypeString in interface XNodeSet
- type string "#CLASS_NULL"
num
public double num()
Cast result object to a number.
- num in interface XNodeSet
- 0.0
rtf
public int rtf(XPathContext support)
Cast result object to a result tree fragment.
- rtf in interface XObject
support
- XPath context to use for the conversion
- The object as a result tree fragment.
str
public String str()
Cast result object to a string.
- str in interface XNodeSet
- empty string ""
Copyright B) 2004 Apache XML Project. All Rights Reserved.