Class LogicalTypeCheckDigitEAN13

  • All Implemented Interfaces:
    LTRandom, java.lang.Comparable<LogicalType>

    public class LogicalTypeCheckDigitEAN13
    extends LogicalTypeCheckDigit
    Plugin to detect valid EAN-13 (UPC, ISBN-13) identifiers.
    • Constructor Detail

      • LogicalTypeCheckDigitEAN13

        public LogicalTypeCheckDigitEAN13​(PluginDefinition plugin)
    • Method Detail

      • getRegExp

        public java.lang.String getRegExp()
        Description copied from class: LogicalType
        The Regular Expression that most closely matches (See LogicalType.isRegExpComplete()) this Logical Type. Note: All valid matches will match this RE, but the inverse is not necessarily true.
        Overrides:
        getRegExp in class LogicalTypeCheckDigit
        Returns:
        The Java Regular Expression that most closely matches this Logical Type.
      • getQualifier

        public java.lang.String getQualifier()
        Description copied from class: LogicalType
        The user-friendly name of the Qualifier. For example, EMAIL for an email address
        Specified by:
        getQualifier in class LogicalType
        Returns:
        The user-friendly name of the type-qualifier.
      • nextRandom

        public java.lang.String nextRandom()
        Description copied from interface: LTRandom
        nextRandom will generate a random (secure) valid example of this Semantic Type.
        Specified by:
        nextRandom in interface LTRandom
        Overrides:
        nextRandom in class LogicalTypeCheckDigit
        Returns:
        a new valid example of the Semantic Type.