1 22 23 package org.xquark.xml.xdbc; 24 25 import java.io.Writer ; 26 27 import org.w3c.dom.Document ; 28 import org.w3c.dom.Element ; 29 import org.xml.sax.ContentHandler ; 30 import org.xml.sax.ErrorHandler ; 31 import org.xml.sax.ext.LexicalHandler ; 32 33 39 public interface XMLDocument 40 { 41 42 43 44 49 public String getIdentifier(); 50 51 60 public void setIdentifier(String identifier) throws XMLDBCException, XMLDBCNotSupportedException; 61 62 67 public XMLCollection getCollection(); 68 69 77 public void remove() throws XMLDBCException, XMLDBCNotSupportedException; 78 79 85 public void setContentHandler(ContentHandler handler); 86 87 93 public void setLexicalHandler(LexicalHandler handler); 94 95 101 public void setErrorHandler(ErrorHandler handler); 102 103 108 public ContentHandler getContentHandler(); 109 110 115 public LexicalHandler getLexicalHandler(); 116 117 122 public ErrorHandler getErrorHandler(); 123 124 129 public Document getAsDocument() throws XMLDBCException; 130 131 137 public Document getAsDOM() throws XMLDBCException; 138 139 144 public void getAsDOM(Element parent) throws XMLDBCException; 145 146 151 public String getAsString() throws XMLDBCException; 152 153 159 public void getAsStream(Writer out) throws XMLDBCException; 160 161 169 public void getAsSAX() throws XMLDBCException, org.xml.sax.SAXException ; 170 } 171 | Popular Tags |