|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.util.StringDataExtractor.RegexpPatternDirective
public static class StringDataExtractor.RegexpPatternDirective
Class that permits to specify the directives in order to extract data.
Method Summary | |
---|---|
Set<String> |
extract(String source)
Extracts the data according to the directive. |
static StringDataExtractor.RegexpPatternDirective |
regexp(Pattern pattern,
int... groupIndexesToExtract)
Gets a new instance of StringDataExtractor.RegexpPatternDirective . |
static StringDataExtractor.RegexpPatternDirective |
regexp(String pattern,
int... groupIndexesToExtract)
Gets a new instance of StringDataExtractor.RegexpPatternDirective . |
static List<StringDataExtractor.RegexpPatternDirective> |
regexps(List<Pattern> patterns,
int... groupIndexesToExtract)
Gets a new instance of StringDataExtractor.RegexpPatternDirective . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static StringDataExtractor.RegexpPatternDirective regexp(Pattern pattern, int... groupIndexesToExtract)
StringDataExtractor.RegexpPatternDirective
.
pattern
- the regexp pattern to identify the data.groupIndexesToExtract
- the group indexes to extract. If no group defined, 0 by
default.
StringDataExtractor.RegexpPatternDirective
.public static List<StringDataExtractor.RegexpPatternDirective> regexps(List<Pattern> patterns, int... groupIndexesToExtract)
StringDataExtractor.RegexpPatternDirective
.
patterns
- the regexp patterns to identify the data.groupIndexesToExtract
- the group indexes to extract. If no group defined, 0 by
default.
StringDataExtractor.RegexpPatternDirective
.public static StringDataExtractor.RegexpPatternDirective regexp(String pattern, int... groupIndexesToExtract)
StringDataExtractor.RegexpPatternDirective
.
pattern
- the regexp pattern to identify the data.groupIndexesToExtract
- the group indexes to extract. If no group defined, 0 by
default.
StringDataExtractor.RegexpPatternDirective
.public Set<String> extract(String source)
StringDataExtractor.ExtractorDirective
extract
in interface StringDataExtractor.ExtractorDirective
source
- the string source.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |