1 package org.xmldb.common.xml.queries; 2 54 import org.w3c.dom.DocumentFragment ; 55 import org.w3c.dom.NodeList ; 56 57 import java.io.Serializable ; 58 59 60 64 public interface XObject extends Serializable { 65 66 70 71 public final static int CLASS_NULL = -1; 72 73 74 public final static int CLASS_UNKNOWN = 0; 75 76 77 public final static int CLASS_BOOLEAN = 1; 78 79 80 public final static int CLASS_NUMBER = 2; 81 82 83 public final static int CLASS_STRING = 3; 84 85 86 public final static int CLASS_NODESET = 4; 87 88 89 public final static int CLASS_RTREEFRAG = 5; 90 91 92 94 public int getType() throws Exception ; 95 96 97 102 public boolean bool() throws Exception ; 103 104 105 110 public double num() throws Exception ; 111 112 113 117 public String str() throws Exception ; 118 119 120 125 public NodeList nodeset() throws Exception ; 126 127 128 132 public DocumentFragment rtree() throws Exception ; 133 134 } 135 | Popular Tags |