public class RegexExtractorTransformer extends Object implements FunctionTransformer
| Constructor and Description |
|---|
RegexExtractorTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
extract(Matcher matcher) |
Integer |
getGroupIndex()
If specified its the index in
Matcher.group(int) |
Pattern |
getRegex()
RegEx matching
Pattern to extract |
boolean |
isAcceptNulls()
If true then; a non matching sequence can return null else it will throw an
IllegalArgumentException |
void |
setAcceptNulls(boolean acceptNulls)
If true then; a non matching sequence can return null else it will throw an
IllegalArgumentException |
void |
setGroupIndex(Integer groupIndex)
If specified its the index in
Matcher.group(int) |
void |
setRegex(Pattern regex)
RegEx matching
Pattern to extract |
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic boolean isAcceptNulls()
IllegalArgumentExceptionpublic void setAcceptNulls(boolean acceptNulls)
IllegalArgumentExceptionpublic Object transform(Object input)
transform in interface org.apache.commons.collections.Transformerpublic Integer getGroupIndex()
Matcher.group(int)public void setGroupIndex(Integer groupIndex)
Matcher.group(int)Copyright © 2018. All rights reserved.