Package com.intuit.fuzzymatcher.domain
Enum ElementType
- java.lang.Object
-
- java.lang.Enum<ElementType>
-
- com.intuit.fuzzymatcher.domain.ElementType
-
- All Implemented Interfaces:
Serializable,Comparable<ElementType>
public enum ElementType extends Enum<ElementType>
Enum to define different types of Element. This is used only to categorize the data, and apply functions at different stages of match. The functions, can be overridden from Element class using the appropriate setters at the time of creation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MatchTypegetMatchType()protected java.util.function.FunctiongetPreProcessFunction()protected java.util.function.FunctiongetTokenizerFunction()static ElementTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ElementType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NAME
public static final ElementType NAME
-
TEXT
public static final ElementType TEXT
-
ADDRESS
public static final ElementType ADDRESS
-
EMAIL
public static final ElementType EMAIL
-
PHONE
public static final ElementType PHONE
-
NUMBER
public static final ElementType NUMBER
-
DATE
public static final ElementType DATE
-
AGE
public static final ElementType AGE
-
-
Method Detail
-
values
public static ElementType[] 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 (ElementType c : ElementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ElementType 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
-
getPreProcessFunction
protected java.util.function.Function getPreProcessFunction()
-
getTokenizerFunction
protected java.util.function.Function getTokenizerFunction()
-
getMatchType
protected MatchType getMatchType()
-
-