net.sf.swan.xpath.pattern
Class Match

java.lang.Object
  |
  +--net.sf.swan.xpath.pattern.Match
Direct Known Subclasses:
MatchContext

public class Match
extends java.lang.Object


Constructor Summary
  Match()
           
protected Match(org.jaxen.ContextSupport support)
           
 
Method Summary
 java.lang.Object getObject()
          Retrieve the object associated with the current match.
 double getPriority()
           
 boolean next()
          Progress to the next match.
 void replaceObject(java.lang.Object newObj)
          Replace the object associated with the current match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Match

public Match()

Match

protected Match(org.jaxen.ContextSupport support)
Method Detail

getObject

public java.lang.Object getObject()
Retrieve the object associated with the current match.
Throws:
java.util.NoSuchElementException - if there is no current match

replaceObject

public void replaceObject(java.lang.Object newObj)
Replace the object associated with the current match.
Throws:
java.util.NoSuchElementException - if there is no current match

getPriority

public double getPriority()

next

public boolean next()
             throws org.jaxen.JaxenException
Progress to the next match.
Returns:
false if there is no next match, otherwise true
Throws:
org.jaxen.JaxenException - if an error occurs while evaluating an expression