|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xalan.xpath.XPathSupportDefault | +--weblogic.apache.xalan.xpath.xml.XMLParserLiaisonDefault | +--weblogic.apache.xalan.xpath.xdom.XercesLiaison | +--weblogic.apache.xalan.xpath.dtm.DTMLiaison
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.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
XSLTProcessor
,
XercesLiaison
Fields inherited from class weblogic.apache.xalan.xpath.xdom.XercesLiaison |
m_parseCountSinceGC,
m_useDOM2getNamespaceURI |
Constructor Summary | |
DTMLiaison()
Construct an instance. |
|
DTMLiaison(org.xml.sax.ErrorHandler errorHandler)
Constructor that takes SAX ErrorHandler as an argument. |
|
DTMLiaison(XPathEnvSupport envSupport)
Construct an instance. |
Method Summary | |
void |
checkNode(org.w3c.dom.Node node)
Check node to see if it matches this liaison. |
XLocator |
createXLocatorHandler()
getXLocatorHandler. |
XPathFactory |
getDefaultXPathFactory()
Get a factory to create XPaths. |
org.w3c.dom.Element |
getElementByID(java.lang.String id,
org.w3c.dom.Document doc)
Given an ID, return the element. |
java.lang.String |
getLocalNameOfNode(org.w3c.dom.Node n)
Returns the local name of the given node. |
java.lang.String |
getNamespaceOfNode(org.w3c.dom.Node n)
Returns the namespace of the given node. |
int |
getNodeNumber(org.w3c.dom.Node node)
|
org.w3c.dom.Node |
getParentOfNode(org.w3c.dom.Node n)
Get the parent of a node. |
java.lang.String |
getUnparsedEntityURI(java.lang.String name,
org.w3c.dom.Document doc)
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)
Get an XLocator provider keyed by node. |
void |
parse(org.xml.sax.InputSource source)
Parse an XML document. |
void |
setShouldExpandEntityRefs(boolean b)
Set whether or not to expand all entity references in the source and style trees. |
boolean |
supportsNodeNumber(org.w3c.dom.Node n)
|
boolean |
supportsSAX()
Returns true if the liaison supports the SAX DocumentHandler interface. |
Methods inherited from class weblogic.apache.xalan.xpath.xdom.XercesLiaison |
copyFromOtherLiaison,
createDocument,
getParserDescription,
isIgnorableWhitespace,
setUseDOM2getNamespaceURI |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
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()
public boolean supportsNodeNumber(org.w3c.dom.Node n)
public int getNodeNumber(org.w3c.dom.Node node)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |