net.sf.swan.xpath.pattern
Interface PatternFunction

All Superinterfaces:
org.jaxen.Function

public interface PatternFunction
extends org.jaxen.Function

A function that may be used in Patterns. A Function that implements this interface may appear as the filter expression for a location path pattern, similar to the id() and key() functions in XSLT.


Method Summary
 short getMatchNodeType()
           
 boolean test(java.lang.Object node, org.jaxen.ContextSupport support, java.util.List args)
          Test whether the specified node would be included in the node set resulting from invoking call with the same list of arguments.
 
Methods inherited from interface org.jaxen.Function
call
 

Method Detail

test

public boolean test(java.lang.Object node,
                    org.jaxen.ContextSupport support,
                    java.util.List args)
             throws org.jaxen.FunctionCallException
Test whether the specified node would be included in the node set resulting from invoking call with the same list of arguments.

getMatchNodeType

public short getMatchNodeType()