public static enum DateDetection.ShortStyle extends java.lang.Enum<DateDetection.ShortStyle> implements DateDetection.StyleParser
Enum Constant and Description |
---|
DM_FRENCH |
DM_GERMAN |
DM_ITALIAN |
DM_SPANISH |
MD_ENGLISH |
Modifier and Type | Field and Description |
---|---|
private DateDetection.EntityType |
firstEntity |
DateDetection.LanguageRecognition |
languageParser |
java.util.regex.Pattern |
pattern |
private DateDetection.EntityType |
secondEntity |
Modifier and Type | Method and Description |
---|---|
java.util.LinkedHashSet<java.util.Date> |
parse(java.lang.String text)
get all dates in the text
|
static DateDetection.ShortStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateDetection.ShortStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateDetection.ShortStyle MD_ENGLISH
public static final DateDetection.ShortStyle DM_GERMAN
public static final DateDetection.ShortStyle DM_FRENCH
public static final DateDetection.ShortStyle DM_ITALIAN
public static final DateDetection.ShortStyle DM_SPANISH
public final java.util.regex.Pattern pattern
private final DateDetection.EntityType firstEntity
private final DateDetection.EntityType secondEntity
public final DateDetection.LanguageRecognition languageParser
public static DateDetection.ShortStyle[] values()
for (DateDetection.ShortStyle c : DateDetection.ShortStyle.values()) System.out.println(c);
public static DateDetection.ShortStyle valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.util.LinkedHashSet<java.util.Date> parse(java.lang.String text)
parse
in interface DateDetection.StyleParser
text
-