1 22 23 package org.xquark.xml.xdbc; 24 25 import java.io.Writer ; 26 import java.util.Map ; 27 28 import org.w3c.dom.Document ; 29 import org.w3c.dom.Element ; 30 import org.w3c.dom.Node ; 31 import org.xml.sax.ContentHandler ; 32 import org.xml.sax.ErrorHandler ; 33 import org.xml.sax.ext.LexicalHandler ; 34 import org.xquark.schema.validation.PSVInfoSetProvider; 35 36 41 public interface XMLResultSet 42 { 43 44 45 46 47 52 public void setContentHandler(ContentHandler handler); 53 54 59 public void setLexicalHandler(LexicalHandler handler); 60 61 66 public void setErrorHandler(ErrorHandler handler); 67 68 72 public ContentHandler getContentHandler(); 73 74 78 public LexicalHandler getLexicalHandler(); 79 80 84 public ErrorHandler getErrorHandler(); 85 86 87 88 89 90 95 public XMLStatement getStatement() throws XMLDBCException; 96 97 104 public XMLDocument getMetaData() throws XMLDBCException; 105 106 112 public Map getPrefixMap() throws XMLDBCException; 113 114 123 public void close() throws XMLDBCException; 124 125 130 public boolean isBeforeFirst() throws XMLDBCException; 131 132 141 public Document nextAsDocument() throws XMLDBCException; 142 143 153 public Node nextAsDOM() throws XMLDBCException; 154 155 162 public void nextAsDOM(Element parent) throws XMLDBCException; 163 164 172 public String nextAsString() throws XMLDBCException; 173 174 183 public void nextAsStream(Writer out) throws XMLDBCException; 184 185 195 public void nextAsSAX() throws XMLDBCException, org.xml.sax.SAXException ; 196 197 202 public boolean hasNext() throws XMLDBCException; 203 204 209 public int getPosition() throws XMLDBCException; 210 211 223 public XMLDocument getFragmentsAsDocument(String namespace, String localName, String qName) 224 throws XMLDBCException; 225 226 230 public boolean hasRootTag(); 231 232 236 public boolean isDocument(); 237 238 242 public PSVInfoSetProvider getPSVInfoSetProvider(); 243 244 } 245 | Popular Tags |