Package com.norconex.importer.util.regex
Class RegexFieldExtractor
- java.lang.Object
-
- com.norconex.importer.util.regex.RegexFieldExtractor
-
@Deprecated public class RegexFieldExtractor extends Object
Deprecated.Since 3.0.0, useRegexFieldValueExtractor
from Norconex Commons LangSimplify extraction of field names and values from any text, using regular expression match groups for the field name and value. At least one of "field" or "fieldGroup" must be specified. If fieldGroup is specified without a "field" and finds no matches, the matching of the value is ignored.- Since:
- 2.8.0
- Author:
- Pascal Essiembre
-
-
Field Summary
Fields Modifier and Type Field Description static RegexFieldExtractor[]
EMPTY_ARRAY
Deprecated.
-
Constructor Summary
Constructors Constructor Description RegexFieldExtractor()
Deprecated.RegexFieldExtractor(String regex)
Deprecated.RegexFieldExtractor(String regex, int fieldGroup, int valueGroup)
Deprecated.RegexFieldExtractor(String regex, String field)
Deprecated.RegexFieldExtractor(String regex, String field, int valueGroup)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object other)
Deprecated.void
extractFields(Properties dest, CharSequence text)
Deprecated.Properties
extractFields(CharSequence text)
Deprecated.String
getField()
Deprecated.int
getFieldGroup()
Deprecated.String
getRegex()
Deprecated.int
getValueGroup()
Deprecated.int
hashCode()
Deprecated.boolean
isCaseSensitive()
Deprecated.RegexFieldExtractor
setCaseSensitive(boolean caseSensitive)
Deprecated.RegexFieldExtractor
setField(String field)
Deprecated.RegexFieldExtractor
setFieldGroup(int fieldGroup)
Deprecated.RegexFieldExtractor
setRegex(String regex)
Deprecated.RegexFieldExtractor
setValueGroup(int valueGroup)
Deprecated.String
toString()
Deprecated.
-
-
-
Field Detail
-
EMPTY_ARRAY
public static final RegexFieldExtractor[] EMPTY_ARRAY
Deprecated.
-
-
Constructor Detail
-
RegexFieldExtractor
public RegexFieldExtractor()
Deprecated.
-
RegexFieldExtractor
public RegexFieldExtractor(String regex)
Deprecated.
-
RegexFieldExtractor
public RegexFieldExtractor(String regex, String field, int valueGroup)
Deprecated.
-
RegexFieldExtractor
public RegexFieldExtractor(String regex, int fieldGroup, int valueGroup)
Deprecated.
-
-
Method Detail
-
getRegex
public String getRegex()
Deprecated.
-
setRegex
public RegexFieldExtractor setRegex(String regex)
Deprecated.
-
isCaseSensitive
public boolean isCaseSensitive()
Deprecated.
-
setCaseSensitive
public RegexFieldExtractor setCaseSensitive(boolean caseSensitive)
Deprecated.
-
getFieldGroup
public int getFieldGroup()
Deprecated.
-
setFieldGroup
public RegexFieldExtractor setFieldGroup(int fieldGroup)
Deprecated.
-
getValueGroup
public int getValueGroup()
Deprecated.
-
setValueGroup
public RegexFieldExtractor setValueGroup(int valueGroup)
Deprecated.
-
getField
public String getField()
Deprecated.
-
setField
public RegexFieldExtractor setField(String field)
Deprecated.
-
extractFields
public void extractFields(Properties dest, CharSequence text)
Deprecated.
-
extractFields
public Properties extractFields(CharSequence text)
Deprecated.
-
-