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.Object
A "bag" to store regular expression extraction instructions
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
extract()
int
extract(java.util.Properties props, java.lang.String data)
Do the extractionboolean
fail()
boolean
replace()
true if the previous replace workedjava.lang.String
replace(java.lang.String data)
Do the substitutionboolean
reset()
boolean
result()
boolean
succeed()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-