FileDocCategorySizeDatePackage
XNull.javaAPI DocJava SE 6 API2632Tue Jun 10 00:23:16 BST 2008com.sun.org.apache.xpath.internal.objects

XNull

public class XNull extends XNodeSet
This class represents an XPath null object, and is capable of converting the null to other types, such as a string.
xsl.usage
general

Fields Summary
static final long
serialVersionUID
Constructors Summary
public XNull()
Create an XObject.


        
   
  
    super();
  
Methods Summary
public booleanbool()
Cast result object to a boolean.

return
false

    return false;
  
public booleanequals(com.sun.org.apache.xpath.internal.objects.XObject obj2)
Tell if two objects are functionally equal.

param
obj2 Object to compare this to
return
True if the given object is of type CLASS_NULL

    return obj2.getType() == CLASS_NULL;
  
public intgetType()
Tell what kind of class this is.

return
type CLASS_NULL

    return CLASS_NULL;
  
public java.lang.StringgetTypeString()
Given a request type, return the equivalent string. For diagnostic purposes.

return
type string "#CLASS_NULL"

    return "#CLASS_NULL";
  
public doublenum()
Cast result object to a number.

return
0.0

    return 0.0;
  
public intrtf(com.sun.org.apache.xpath.internal.XPathContext support)
Cast result object to a result tree fragment.

param
support XPath context to use for the conversion
return
The object as a result tree fragment.

    // DTM frag = support.createDocumentFragment();
    // %REVIEW%
    return DTM.NULL;
  
public java.lang.Stringstr()
Cast result object to a string.

return
empty string ""

    return "";