Class RegexFieldExtractor


  • @Deprecated
    public class RegexFieldExtractor
    extends Object
    Deprecated.
    Since 3.0.0, use RegexFieldValueExtractor from Norconex Commons Lang
    Simplify 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
    • Constructor Detail

      • RegexFieldExtractor

        public RegexFieldExtractor()
        Deprecated.
      • RegexFieldExtractor

        public RegexFieldExtractor​(String regex)
        Deprecated.
      • RegexFieldExtractor

        public RegexFieldExtractor​(String regex,
                                   String field)
        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.
      • isCaseSensitive

        public boolean isCaseSensitive()
        Deprecated.
      • setCaseSensitive

        public RegexFieldExtractor setCaseSensitive​(boolean caseSensitive)
        Deprecated.
      • getFieldGroup

        public int getFieldGroup()
        Deprecated.
      • getValueGroup

        public int getValueGroup()
        Deprecated.
      • getField

        public String getField()
        Deprecated.
      • equals

        public boolean equals​(Object other)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object