|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.melati.poem.PoemLocale
public class PoemLocale
A wrapper for a Locale for use within Melati.
| Field Summary | |
|---|---|
static PoemLocale |
HERE
Default Locale: GB. |
| Constructor Summary | |
|---|---|
PoemLocale(Locale locale)
Constructor given a non-null Locale. |
|
| Method Summary | |
|---|---|
DateFormat |
dateFormat(int style)
|
boolean |
equals(Object o)
|
static PoemLocale |
from(Locale locale)
|
static PoemLocale |
fromLanguageTag(String tag)
Creates a melati locale from a language tag as defined in RFC3066. |
int |
hashCode()
Delegated to Locale. |
Locale |
locale()
|
String |
monthName(int monthNum)
|
String |
shortMonthName(int monthNum)
|
DateFormat |
timestampFormat(int style)
|
String |
toString()
Delegated to Locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final PoemLocale HERE
| Constructor Detail |
|---|
public PoemLocale(Locale locale)
locale - The Locale to base ours on.| Method Detail |
|---|
public static PoemLocale fromLanguageTag(String tag)
tag - A language tag, for example, "en-gb"
public static PoemLocale from(Locale locale)
public final Locale locale()
public String monthName(int monthNum)
monthNum - numeric month
public String shortMonthName(int monthNum)
monthNum - numeric month
public DateFormat dateFormat(int style)
style - as defined in DateFormat
public DateFormat timestampFormat(int style)
style - as defined in DateFormat
public int hashCode()
hashCode in class Object{@inheritDoc},
Object.hashCode()public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||