Package sunlabs.brazil.handler
Class RePollHandler.Extract
- java.lang.Object
-
- sunlabs.brazil.handler.RePollHandler.Extract
-
- Enclosing class:
- RePollHandler
public static class RePollHandler.Extract extends java.lang.ObjectA "bag" to store regular expression extraction instructions
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanextract()intextract(java.util.Properties props, java.lang.String data)Do the extractionbooleanfail()booleanreplace()true if the previous replace workedjava.lang.Stringreplace(java.lang.String data)Do the substitutionbooleanreset()booleanresult()booleansucceed()java.lang.StringtoString()
-
-
-
Method Detail
-
replace
public java.lang.String replace(java.lang.String data)
Do the substitution
-
extract
public int extract(java.util.Properties props, java.lang.String data)Do the extraction- Parameters:
props- where to put the extracted propertiesdata- 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 java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-