|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.xpath.XPathSupportDefault | +--org.apache.xalan.xpath.xml.XMLParserLiaisonDefault | +--org.apache.xalan.xpath.xdom.XercesLiaison
Provides XSLTProcessor an interface to the Xerces XML parser. This liaison should be used if Xerces DOM nodes are being process as the source tree or as the result tree.
XSLTProcessor
,
org.apache.xml.parsers
Field Summary | |
protected int |
m_parseCountSinceGC
Count the parses since the last garbage collection. |
protected boolean |
m_useDOM2getNamespaceURI
|
Fields inherited from interface org.apache.xalan.xpath.XPathSupport |
DATASOURCE,
ERROR,
WARNING,
XMLPARSER,
XPATHPARSER,
XPATHPROCESSOR,
XSLTPROCESSOR |
Constructor Summary | |
XercesLiaison()
Construct an instance. |
|
XercesLiaison(ErrorHandler errorHandler)
Constructor that takes SAX ErrorHandler as an argument. |
|
XercesLiaison(XPathEnvSupport envSupport)
Construct an instance. |
Method Summary | |
void |
checkNode(Node node)
Check node to see if it matches this liaison. |
void |
copyFromOtherLiaison(XMLParserLiaisonDefault from)
Copy attributes from another liaison. |
Document |
createDocument()
Create an empty DOM Document. |
Element |
getElementByID(java.lang.String id,
Document doc)
Given an ID, return the element. |
java.lang.String |
getNamespaceOfNode(Node n)
Get the namespace of the node. |
Node |
getParentOfNode(Node node)
Get the parent of a node. |
java.lang.String |
getParserDescription()
Return a string suitible for telling the user what parser is being used. |
boolean |
isIgnorableWhitespace(Text node)
Deprecated. |
void |
parse(InputSource source)
Parse an XML document. |
void |
setUseDOM2getNamespaceURI(boolean b)
Set whether or not getNamespaceOfNode should use the Xerces/DOM2 getNamespaceURI. |
boolean |
supportsSAX()
Returns true that this implementation does support the SAX DocumentHandler interface. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int m_parseCountSinceGC
protected boolean m_useDOM2getNamespaceURI
Constructor Detail |
public XercesLiaison(ErrorHandler errorHandler)
errorHandler
- SAX ErrorHandler instance.public XercesLiaison(XPathEnvSupport envSupport)
public XercesLiaison()
Method Detail |
public java.lang.String getParserDescription()
public void checkNode(Node node) throws SAXException
public boolean supportsSAX()
public void parse(InputSource source) throws SAXException, java.io.IOException
The application can use this method to instruct the SAX parser to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI).
Applications may not invoke this method while a parse is in progress (they should create a new Parser instead for each additional XML document). Once a parse is complete, an application may reuse the same Parser object, possibly with a different input source.
source
- The input source for the top-level of the
XML document.InputSource
,
XMLParserLiaisonDefault.parse(java.lang.String)
,
XMLParserLiaisonDefault.setEntityResolver(org.xml.sax.EntityResolver)
,
XMLParserLiaisonDefault.setDTDHandler(org.xml.sax.DTDHandler)
,
XMLParserLiaisonDefault.setDocumentHandler(org.xml.sax.DocumentHandler)
,
XMLParserLiaisonDefault.setErrorHandler(org.xml.sax.ErrorHandler)
public void copyFromOtherLiaison(XMLParserLiaisonDefault from) throws SAXException
public Document createDocument()
public Element getElementByID(java.lang.String id, Document doc)
public boolean isIgnorableWhitespace(Text node)
public void setUseDOM2getNamespaceURI(boolean b)
public java.lang.String getNamespaceOfNode(Node n)
n
- The node in question.public Node getParentOfNode(Node node) throws java.lang.RuntimeException
n
- The node in question.
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |