Package com.cobber.fta.plugins
Class LongitudeDMS
- Object
-
- LogicalType
-
- LogicalTypeCode
-
- LogicalTypeInfinite
-
- com.cobber.fta.plugins.CoordinateDMS
-
- com.cobber.fta.plugins.LongitudeDMS
-
- All Implemented Interfaces:
LTRandom
,Comparable<LogicalType>
public class LongitudeDMS extends CoordinateDMS
Plugin to detect a Longitude as Degrees, minutes, and seconds.
-
-
Field Summary
Fields Modifier and Type Field Description static String
SEMANTIC_TYPE
The Semantic type for this Plugin.-
Fields inherited from class com.cobber.fta.LogicalTypeCode
random
-
Fields inherited from class com.cobber.fta.LogicalType
defn, locale, pluginLocaleEntry, priority, threshold
-
-
Constructor Summary
Constructors Constructor Description LongitudeDMS(PluginDefinition plugin)
Construct a Longitude plugin 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.protected char[]
getDirectionChars()
protected int
getMaxDegrees()
String
getQualifier()
The user-friendly name of the Qualifier.String
getRegExp()
The Regular Expression that most closely matches (SeeLogicalType.isRegExpComplete()
) this Logical Type.-
Methods inherited from class com.cobber.fta.plugins.CoordinateDMS
analyzeSet, initialize, isCandidate, isRegExpComplete, isValid, nextRandom
-
Methods inherited from class com.cobber.fta.LogicalTypeInfinite
isClosed
-
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 String SEMANTIC_TYPE
The Semantic type for this Plugin.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LongitudeDMS
public LongitudeDMS(PluginDefinition plugin)
Construct a Longitude plugin based on the Plugin Definition.- Parameters:
plugin
- The definition of this plugin.
-
-
Method Detail
-
getDirectionChars
protected char[] getDirectionChars()
- Specified by:
getDirectionChars
in classCoordinateDMS
-
getMaxDegrees
protected int getMaxDegrees()
- Specified by:
getMaxDegrees
in classCoordinateDMS
-
getQualifier
public 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.
-
getBaseType
public FTAType getBaseType()
Description copied from class:LogicalType
The underlying type we are qualifying.- Overrides:
getBaseType
in classCoordinateDMS
- Returns:
- The underlying type - e.g. STRING, LONG, etc.
-
getRegExp
public 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.- Specified by:
getRegExp
in classLogicalType
- Returns:
- The Java Regular Expression that most closely matches this Logical Type.
-
-