|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.util.DatePattern
public class DatePattern
handle user defined simple date/time patterns (such as yyyymm hh:nn)
| Nested Class Summary | |
|---|---|
class |
DatePattern.DmyPattern
|
| Constructor Summary | |
|---|---|
DatePattern(String dmtpat)
Constructor: creates a regular expression to extract a date based on a template. |
|
| Method Summary | |
|---|---|
int |
get(char field)
Retrieve the value of the field. |
DateTime |
getDateTime()
|
String |
getRegex()
Get the regular expression that is generated from the template |
List<Character> |
getValidFields()
Return the fields for which the template matched the search string. |
static void |
main(String[] args)
|
boolean |
match(String search)
Match a search string against the compile pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatePattern(String dmtpat)
dmtpat - the user defined date/time pattern| Method Detail |
|---|
public List<Character> getValidFields()
public int get(char field)
field - the field to retrieve the value for
public boolean match(String search)
search - the search string
public String getRegex()
public DateTime getDateTime()
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||