public class DateFSM
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Machine> |
iv_machineSet |
private java.util.Set<java.lang.String> |
iv_monthFullNameSet |
private java.util.Set<java.lang.String> |
iv_monthShortNameSet |
private int |
MAX_DAY |
private int |
MAX_MONTH |
private int |
MAX_YEAR |
private int |
MIN_DAY |
private int |
MIN_MONTH |
private int |
MIN_YEAR |
Constructor and Description |
---|
DateFSM()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<DateToken> |
execute(java.util.List<? extends BaseToken> tokens)
Executes the finite state machines.
|
private Machine |
getNumericDateMachine()
Gets a finite state machine that detects the following:
10/15/2002
10/15
10-15-2002
10-15
|
private Machine |
getTextualDateMachine()
Gets a finite state machine that detects the following:
October 15, 2002
October 15 2002
October 15
October 2002
Oct 15, 2002
Oct 15 2002
Oct 15
Oct 2002
Oct.
|
private final int MIN_MONTH
private final int MAX_MONTH
private final int MIN_DAY
private final int MAX_DAY
private final int MIN_YEAR
private final int MAX_YEAR
private java.util.Set<java.lang.String> iv_monthFullNameSet
private java.util.Set<java.lang.String> iv_monthShortNameSet
private java.util.Set<Machine> iv_machineSet
private Machine getNumericDateMachine()
private Machine getTextualDateMachine()