sunlabs.brazil.handler
Class RePollHandler.Extract

java.lang.Object
  extended by sunlabs.brazil.handler.RePollHandler.Extract
Enclosing class:
RePollHandler

public static class RePollHandler.Extract
extends Object

A "bag" to store regular expression extraction instructions


Method Summary
 boolean extract()
           
 int extract(Properties props, String data)
          Do the extraction
 boolean fail()
           
 boolean replace()
          true if the previous replace worked
 String replace(String data)
          Do the substitution
 boolean reset()
           
 boolean result()
           
 boolean succeed()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

replace

public String replace(String data)
Do the substitution


extract

public int extract(Properties props,
                   String data)
Do the extraction

Parameters:
props - where to put the extracted properties
data - the data to extract from
Returns:
The number of extractions performed.

replace

public boolean replace()
true if the previous replace worked


extract

public boolean extract()

result

public boolean result()

reset

public boolean reset()

fail

public boolean fail()

succeed

public boolean succeed()

toString

public String toString()
Overrides:
toString in class Object

Version Kenai-svn-r24, Generated 08/18/09
Copyright (c) 2001-2009, Sun Microsystems.