BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.apache.xpath.patterns
Class FunctionPattern

java.lang.Object
  |
  +--weblogic.apache.xpath.Expression
        |
        +--weblogic.apache.xpath.patterns.NodeTest
              |
              +--weblogic.apache.xpath.patterns.StepPattern
                    |
                    +--weblogic.apache.xpath.patterns.FunctionPattern

public class FunctionPattern
extends StepPattern

Match pattern step that contains a function.

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.
See Also:
Serialized Form

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
FunctionPattern(Expression expr)
          Construct a FunctionPattern from a expression.
 
Method Summary
protected  void calcScore()
          Static calc of match score.
 XObject execute(XPathContext xctxt)
          Test a node to see if it matches the given node test.
 
Methods inherited from class weblogic.apache.xpath.patterns.StepPattern
calcTargetString, canTraverseOutsideSubtree, executeRelativePathPattern, 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

FunctionPattern

public FunctionPattern(Expression expr)
Construct a FunctionPattern from a expression.

Parameters:
a - should be a expression.
Method Detail

calcScore

protected final void calcScore()
Static calc of match score.

Overrides:
calcScore in class StepPattern

execute

public XObject execute(XPathContext xctxt)
                throws javax.xml.transform.TransformerException
Test a node to see if it matches the given node test.

Parameters:
xctxt - XPath runtime context.
Returns:
NodeTest.SCORE_NODETEST, NodeTest.SCORE_NONE, NodeTest.SCORE_NSWILD, NodeTest.SCORE_QNAME, or NodeTest.SCORE_OTHER.
Throws:
javax.xml.transform.TransformerException -  
Overrides:
execute in class StepPattern

Documentation is available at
http://e-docs.bea.com/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.