com.simonstl.fragment
Interface RegExInt
- All Known Implementing Classes:
- RegexpSplit, XercesMatch, Regex4jMatch
- public interface RegExInt
The RegExInt interface defines the interface any wrapper for regex functionality must implement.
For more information on which wrapper is chosen for a given run, see RegexProcFactory
.
- Version:
- 0.01 11 July 2001
- Author:
- Simon St.Laurent
Method Summary |
java.util.ArrayList |
divide(java.lang.String elementContent)
The divide() method does the actual work, applying the regular expression to the submitted string and returning an ArrayList of pieces. |
int |
getType()
getType() allows the application to query whether this is a matching class (0), splitting class (1), or series class (2). |
void |
setPattern(java.lang.String pattern)
setPattern() is effectively the initialization routine for the regular expression, thereby allowing the same pattern to be reused without repeated initialization. |
setPattern
public void setPattern(java.lang.String pattern)
- setPattern() is effectively the initialization routine for the regular expression, thereby allowing the same pattern to be reused without repeated initialization.
divide
public java.util.ArrayList divide(java.lang.String elementContent)
- The divide() method does the actual work, applying the regular expression to the submitted string and returning an ArrayList of pieces.
getType
public int getType()
- getType() allows the application to query whether this is a matching class (0), splitting class (1), or series class (2).