sunlabs.brazil.handler

Class RePollHandler.Extract

public static class RePollHandler.Extract extends Object

A "bag" to store regular expression extraction instructions
Method Summary
intextract(Properties props, String data)
Do the extraction
booleanextract()
booleanfail()
Stringreplace(String data)
Do the substitution
booleanreplace()
true if the previous replace worked
booleanreset()
booleanresult()
booleansucceed()
StringtoString()

Method Detail

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.

extract

public boolean extract()

fail

public boolean fail()

replace

public String replace(String data)
Do the substitution

replace

public boolean replace()
true if the previous replace worked

reset

public boolean reset()

result

public boolean result()

succeed

public boolean succeed()

toString

public String toString()