Package com.cobber.fta.plugins
Class CheckDigitABA
- Object
-
- LogicalType
-
- LogicalTypeCode
-
- LogicalTypeInfinite
-
- com.cobber.fta.plugins.CheckDigitLT
-
- com.cobber.fta.plugins.CheckDigitABA
-
- All Implemented Interfaces:
LTRandom
,Comparable<LogicalType>
public class CheckDigitABA extends CheckDigitLT
Plugin to detect valid ABA Number (or Routing Transit Number (RTN)).
-
-
Field Summary
-
Fields inherited from class com.cobber.fta.plugins.CheckDigitLT
BACKOUT_REGEXP, length, validator
-
Fields inherited from class com.cobber.fta.LogicalType
analysisConfig, defn, locale, localeInfo, pluginLocaleEntry, priority, threshold
-
-
Constructor Summary
Constructors Constructor Description CheckDigitABA(PluginDefinition plugin)
Construct a plugin to detect ABA numbers based on the Plugin Definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FTAType
getBaseType()
The underlying type we are qualifying.String
getRegExp()
The Regular Expression that most closely matches (SeeLogicalType.isRegExpComplete()
) this Semantic Type.String
nextRandom()
nextRandom will generate a random (secure) valid example of this Semantic Type.-
Methods inherited from class com.cobber.fta.plugins.CheckDigitLT
analyzeSet, initialize, isCandidate, isValid
-
Methods inherited from class com.cobber.fta.LogicalTypeInfinite
isClosed, isRegExpComplete
-
Methods inherited from class com.cobber.fta.LogicalTypeCode
getRandom, seed
-
Methods inherited from class com.cobber.fta.LogicalType
acceptsBaseType, compareTo, getConfidence, getDescription, getHeaderConfidence, getPluginDefinition, getPriority, getSemanticType, getSignature, getThreshold, isLocaleSensitive, isValid, setThreshold
-
-
-
-
Constructor Detail
-
CheckDigitABA
public CheckDigitABA(PluginDefinition plugin)
Construct a plugin to detect ABA numbers based on the Plugin Definition.- Parameters:
plugin
- The definition of this plugin.
-
-
Method Detail
-
getRegExp
public String getRegExp()
Description copied from class:LogicalType
The Regular Expression that most closely matches (SeeLogicalType.isRegExpComplete()
) this Semantic Type. Note: All valid matches will match this RE, but the inverse is not necessarily true.- Overrides:
getRegExp
in classCheckDigitLT
- Returns:
- The Java Regular Expression that most closely matches this Semantic Type.
-
getBaseType
public FTAType getBaseType()
Description copied from class:LogicalType
The underlying type we are qualifying.- Overrides:
getBaseType
in classCheckDigitLT
- Returns:
- The underlying type - e.g. STRING, LONG, etc.
-
nextRandom
public 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 classCheckDigitLT
- Returns:
- a new valid example of the Semantic Type.
-
-