|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xpath.Expression | +--weblogic.apache.xpath.patterns.NodeTest | +--weblogic.apache.xpath.patterns.StepPattern | +--weblogic.apache.xpath.patterns.AncestorStepPattern
Implements a match pattern step that tests an ancestor.
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.
Fields inherited from class weblogic.apache.xpath.patterns.NodeTest |
m_whatToShow,
SCORE_NODETEST,
SCORE_NONE,
SCORE_NSWILD,
SCORE_OTHER,
SCORE_QNAME,
SHOW_BYFUNCTION,
SHOW_NAMESPACE,
SUPPORTS_PRE_STRIPPING,
WILD |
Fields inherited from class weblogic.apache.xpath.Expression |
m_slocator |
Constructor Summary | |
AncestorStepPattern(int whatToShow)
Construct an AncestorStepPattern that doesn't test for node names. |
|
AncestorStepPattern(int whatToShow,
java.lang.String namespace,
java.lang.String name)
Construct an AncestorStepPattern that tests for namespaces and node names. |
Method Summary | |
protected void |
calcScore()
Static calc of match score. |
XObject |
execute(XPathContext xctxt)
Overide the super method so that we can handle match patterns starting with a function such as id()/ |
XObject |
executeRelativePathPattern(XPathContext xctxt)
Execute the match pattern step relative to another step. |
Methods inherited from class weblogic.apache.xpath.patterns.StepPattern |
calcTargetString,
canTraverseOutsideSubtree,
executeStep,
getLastPos,
getMatchScore,
getPredicate,
getPredicateCount,
getProximityPosition,
getTargetString,
setPredicates,
setRelativePathPattern |
Methods inherited from class weblogic.apache.xpath.patterns.NodeTest |
debugWhatToShow,
execute,
getDefaultScore,
getLocalName,
getNamespace,
getWhatToShow,
initNodeTest,
initNodeTest |
Methods inherited from class weblogic.apache.xpath.Expression |
assert,
error,
setSourceLocator,
warn |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AncestorStepPattern(int whatToShow, java.lang.String namespace, java.lang.String name)
whatToShow
- Bit set defined mainly by NodeFilter
.namespace
- The namespace to be tested.name
- The local name to be tested.public AncestorStepPattern(int whatToShow)
whatToShow
- Bit set defined mainly by NodeFilter
.Method Detail |
protected final void calcScore()
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
xctxt
- XPath runtime context.NodeTest.SCORE_NODETEST
,
NodeTest.SCORE_NONE
,
NodeTest.SCORE_NSWILD
,
NodeTest.SCORE_QNAME
, or
NodeTest.SCORE_OTHER
.public XObject executeRelativePathPattern(XPathContext xctxt) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime context.NodeTest.SCORE_NODETEST
,
NodeTest.SCORE_NONE
,
NodeTest.SCORE_NSWILD
,
NodeTest.SCORE_QNAME
, or
NodeTest.SCORE_OTHER
.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |