Package com.cobber.fta.plugins
Class LogicalTypeCheckDigitEAN13
- java.lang.Object
-
- com.cobber.fta.LogicalType
-
- com.cobber.fta.LogicalTypeCode
-
- com.cobber.fta.LogicalTypeInfinite
-
- com.cobber.fta.plugins.LogicalTypeCheckDigit
-
- com.cobber.fta.plugins.LogicalTypeCheckDigitEAN13
-
- All Implemented Interfaces:
LTRandom
,java.lang.Comparable<LogicalType>
public class LogicalTypeCheckDigitEAN13 extends LogicalTypeCheckDigit
Plugin to detect valid EAN-13 (UPC, ISBN-13) identifiers.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REGEXP
static java.lang.String
SEMANTIC_TYPE
-
Fields inherited from class com.cobber.fta.plugins.LogicalTypeCheckDigit
BACKOUT_REGEXP, validator
-
Fields inherited from class com.cobber.fta.LogicalTypeCode
random
-
Fields inherited from class com.cobber.fta.LogicalType
defn, headerPatterns, locale, priority, threshold
-
-
Constructor Summary
Constructors Constructor Description LogicalTypeCheckDigitEAN13(PluginDefinition plugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getQualifier()
The user-friendly name of the Qualifier.java.lang.String
getRegExp()
The Regular Expression that most closely matches (SeeLogicalType.isRegExpComplete()
) this Logical Type.java.lang.String
nextRandom()
nextRandom will generate a random (secure) valid example of this Semantic Type.-
Methods inherited from class com.cobber.fta.plugins.LogicalTypeCheckDigit
getBaseType, initialize, isCandidate, isValid, isValidSet
-
Methods inherited from class com.cobber.fta.LogicalTypeInfinite
isClosed, isRegExpComplete
-
Methods inherited from class com.cobber.fta.LogicalTypeCode
seed
-
Methods inherited from class com.cobber.fta.LogicalType
acceptsBaseType, compareTo, getConfidence, getDescription, getHeaderConfidence, getPluginDefinition, getPriority, getSignature, getThreshold, isLocaleSensitive, setThreshold
-
-
-
-
Field Detail
-
SEMANTIC_TYPE
public static final java.lang.String SEMANTIC_TYPE
- See Also:
- Constant Field Values
-
REGEXP
public static final java.lang.String REGEXP
- See Also:
- Constant Field Values
-
-
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 (SeeLogicalType.isRegExpComplete()
) this Logical Type. Note: All valid matches will match this RE, but the inverse is not necessarily true.- Overrides:
getRegExp
in classLogicalTypeCheckDigit
- 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 classLogicalType
- 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 interfaceLTRandom
- Overrides:
nextRandom
in classLogicalTypeCheckDigit
- Returns:
- a new valid example of the Semantic Type.
-
-