|
|||||||||
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 | +--org.apache.xalan.xpath.dtm.DTMLiaison
**For internal use only** Liaison to Document Table Model (DTM) XML parser -- the default liaison and parser that XSLTProcessor uses to perform transformations. To enhance performance, DTM uses integer arrays to represent a DOM. If you are reading or writing a DOM, use XercesLiaison.
XSLTProcessor
,
XercesLiaison
Fields inherited from class org.apache.xalan.xpath.xml.XMLParserLiaisonDefault |
m_attrSpecialChars,
m_extensionFunctionNamespaces |
Constructor Summary | |
DTMLiaison()
**For internal use only** Construct an instance. |
|
DTMLiaison(org.xml.sax.ErrorHandler errorHandler)
**For internal use only** Constructor that takes SAX ErrorHandler as an argument. |
|
DTMLiaison(XPathEnvSupport envSupport)
**For internal use only** Construct an instance. |
Method Summary | |
void |
checkNode(org.w3c.dom.Node node)
**For internal use only** Check node to see if it matches this liaison. |
XLocator |
createXLocatorHandler()
**For internal use only** getXLocatorHandler. |
XPathFactory |
getDefaultXPathFactory()
**For internal use only** Get a factory to create XPaths. |
org.w3c.dom.Element |
getElementByID(java.lang.String id,
org.w3c.dom.Document doc)
**For internal use only** Given an ID, return the element. |
java.lang.String |
getLocalNameOfNode(org.w3c.dom.Node n)
**For internal use only** Returns the local name of the given node. |
java.lang.String |
getNamespaceOfNode(org.w3c.dom.Node n)
**For internal use only** Returns the namespace of the given node. |
org.w3c.dom.Node |
getParentOfNode(org.w3c.dom.Node n)
**For internal use only** Get the parent of a node. |
java.lang.String |
getUnparsedEntityURI(java.lang.String name,
org.w3c.dom.Document doc)
**For internal use only** The getUnparsedEntityURI function returns the URI of the unparsed entity with the specified name in the same document as the context node (see [3.3 Unparsed Entities]). |
XLocator |
getXLocatorFromNode(org.w3c.dom.Node node)
**For internal use only** Get an XLocator provider keyed by node. |
void |
parse(org.xml.sax.InputSource source)
**For internal use only** Parse an XML document. |
void |
setShouldExpandEntityRefs(boolean b)
**For internal use only** Set whether or not to expand all entity references in the source and style trees. |
boolean |
supportsSAX()
**For internal use only** Returns true if the liaison supports the SAX DocumentHandler interface. |
Methods inherited from class org.apache.xalan.xpath.xdom.XercesLiaison |
createDocument,
getParserDescription,
isIgnorableWhitespace,
setUseDOM2getNamespaceURI |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DTMLiaison(org.xml.sax.ErrorHandler errorHandler)
errorHandler
- SAX ErrorHandler instance.public DTMLiaison(XPathEnvSupport envSupport)
public DTMLiaison()
Method Detail |
public void setShouldExpandEntityRefs(boolean b)
public void checkNode(org.w3c.dom.Node node) throws org.xml.sax.SAXException
public void parse(org.xml.sax.InputSource source) throws org.xml.sax.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 boolean supportsSAX()
public java.lang.String getNamespaceOfNode(org.w3c.dom.Node n)
public java.lang.String getLocalNameOfNode(org.w3c.dom.Node n)
public org.w3c.dom.Node getParentOfNode(org.w3c.dom.Node n) throws java.lang.RuntimeException
public org.w3c.dom.Element getElementByID(java.lang.String id, org.w3c.dom.Document doc)
public java.lang.String getUnparsedEntityURI(java.lang.String name, org.w3c.dom.Document doc)
public XPathFactory getDefaultXPathFactory()
public XLocator getXLocatorFromNode(org.w3c.dom.Node node)
public XLocator createXLocatorHandler()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |