|
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 | +--org.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.
XSLTProcessor
,
XercesLiaison
Fields inherited from class org.apache.xalan.xpath.xdom.XercesLiaison |
m_parseCountSinceGC,
m_useDOM2getNamespaceURI |
Constructor Summary | |
DTMLiaison()
Construct an instance. |
|
DTMLiaison(ErrorHandler errorHandler)
Constructor that takes SAX ErrorHandler as an argument. |
|
DTMLiaison(XPathEnvSupport envSupport)
Construct an instance. |
Method Summary | |
void |
checkNode(Node node)
Check node to see if it matches this liaison. |
XLocator |
createXLocatorHandler()
getXLocatorHandler. |
XPathFactory |
getDefaultXPathFactory()
Get a factory to create XPaths. |
Element |
getElementByID(java.lang.String id,
Document doc)
Given an ID, return the element. |
java.lang.String |
getLocalNameOfNode(Node n)
Returns the local name of the given node. |
java.lang.String |
getNamespaceOfNode(Node n)
Returns the namespace of the given node. |
int |
getNodeNumber(Node node)
|
Node |
getParentOfNode(Node n)
Get the parent of a node. |
java.lang.String |
getUnparsedEntityURI(java.lang.String name,
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(Node node)
Get an XLocator provider keyed by node. |
void |
parse(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(Node n)
|
boolean |
supportsSAX()
Returns true if the liaison supports the SAX DocumentHandler interface. |
Methods inherited from class org.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(ErrorHandler errorHandler)
errorHandler
- SAX ErrorHandler instance.public DTMLiaison(XPathEnvSupport envSupport)
public DTMLiaison()
Method Detail |
public void setShouldExpandEntityRefs(boolean b)
public void checkNode(Node node) throws SAXException
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 boolean supportsSAX()
public java.lang.String getNamespaceOfNode(Node n)
n
- The node in question.public java.lang.String getLocalNameOfNode(Node n)
n
- The node in question.public Node getParentOfNode(Node n) throws java.lang.RuntimeException
n
- The node in question.public Element getElementByID(java.lang.String id, Document doc)
public java.lang.String getUnparsedEntityURI(java.lang.String name, Document doc)
public XPathFactory getDefaultXPathFactory()
public XLocator getXLocatorFromNode(Node node)
public XLocator createXLocatorHandler()
public boolean supportsNodeNumber(Node n)
public int getNodeNumber(Node node)
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |