1 16 19 package org.apache.xpath.objects; 20 21 import org.apache.xml.dtm.DTM; 22 import org.apache.xpath.XPathContext; 23 24 29 public class XNull extends XNodeSet 30 { 31 32 35 public XNull() 36 { 37 super(); 38 } 39 40 45 public int getType() 46 { 47 return CLASS_NULL; 48 } 49 50 56 public String getTypeString() 57 { 58 return "#CLASS_NULL"; 59 } 60 61 66 67 public double num() 68 { 69 return 0.0; 70 } 71 72 77 public boolean bool() 78 { 79 return false; 80 } 81 82 87 public String str() 88 { 89 return ""; 90 } 91 92 99 public int rtf(XPathContext support) 100 { 101 return DTM.NULL; 104 } 105 106 116 123 public boolean equals(XObject obj2) 124 { 125 return obj2.getType() == CLASS_NULL; 126 } 127 } 128 | Popular Tags |