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 Logical Types implemented via Java code typically extend this class.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.security.SecureRandom
random
-
Fields inherited from class com.cobber.fta.LogicalType
defn, locale, pluginLocaleEntry, priority, threshold
-
-
Constructor Summary
Constructors Constructor Description LogicalTypeCode(PluginDefinition plugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
initialize(Locale locale)
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, getQualifier, getRegExp, getSignature, getThreshold, isClosed, isLocaleSensitive, isRegExpComplete, 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
-
initialize
public boolean initialize(Locale locale) throws FTAPluginException
Description copied from class:LogicalType
Called to perform any initialization.- Overrides:
initialize
in classLogicalType
- Parameters:
locale
- The locale 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.
-
-