|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.trees.patterns.AbstractPattern
org.gcube.data.trees.patterns.LeafPattern<Calendar,Constraint<? super Calendar>>
org.gcube.data.trees.patterns.CalendarPattern
public final class CalendarPattern
A Pattern that matches the value of a Leaf against a given Calendar Constraint.
| Field Summary | |
|---|---|
static DateFormat |
ISO8601formatter
Formatter for ISO8601. |
static DateFormat |
ISO8601minFormatter
Formatter for ISO8601 without time. |
static DateFormat |
ISO8601shortFormatter
Formatter for ISO8601 without time zones. |
| Fields inherited from class org.gcube.data.trees.patterns.LeafPattern |
|---|
constraint |
| Constructor Summary | |
|---|---|
CalendarPattern(Constraint<? super Calendar> c)
Creates an instance with a given constraint. |
|
| Method Summary | |
|---|---|
String |
name()
Returns the name of the pattern. |
protected Calendar |
valueOf(String s)
Returns the typed equivalent of a leaf's value. |
| Methods inherited from class org.gcube.data.trees.patterns.LeafPattern |
|---|
constraint, equals, hashCode, matches, prune, toString |
| Methods inherited from class org.gcube.data.trees.patterns.AbstractPattern |
|---|
idPattern, setIdPattern |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static DateFormat ISO8601formatter
public static DateFormat ISO8601shortFormatter
public static DateFormat ISO8601minFormatter
| Constructor Detail |
|---|
public CalendarPattern(Constraint<? super Calendar> c)
c - the constraint| Method Detail |
|---|
protected Calendar valueOf(String s)
throws Exception
valueOf in class LeafPattern<Calendar,Constraint<? super Calendar>>s - the value
Exceptionpublic String name()
LeafPattern
name in class LeafPattern<Calendar,Constraint<? super Calendar>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||