public class AiNameCulturalContext extends Object
Constructor and Description |
---|
AiNameCulturalContext() |
AiNameCulturalContext(String language,
String location,
String script,
String encoding,
String style)
Initializes a new instance of the AiNameCulturalContext
|
Modifier and Type | Method and Description |
---|---|
AiNameCulturalContext |
encoding(String encoding)
Set encoding and return this.
|
boolean |
equals(Object o) |
String |
getEncoding()
A character encoding name
|
String |
getLanguage()
An ISO-639 code of the language; either 639-1 or 639-3 (e.g.
|
String |
getLocation()
A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France
|
String |
getScript()
A writing system code; starts with the ISO-15924 script name
|
String |
getStyle()
Name writing style.
|
int |
hashCode() |
AiNameCulturalContext |
language(String language)
Set language and return this.
|
AiNameCulturalContext |
location(String location)
Set location and return this.
|
AiNameCulturalContext |
script(String script)
Set script and return this.
|
void |
setEncoding(String encoding)
Set encoding.
|
void |
setLanguage(String language)
Set language.
|
void |
setLocation(String location)
Set location.
|
void |
setScript(String script)
Set script.
|
void |
setStyle(String style)
Set style.
|
AiNameCulturalContext |
style(String style)
Set style and return this.
|
String |
toString() |
public AiNameCulturalContext()
public AiNameCulturalContext(String language, String location, String script, String encoding, String style)
language
- An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)location
- A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for Francescript
- A writing system code; starts with the ISO-15924 script nameencoding
- A character encoding namestyle
- Name writing style. Enum, available values: Formal, Informal, Legal, Academicpublic AiNameCulturalContext language(String language)
language
- An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)public String getLanguage()
public void setLanguage(String language)
language
- An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)public AiNameCulturalContext location(String location)
location
- A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for Francepublic String getLocation()
public void setLocation(String location)
location
- A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for Francepublic AiNameCulturalContext script(String script)
script
- A writing system code; starts with the ISO-15924 script namepublic String getScript()
public void setScript(String script)
script
- A writing system code; starts with the ISO-15924 script namepublic AiNameCulturalContext encoding(String encoding)
encoding
- A character encoding namepublic String getEncoding()
public void setEncoding(String encoding)
encoding
- A character encoding namepublic AiNameCulturalContext style(String style)
style
- Name writing style. Enum, available values: Formal, Informal, Legal, Academicpublic String getStyle()
public void setStyle(String style)
style
- Name writing style. Enum, available values: Formal, Informal, Legal, AcademicCopyright © 2020. All rights reserved.