public static enum WikibaseDate.ToStringFormat extends Enum<WikibaseDate.ToStringFormat>
| Enum Constant and Description |
|---|
DATE
xsd:date style (YYYY-MM-DD).
|
DATE_TIME
xsd:dateTime style (YYYY-MM-DDThh:mm:ssZ).
|
WIKIDATA
Wikidata style (+YYYYYYYYYYYY-MM-DDThh:mm:ssZ).
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
format(WikibaseDate date)
Format the date in this particular style.
|
static WikibaseDate.ToStringFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WikibaseDate.ToStringFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WikibaseDate.ToStringFormat WIKIDATA
public static final WikibaseDate.ToStringFormat DATE_TIME
public static final WikibaseDate.ToStringFormat DATE
public static WikibaseDate.ToStringFormat[] values()
for (WikibaseDate.ToStringFormat c : WikibaseDate.ToStringFormat.values()) System.out.println(c);
public static WikibaseDate.ToStringFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract String format(WikibaseDate date)
Copyright © 2015. All rights reserved.