|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An implementation of this interface acts as a liaison between the XSLT processor and the XML parser. It is needed in order to support features like included files, and to cover for deficiencies in the DOM. An implementation of this interface is a requirement for the XSL processor. While the XPathSupport methods are intended to just support XPath, the methods in this class are intended to support XSLT.
Fields inherited from interface org.apache.xalan.xpath.XPathSupport |
DATASOURCE,
ERROR,
WARNING,
XMLPARSER,
XPATHPARSER,
XPATHPROCESSOR,
XSLTPROCESSOR |
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. |
java.lang.String |
getAcceptLanguage()
Get language variant that should be used, passed from servlet HTTP header. |
XPathFactory |
getDefaultXPathFactory()
Get a factory to create XPaths. |
Document |
getDocument()
Returns the document just parsed. |
EntityResolver |
getEntityResolver()
Get the EntityResolver for this liaison. |
java.lang.String |
getExpandedAttributeName(Attr attr)
Returns the attribute name with the namespace expanded. |
java.lang.String |
getExpandedElementName(Element elem)
Return the expanded element name. |
int |
getIndent()
Get the amount to indent when indent-result="yes". |
java.lang.String |
getParserDescription()
Return a string suitible for telling the user what parser is being used. |
ProblemListener |
getProblemListener()
Get the current problem listener. |
boolean |
getShouldExpandEntityRefs()
Get whether or not to expand all entity references in the source and style trees. |
java.lang.String |
getSpecialCharacters()
Deprecated. |
java.net.URL |
getURLFromString(java.lang.String urlString,
java.lang.String base)
Take a user string and try and parse XML, and also return the url. |
boolean |
getUseValidation()
Get whether or not validation will be performed. |
void |
reset()
Reset for new run. |
void |
setAcceptLanguage(java.lang.String acceptLanguage)
Set language variant that should be used, passed from servlet HTTP header. |
void |
setEnvSupport(XPathEnvSupport envSupport)
XPath environment support, which the liaison may aggregate back to in order to implement the XPathEnvSupport interface. |
void |
setErrorHandler(ErrorHandler errorHandler)
Allow an application to register an error event handler. |
void |
setIndent(int i)
Set the amount to indent when indent-result="yes". |
void |
setProblemListener(ProblemListener listener)
Set the current problem listener. |
void |
setShouldExpandEntityRefs(boolean b)
Set whether or not to expand all entity references in the source and style trees. |
void |
setSpecialCharacters(java.lang.String str)
Deprecated. |
void |
setUseDOM2getNamespaceURI(boolean v)
Set whether or not getNamespaceOfNode should use the Xerces/DOM2 getNamespaceURI. |
void |
setUseValidation(boolean b)
If set to true, validation will be performed. |
boolean |
supportsSAX()
Returns true if the liaison supports the SAX DocumentHandler interface. |
Methods inherited from interface org.xml.sax.Parser |
parse,
parse,
setDocumentHandler,
setDTDHandler,
setEntityResolver,
setLocale |
Methods inherited from interface org.apache.xalan.xpath.XPathEnvSupport |
associateXLocatorToNode,
deassociateXLocatorToNode,
elementAvailable,
extFunction,
findURIFromDoc,
functionAvailable,
getDOMFactory,
getNodeSetByKey,
getSourceDocsTable,
getVariable,
getXLocatorFromNode,
setDOMFactory,
shouldStripSourceNode |
Method Detail |
public void checkNode(Node node) throws SAXException
public void reset()
public EntityResolver getEntityResolver()
public void setEnvSupport(XPathEnvSupport envSupport)
public boolean supportsSAX()
public Document getDocument()
public Document createDocument()
public java.lang.String getExpandedElementName(Element elem)
public java.lang.String getExpandedAttributeName(Attr attr)
public void setSpecialCharacters(java.lang.String str)
public java.lang.String getSpecialCharacters()
public int getIndent()
public void setIndent(int i)
public boolean getShouldExpandEntityRefs()
public void setShouldExpandEntityRefs(boolean b)
public boolean getUseValidation()
public void setUseValidation(boolean b)
public java.lang.String getParserDescription()
public XPathFactory getDefaultXPathFactory()
public java.net.URL getURLFromString(java.lang.String urlString, java.lang.String base) throws SAXException
public void setAcceptLanguage(java.lang.String acceptLanguage)
public java.lang.String getAcceptLanguage()
public void setProblemListener(ProblemListener listener)
public ProblemListener getProblemListener()
public void copyFromOtherLiaison(XMLParserLiaisonDefault from) throws SAXException
public void setUseDOM2getNamespaceURI(boolean v)
public void setErrorHandler(ErrorHandler errorHandler)
If the application does not register an error event handler, all error events reported by the SAX parser will be silently ignored, except for fatalError, which will throw a SAXException (this is the default behaviour implemented by HandlerBase).
Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.
handler
- The error handler.ErrorHandler
,
SAXException
,
HandlerBase
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |