|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Classes that implement the QueryEngineService interface are responsible for querying nodes in XML documents or DOM trees, matching node patterns, and evaluating string expressions. DESIGN ISSUE: Should the Match pattern calls and the expression evaluation calls have their own interfaces?
Method Summary | |
com.lotus.xsl.Node |
findAncestor(java.lang.String matchPatternString,
com.lotus.xsl.Node context,
com.lotus.xsl.Element namespaceContext)
Given a match pattern and a context, find the first ancestor that matches the pattern (including the context handed in). |
com.lotus.xsl.Node |
findAncestor(java.lang.String fromMatchPattern,
java.lang.String countMatchPattern,
com.lotus.xsl.Node context,
com.lotus.xsl.Element namespaceContext)
Given a 'from' pattern (ala xsl:number), a match pattern and a context, find the first ancestor that matches the pattern (including the context handed in). |
java.lang.String |
getStringExpr(java.lang.String expression,
com.lotus.xsl.Node contextNode,
com.lotus.xsl.Element namespaceContext)
Given an expression and a context, return the results in a string. |
java.util.Vector |
getTargetElementStrings(java.lang.String expression,
com.lotus.xsl.Element namespaceContext)
Returns a vector of target element strings. |
int |
matchAgainstPatterns(java.lang.String expression,
com.lotus.xsl.Node node,
com.lotus.xsl.Element namespaceContext)
Match a node against a list of ancestryPatterns. |
com.lotus.xsl.NodeList |
query(java.lang.String expression,
com.lotus.xsl.Node contextNode,
com.lotus.xsl.Element namespaceContext)
Given a select pattern, query a DOM for elements and/or attributes. |
java.util.Vector |
query(java.lang.String expression,
java.net.URL location)
Given a select pattern, query a filesystem for documents that qualify according to the given pattern. |
Method Detail |
public com.lotus.xsl.NodeList query(java.lang.String expression, com.lotus.xsl.Node contextNode, com.lotus.xsl.Element namespaceContext) throws XSLProcessorException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException
expression
- The select expression.contextNode
- The node that "." expresses.namespaceContext
- The context in which namespaces in the
queries are supposed to be expanded.public java.util.Vector query(java.lang.String expression, java.net.URL location) throws XSLProcessorException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException
expression
- The select expression.contextNode
- The node that "." expresses.namespaceContext
- The context in which namespaces in the
queries are supposed to be expanded.public java.util.Vector getTargetElementStrings(java.lang.String expression, com.lotus.xsl.Element namespaceContext) throws XSLProcessorException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException
pattern
- Valid XSL pattern expression.namespaceContext
- The context in which namespaces in the
queries are supposed to be expanded.public int matchAgainstPatterns(java.lang.String expression, com.lotus.xsl.Node node, com.lotus.xsl.Element namespaceContext) throws XSLProcessorException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException
expression
- The select expression.node
- The node that is being tested.namespaceContext
- The context in which namespaces in the
queries are supposed to be expanded.public com.lotus.xsl.Node findAncestor(java.lang.String matchPatternString, com.lotus.xsl.Node context, com.lotus.xsl.Element namespaceContext) throws XSLProcessorException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException
matchPatternString
- The match pattern.node
- The node that "." expresses.namespaceContext
- The context in which namespaces in the
queries are supposed to be expanded.public com.lotus.xsl.Node findAncestor(java.lang.String fromMatchPattern, java.lang.String countMatchPattern, com.lotus.xsl.Node context, com.lotus.xsl.Element namespaceContext)
matchPatternString
- The match pattern.node
- The node that "." expresses.namespaceContext
- The context in which namespaces in the
queries are supposed to be expanded.public java.lang.String getStringExpr(java.lang.String expression, com.lotus.xsl.Node contextNode, com.lotus.xsl.Element namespaceContext) throws XSLProcessorException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException
expression
- The string expression.node
- The node that "." expresses.namespaceContext
- The context in which namespaces in the
queries are supposed to be expanded.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |