Interface TermDefinition

All Known Implementing Classes:
DefaultTermDefinition

public interface TermDefinition
A term definition contains everything needed to match and create new Terms implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the number of groups to be expected from the pattern of this Term.
    Retrieve the pattern to be used to match a string against this record type.
    The class implementing this Term type.
  • Method Details

    • getPattern

      Pattern getPattern()
      Retrieve the pattern to be used to match a string against this record type.
      Returns:
      the pattern for this term
    • getTermDef

      Class<?> getTermDef()
      The class implementing this Term type.
      Returns:
      the class object.
    • getMatchSize

      int getMatchSize()
      Return the number of groups to be expected from the pattern of this Term.
      Returns:
      the number of groups