Class RegexPattern

java.lang.Object
org.opensextant.extractors.flexpat.RegexPattern
Direct Known Subclasses:
DateTimePattern, GeocoordPattern

public class RegexPattern extends Object
Author:
ubaldino
  • Field Details

    • id

      public String id
    • parser_rule

      public String parser_rule
    • regex

      public Pattern regex
    • regex_groups

      public List<String> regex_groups
    • version

      public String version
    • description

      public String description
    • enabled

      public boolean enabled
    • match_classname

      public String match_classname
      Name of a Java class that extends TextMatch and implements user's normalization routines.
    • match_class

      public Class<?> match_class
    • family

      public String family
  • Constructor Details

    • RegexPattern

      public RegexPattern(String _family, String _id, String _description)
      Metadata for a Regular Expression pattern
      Parameters:
      _family - name of family
      _id - pattern id within family
      _description - optional description of pattern
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      string representation of the pattern