|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xpath.parser.XPathParseContext
jd.xml.xslt.parser.XsltParseContext
ParseContext holds information about the current state of a parse process, i.e.:
Constructor Summary | |
XsltParseContext()
Create a new ParseContext. |
Method Summary | |
void |
addCallTemplate(CallTemplate callTemplate,
XPathNode definingElement)
|
void |
addCDataSectionElements(String qnames,
OutputFormatTemplate oft)
|
void |
addGlobalVariable(Variable variable)
Add a toplevel Variable. |
void |
addKey(String name,
Pattern match,
Expression use)
|
void |
addNamedTemplateRule(String name,
TemplateRule templateRule)
|
VariableName |
addVariableName(String qname,
int variableType)
Register the name of a variable or parameter. |
void |
addWhitespaceTest(WhitespaceTest test)
Set the WhitespaceTest used for whitespace stripping of source documents. |
void |
beginInclude(String newBaseUri)
|
void |
checkLiteralNamespace(String prefix,
String uri)
A literal element with non null namespace uri is parsed. |
Object |
clone()
|
XsltParseException |
createException(String message)
|
XsltParseException |
createException(String message,
Exception e)
|
XsltParseException |
createException(String message,
XPathNode node)
|
XsltParseException |
createException(String message,
XPathNode node,
Exception e)
|
void |
endInclude()
|
void |
endParseTemplate()
Signal that parsing of a template rule has ended. |
void |
endParseTemplateLevel()
Signal that parsing of a template element and all of its sibling has ended. |
void |
finish(StylesheetData data)
Parsing is finished. |
AttributeSet |
getAttributeSet(String expandedName)
Return a AttributeSet. |
AttributeSetInfo |
getAttributeSetInfo(String expandedName)
Return a AttributeSetInfo for a name. |
String |
getBaseUri()
Return the base uri of the current parsed stylesheet element |
String |
getCheckedNamespaceUri(String prefix)
Return the namespace uri for the prefix. |
XPathNode |
getCurrentElement()
Return the current parsed element. |
String |
getCurrentParsedTemplateName()
Return the name of the current parsed template rule. |
TemplateRuleList |
getCurrentTemplateRules()
|
String |
getDocumentBaseUri()
Return the base uri of the current parsed stylesheet document. |
String |
getExpandedName(String qname)
Return the expanded name for a qname in respect to the current namespace. |
int |
getImportPrecedence()
Return the import precedence of the current stylesheet. |
NamespaceContext |
getNamespaceContext()
Return the current namespace context. |
String |
getNamespaceUri(String prefix)
Return the namespace uri for the prefix. |
int |
getNextTemplateRuleIndex()
|
NodeNamePool |
getNodeNamePool()
Return a NodeNamePool which is used to build optimized NodeNameTests. |
NamespaceContext |
getResultNamespaceContext()
Return the current namespace context of the result tree. |
TemplateRuleList |
getRuleList(String mode)
|
VariableName |
getVariableName(String qname)
Return the VariableName for the given name from a XPath VariableReference. |
boolean |
hasLocalVariables()
Return if the current parsed templates has local variables. |
void |
increaseImportPrecedence()
Increase the import precedence of the current stylesheet. |
void |
initXsltNamePattern(NodeNamePool pool)
Initialize the name pattern, that is used to decide if a |
boolean |
isExtensionNamespaceUri(String uri)
Return if the given namespace uri belongs to an extension names. |
boolean |
isParsingTemplate()
Return if a template is currently parsed. |
boolean |
isStylesheetNode(XPathNode node)
Test if the node is a stylesheet node, i.e. |
boolean |
processForwardsCompatible()
Return if processing is forwards compatible. |
void |
reset()
|
void |
setCurrentAttribute(XPathNode attribute)
Set the current attribute. |
void |
setCurrentElement(XPathNode element)
Set the current parsed element (either a stylesheet or a literal element). |
TemplateRuleList |
setCurrentTemplateRules(TemplateRuleList rules)
|
void |
setDefaultCurrentTemplateRules()
|
void |
setDocumentBaseUri(String baseUri)
Set the base uri of the current parsed stylesheet document. |
String |
setExcludedNamespace(String prefix)
Mark a namespace as excluded for the current element. |
void |
setExtensionNamespace(String prefix)
Mark a namespace as extension namespace for the current element. |
void |
setProcessingMode(boolean forwardsCompatible)
Set the processing mode. |
(package private) void |
setStylesheetNamePool(NodeNamePool pool)
Set the NodeNamePool of the stylesheet documents. |
void |
setVersion(String version)
Set the version and processing mode derived from the version number. |
void |
startParseTemplate(String name,
int paramCount)
Signal that parsing of a template rule has started. |
void |
startParseTemplateLevel()
Signal that parsing of a template element and all of its sibling has started. |
void |
templateParametersParsed(Variable[] parameters)
|
Methods inherited from class jd.xml.xpath.parser.XPathParseContext |
getFunctionLibrary |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jd.xml.xslt.expr.StaticExprContext |
getFunctionLibrary |
Constructor Detail |
public XsltParseContext()
Method Detail |
public boolean isStylesheetNode(XPathNode node)
public void initXsltNamePattern(NodeNamePool pool)
public String getBaseUri()
getBaseUri
in interface StaticExprContext
public void setDocumentBaseUri(String baseUri) throws XsltParseException
XsltParseException
public String getDocumentBaseUri()
public void setVersion(String version)
public void setProcessingMode(boolean forwardsCompatible)
public boolean processForwardsCompatible()
public int getImportPrecedence()
public void increaseImportPrecedence()
public AttributeSet getAttributeSet(String expandedName)
expandedName
- the expanded name of the attribute setpublic AttributeSetInfo getAttributeSetInfo(String expandedName)
expandedName
- the expanded name of the attribute setpublic void setCurrentElement(XPathNode element) throws XsltParseException
element
- the new current parsed element or null
XsltParseException
public XPathNode getCurrentElement()
public void setCurrentAttribute(XPathNode attribute)
public void addWhitespaceTest(WhitespaceTest test)
public void templateParametersParsed(Variable[] parameters)
public void addNamedTemplateRule(String name, TemplateRule templateRule) throws XsltParseException
XsltParseException
public int getNextTemplateRuleIndex()
public void startParseTemplate(String name, int paramCount)
name
- the name of the rule or nullpublic void endParseTemplate()
public void startParseTemplateLevel()
public void endParseTemplateLevel()
public boolean isParsingTemplate()
public void addCallTemplate(CallTemplate callTemplate, XPathNode definingElement)
public String getCurrentParsedTemplateName()
public TemplateRuleList getRuleList(String mode) throws XsltParseException
mode
- the expanded name of a template mode qname.
XsltParseException
public TemplateRuleList getCurrentTemplateRules()
public TemplateRuleList setCurrentTemplateRules(TemplateRuleList rules)
public void setDefaultCurrentTemplateRules()
public VariableName getVariableName(String qname) throws XsltParseException
getVariableName
in class XPathParseContext
XsltParseException
public VariableName addVariableName(String qname, int variableType) throws XsltParseException
XsltParseException
public void addGlobalVariable(Variable variable) throws XsltParseException
XsltParseException
public boolean hasLocalVariables()
public NodeNamePool getNodeNamePool()
getNodeNamePool
in class XPathParseContext
void setStylesheetNamePool(NodeNamePool pool)
public String setExcludedNamespace(String prefix) throws XsltParseException
prefix
- the prefix identifying the namespace
XsltParseException
- thrown if the prefix
is not validpublic void setExtensionNamespace(String prefix) throws XsltParseException
prefix
- the prefix identifying the namespace
XsltParseException
- thrown if the prefix
is not validpublic boolean isExtensionNamespaceUri(String uri)
public void checkLiteralNamespace(String prefix, String uri)
public NamespaceContext getNamespaceContext()
getNamespaceContext
in interface StaticExprContext
public NamespaceContext getResultNamespaceContext()
public String getExpandedName(String qname) throws XsltParseException
qname
- the qname
XsltParseException
public String getNamespaceUri(String prefix)
getNamespaceUri
in class XPathParseContext
public String getCheckedNamespaceUri(String prefix) throws XsltParseException
jd.xml.xslt.XsltParseException
- thrown if the prefix is not defined
XsltParseException
public void addKey(String name, Pattern match, Expression use)
public void addCDataSectionElements(String qnames, OutputFormatTemplate oft) throws XsltParseException
XsltParseException
public XsltParseException createException(String message)
public XsltParseException createException(String message, Exception e)
public XsltParseException createException(String message, XPathNode node)
public XsltParseException createException(String message, XPathNode node, Exception e)
public void beginInclude(String newBaseUri) throws XsltParseException
XsltParseException
public void endInclude()
public void reset()
public void finish(StylesheetData data) throws XsltParseException
XsltParseException
public Object clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |