Package com.cobber.fta
Class LogicalTypeCode
- Object
-
- LogicalType
-
- LogicalTypeCode
-
- All Implemented Interfaces:
LTRandom
,Comparable<LogicalType>
- Direct Known Subclasses:
LogicalTypeFinite
,LogicalTypeInfinite
public abstract class LogicalTypeCode extends LogicalType
All Semantic Types implemented via Java code typically extend this class.
-
-
Field Summary
-
Fields inherited from class com.cobber.fta.LogicalType
analysisConfig, defn, locale, localeInfo, pluginLocaleEntry, priority, threshold
-
-
Constructor Summary
Constructors Constructor Description LogicalTypeCode(PluginDefinition plugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.security.SecureRandom
getRandom()
boolean
initialize(AnalysisConfig analysisConfig)
Called to perform any initialization.void
seed(byte[] seed)
Seed the secure random number generator used to create examples.-
Methods inherited from class com.cobber.fta.LogicalType
acceptsBaseType, analyzeSet, compareTo, getBaseType, getConfidence, getDescription, getHeaderConfidence, getPluginDefinition, getPriority, getRegExp, getSemanticType, getSignature, getThreshold, isClosed, isLocaleSensitive, isRegExpComplete, isValid, isValid, setThreshold
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.cobber.fta.LTRandom
nextRandom
-
-
-
-
Constructor Detail
-
LogicalTypeCode
public LogicalTypeCode(PluginDefinition plugin)
-
-
Method Detail
-
getRandom
protected java.security.SecureRandom getRandom()
-
initialize
public boolean initialize(AnalysisConfig analysisConfig) throws FTAPluginException
Description copied from class:LogicalType
Called to perform any initialization.- Overrides:
initialize
in classLogicalType
- Parameters:
analysisConfig
- The Analysis configuration used for this analysis- Returns:
- True if initialization was successful.
- Throws:
FTAPluginException
- Thrown when the plugin is incorrectly configured.
-
seed
public void seed(byte[] seed)
Description copied from interface:LTRandom
Seed the secure random number generator used to create examples.- Parameters:
seed
- The Byte array used to seed the random number geerator.
-
-