1 package org.exoplatform.services.xml.querying; 2 3 import org.exoplatform.services.xml.querying.object.MarshallerCreateException; 4 import org.exoplatform.services.xml.querying.object.ObjectMappingException; 5 import org.exoplatform.services.xml.querying.object.ObjectMarshalException; 6 import org.w3c.dom.Node ; 7 import org.xml.sax.InputSource ; 8 import org.xml.sax.ContentHandler ; 9 import org.xml.sax.SAXException ; 10 import javax.xml.transform.TransformerException ; 11 import javax.xml.transform.Source ; 12 import javax.xml.transform.Result ; 13 14 public interface XMLWellFormedData extends XMLData { 15 18 void setDTDPublicId(String DTDPublicId); 19 20 23 void setDTDSystemId(String DTDSystemId); 24 25 28 byte[] getAsByteArray(); 29 30 33 Node getAsDOM(); 34 35 38 void setIndentOutput(boolean indentOutput); 39 40 43 void setOmitXmlDeclaration(boolean omitXmlDeclaration); 44 45 48 void setValidate(boolean validate); 49 50 53 void init(Object mapping, Object obj) throws ObjectMarshalException, MarshallerCreateException, ObjectMappingException; 54 55 59 void init(Object obj) throws ObjectMarshalException, MarshallerCreateException, ObjectMappingException; 60 61 64 void init(Node node) throws UniFormTransformationException; 65 66 69 void init(InputSource src) throws UniFormTransformationException; 70 71 76 void initRoot(String nodeName) throws UniFormTransformationException; 77 78 81 void processAsSAX(ContentHandler handler) throws SAXException ; 82 83 86 void transformWithXSL(Result result, Source xslTemplate) throws TransformerException ; 87 } 88 | Popular Tags |