Modifier and Type | Field and Description |
---|---|
static Language |
Language.ALL
All languages acceptable.
|
static Language |
Language.DEFAULT
The default language of the JVM.
|
static Language |
Language.ENGLISH
English language.
|
static Language |
Language.ENGLISH_US
English language spoken in USA.
|
static Language |
Language.FRENCH
French language.
|
static Language |
Language.FRENCH_FRANCE
French language spoken in France.
|
static Language |
Language.SPANISH
Spanish language.
|
Modifier and Type | Method and Description |
---|---|
Language |
Language.getParent() |
Language |
ClientInfo.getPreferredLanguage(List<Language> supported)
Returns the preferred language among a list of supported ones, based on
the client preferences.
|
static Language |
Language.valueOf(String name)
Returns the language associated to a name.
|
Modifier and Type | Method and Description |
---|---|
List<Preference<Language>> |
ClientInfo.getAcceptedLanguages()
Returns the modifiable list of language preferences.
|
Modifier and Type | Method and Description |
---|---|
Language |
ClientInfo.getPreferredLanguage(List<Language> supported)
Returns the preferred language among a list of supported ones, based on
the client preferences.
|
void |
ClientInfo.setAcceptedLanguages(List<Preference<Language>> acceptedLanguages)
Sets the language preferences.
|
Modifier and Type | Method and Description |
---|---|
Language |
MetadataExtension.getLanguage()
Returns the language.
|
Modifier and Type | Method and Description |
---|---|
protected List<Preference<Language>> |
FlexibleConneg.getLanguagePrefs()
Returns the enriched list of language preferences.
|
protected List<Preference<Language>> |
StrictConneg.getLanguagePrefs()
Returns the enriched list of language preferences.
|
Modifier and Type | Method and Description |
---|---|
float |
StrictConneg.scoreLanguages(List<Language> languages)
Scores languages relatively to enriched client preferences.
|
Modifier and Type | Method and Description |
---|---|
Language |
LanguageReader.readValue() |
Modifier and Type | Method and Description |
---|---|
static String |
LanguageWriter.write(List<Language> languages)
Writes a list of languages.
|
Modifier and Type | Method and Description |
---|---|
Language |
Link.getHrefLang()
Returns the language of the resource pointed to by the href attribute.
|
Modifier and Type | Method and Description |
---|---|
void |
Link.setHrefLang(Language hrefLang)
Sets the language of the resource pointed to by the href attribute.
|
Modifier and Type | Method and Description |
---|---|
Language |
Literal.getLanguage()
Returns the optional language.
|
Modifier and Type | Method and Description |
---|---|
void |
Literal.setLanguage(Language language)
Sets the language.
|
Constructor and Description |
---|
Literal(String value,
Reference datatypeRef,
Language language)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Language |
DocumentationInfo.getLanguage()
Returns the language of that documentation element.
|
Modifier and Type | Method and Description |
---|---|
void |
DocumentationInfo.setLanguage(Language language)
The language of that documentation element.
|
Modifier and Type | Method and Description |
---|---|
List<Language> |
Transformer.getResultLanguages()
Returns the modifiable list of languages of the result representation.
|
Modifier and Type | Method and Description |
---|---|
void |
Transformer.setResultLanguages(List<Language> resultLanguages)
Sets the languages of the result representation.
|
Modifier and Type | Method and Description |
---|---|
List<Language> |
Variant.getLanguages()
Returns the modifiable list of languages.
|
Modifier and Type | Method and Description |
---|---|
void |
Variant.setLanguages(List<Language> languages)
Sets the list of languages.
Note that when used with HTTP connectors, this property maps to the "Content-Language" header. |
Constructor and Description |
---|
AppendableRepresentation(CharSequence text,
Language language)
Constructor.
|
AppendableRepresentation(CharSequence text,
MediaType mediaType,
Language language)
Constructor.
|
AppendableRepresentation(CharSequence text,
MediaType mediaType,
Language language,
CharacterSet characterSet)
Constructor.
|
StringRepresentation(CharSequence text,
Language language)
Constructor.
|
StringRepresentation(CharSequence text,
MediaType mediaType,
Language language)
Constructor.
|
StringRepresentation(CharSequence text,
MediaType mediaType,
Language language,
CharacterSet characterSet)
Constructor.
|
Variant(MediaType mediaType,
Language language)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Language |
MetadataService.getDefaultLanguage()
Returns the default language for representations.
|
Language |
MetadataService.getLanguage(String extension)
Returns the language associated to this extension.
|
Modifier and Type | Method and Description |
---|---|
List<Language> |
MetadataService.getAllLanguages(String extension)
Returns all the languages associated to this extension.
|
Modifier and Type | Method and Description |
---|---|
void |
MetadataService.setDefaultLanguage(Language defaultLanguage)
Sets the default language for local representations.
|
Modifier and Type | Method and Description |
---|---|
List<Language> |
WrapperRepresentation.getLanguages() |
Modifier and Type | Method and Description |
---|---|
void |
WrapperRepresentation.setLanguages(List<Language> languages) |
Copyright © 2005–2016. All rights reserved.