APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xpath.internal.objects

public Class XNull

extends XNodeSet
Class Inheritance
Imports
com.sun.org.apache.xml.internal.dtm.DTM, com.sun.org.apache.xpath.internal.XPathContext

This class represents an XPath null object, and is capable of converting the null to other types, such as a string.

Field Summary

Modifier and TypeField and Description
pack-priv static final long
Inherited from com.sun.org.apache.xpath.internal.objects.XNodeSet:
S_EQS_GTS_GTES_LTS_LTES_NEQ

Constructor Summary

AccessConstructor and Description
public
XNull()

Create an XObject.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

false
bool
()

Overrides com.sun.org.apache.xpath.internal.objects.XNodeSet.bool.

Cast result object to a boolean.

public boolean

Returns:

True if the given object is of type CLASS_NULL
equals
(XObject
Object to compare this to
obj2
)

Overrides com.sun.org.apache.xpath.internal.objects.XNodeSet.equals.

Tell if two objects are functionally equal.

public int

Returns:

type CLASS_NULL
getType
()

Overrides com.sun.org.apache.xpath.internal.objects.XNodeSet.getType.

Tell what kind of class this is.

public String

Returns:

type string "#CLASS_NULL"
getTypeString
()

Overrides com.sun.org.apache.xpath.internal.objects.XNodeSet.getTypeString.

Given a request type, return the equivalent string.

public double

Returns:

0.0
num
()

Overrides com.sun.org.apache.xpath.internal.objects.XNodeSet.num.

Cast result object to a number.

public int

Returns:

The object as a result tree fragment.
rtf
(XPathContext
XPath context to use for the conversion
support
)

Overrides com.sun.org.apache.xpath.internal.objects.XObject.rtf.

Cast result object to a result tree fragment.

public String

Returns:

empty string ""
str
()

Overrides com.sun.org.apache.xpath.internal.objects.XNodeSet.str.

Cast result object to a string.

Inherited from com.sun.org.apache.xpath.internal.objects.XNodeSet:
appendToFsbboolWithSideEffectscomparedispatchCharactersEventsgetFreshgetNumberFromNodegetStringFromNodegreaterThangreaterThanOrEqualiteriterRawlessThanlessThanOrEqualmutableNodesetnodelistnodesetnotEqualsnumWithSideEffectsobjectreleasexstr

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides com.sun.org.apache.xpath.internal.objects.XNodeSet.serialVersionUID.

Constructor Detail

XNullback to summary
public XNull()

Create an XObject.

Method Detail

boolback to summary
public boolean bool()

Overrides com.sun.org.apache.xpath.internal.objects.XNodeSet.bool.

Cast result object to a boolean.

Returns:boolean

false

equalsback to summary
public boolean equals(XObject obj2)

Overrides com.sun.org.apache.xpath.internal.objects.XNodeSet.equals.

Tell if two objects are functionally equal.

Parameters
obj2:XObject

Object to compare this to

Returns:boolean

True if the given object is of type CLASS_NULL

getTypeback to summary
public int getType()

Overrides com.sun.org.apache.xpath.internal.objects.XNodeSet.getType.

Tell what kind of class this is.

Returns:int

type CLASS_NULL

getTypeStringback to summary
public String getTypeString()

Overrides com.sun.org.apache.xpath.internal.objects.XNodeSet.getTypeString.

Given a request type, return the equivalent string. For diagnostic purposes.

Returns:String

type string "#CLASS_NULL"

numback to summary
public double num()

Overrides com.sun.org.apache.xpath.internal.objects.XNodeSet.num.

Cast result object to a number.

Returns:double

0.0

rtfback to summary
public int rtf(XPathContext support)

Overrides com.sun.org.apache.xpath.internal.objects.XObject.rtf.

Cast result object to a result tree fragment.

Parameters
support:XPathContext

XPath context to use for the conversion

Returns:int

The object as a result tree fragment.

strback to summary
public String str()

Overrides com.sun.org.apache.xpath.internal.objects.XNodeSet.str.

Cast result object to a string.

Returns:String

empty string ""