|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.data.Metadata
org.restlet.data.Language
public final class Language
Language used in representations and preferences. A language tag is composed of one or more parts: A primary language tag and a possibly empty series of subtags. When formatted as a string, parts are separated by hyphens.
Field Summary | |
---|---|
static Language |
ALL
All languages acceptable. |
static Language |
ENGLISH
English language. |
static Language |
ENGLISH_US
English language spoken in USA. |
static Language |
FRENCH
French language. |
static Language |
FRENCH_FRANCE
French language spoken in France. |
static Language |
SPANISH
Spanish language. |
Constructor Summary | |
---|---|
Language(java.lang.String name)
Constructor. |
|
Language(java.lang.String name,
java.lang.String description)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getPrimaryTag()
Returns the primary tag. |
java.util.List<java.lang.String> |
getSubTags()
Returns the modifiable list of subtags. |
int |
hashCode()
|
static Language |
valueOf(java.lang.String name)
Returns the language associated to a name. |
Methods inherited from class org.restlet.data.Metadata |
---|
getDescription, getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Language ALL
public static final Language ENGLISH
public static final Language ENGLISH_US
public static final Language FRENCH
public static final Language FRENCH_FRANCE
public static final Language SPANISH
Constructor Detail |
---|
public Language(java.lang.String name)
name
- The name.public Language(java.lang.String name, java.lang.String description)
name
- The name.description
- The description.Method Detail |
---|
public static Language valueOf(java.lang.String name)
name
- The name.
public boolean equals(java.lang.Object object)
equals
in class Metadata
public java.lang.String getPrimaryTag()
public java.util.List<java.lang.String> getSubTags()
public int hashCode()
hashCode
in class Metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |