Package com.cobber.fta
Enum TextAnalyzer.Feature
- Object
-
- Enum<TextAnalyzer.Feature>
-
- Feature
-
- All Implemented Interfaces:
java.io.Serializable
,Comparable<TextAnalyzer.Feature>
- Enclosing class:
- TextAnalyzer
public static enum TextAnalyzer.Feature extends Enum<TextAnalyzer.Feature>
Enumeration that defines all on/off features for parsers.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLLECT_STATISTICS
Feature that determines whether to collect statistics or not.DEFAULT_LOGICAL_TYPES
Feature that indicates whether to enable the built-in Logical Types.FORMAT_DETECTION
Feature that indicates whether to attempt to detect the stream format (HTML, XML, JSON, BASE64, OTHER).LENGTH_QUALIFIER
Indicate whether we should qualify the size of the RegExp.NUMERIC_WIDENING
Feature that if enabled return a double if we see a set of integers followed by some doubles call it a double.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextAnalyzer.Feature
valueOf(String name)
Returns the enum constant of this type with the specified name.static TextAnalyzer.Feature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NUMERIC_WIDENING
public static final TextAnalyzer.Feature NUMERIC_WIDENING
Feature that if enabled return a double if we see a set of integers followed by some doubles call it a double. Feature is enabled by default.
-
COLLECT_STATISTICS
public static final TextAnalyzer.Feature COLLECT_STATISTICS
Feature that determines whether to collect statistics or not. Feature is enabled by default.
-
DEFAULT_LOGICAL_TYPES
public static final TextAnalyzer.Feature DEFAULT_LOGICAL_TYPES
Feature that indicates whether to enable the built-in Logical Types. Feature is enabled by default.
-
FORMAT_DETECTION
public static final TextAnalyzer.Feature FORMAT_DETECTION
Feature that indicates whether to attempt to detect the stream format (HTML, XML, JSON, BASE64, OTHER). Feature is disabled by default.
-
LENGTH_QUALIFIER
public static final TextAnalyzer.Feature LENGTH_QUALIFIER
Indicate whether we should qualify the size of the RegExp.
-
-
Method Detail
-
values
public static TextAnalyzer.Feature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TextAnalyzer.Feature c : TextAnalyzer.Feature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextAnalyzer.Feature valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-