1 package net.sf.saxon.om; 2 3 import net.sf.saxon.Configuration; 4 import net.sf.saxon.event.Receiver; 5 import net.sf.saxon.event.PipelineConfiguration; 6 import net.sf.saxon.expr.XPathContext; 7 import net.sf.saxon.trans.XPathException; 8 import net.sf.saxon.value.Value; 9 import net.sf.saxon.value.SequenceExtent; 10 11 import javax.xml.transform.Result ; 12 import javax.xml.transform.Source ; 13 14 23 24 public interface ExternalObjectModel { 25 26 32 33 public boolean isRecognizedNode(Object object); 34 35 41 42 public boolean isRecognizedNodeClass(Class nodeClass); 43 44 50 51 public boolean isRecognizedNodeListClass(Class nodeClass); 52 53 58 59 public Receiver getDocumentBuilder(Result result) throws XPathException; 60 61 66 67 public boolean sendSource(Source source, Receiver receiver, PipelineConfiguration pipe) throws XPathException; 68 69 73 74 public NodeInfo unravel(Source source, Configuration config); 75 76 82 83 public Value convertObjectToXPathValue(Object object, Configuration config) throws XPathException; 84 85 94 95 public Object convertXPathValueToObject(Value value, Class targetClass, XPathContext context) throws XPathException; 96 97 105 106 public DocumentInfo wrapDocument(Object node, String baseURI, Configuration config); 107 108 116 117 public NodeInfo wrapNode(DocumentInfo document, Object node); 118 119 126 127 public Object convertToNodeList(SequenceExtent extent); 128 } 129 130 131 | Popular Tags |