public class AiNameFormatRequest extends Object
Constructor and Description |
---|
AiNameFormatRequest()
Initializes a new instance of the AiNameFormatRequest class.
|
AiNameFormatRequest(String name,
String language,
String location,
String encoding,
String script,
String format,
String style)
Initializes a new instance of the AiNameFormatRequest class.
|
Modifier and Type | Method and Description |
---|---|
AiNameFormatRequest |
encoding(String value)
Setter for: A character encoding name.
|
AiNameFormatRequest |
format(String value)
Setter for: Format of the name.
|
String |
getEncoding()
Getter for: A character encoding name.
|
String |
getFormat()
Getter for: Format of the name.
|
String |
getLanguage()
Getter for: An ISO-639 code of the language; either 639-1 or 639-3 (e.g.
|
String |
getLocation()
Getter for: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France.
|
String |
getName()
Getter for: A name to format.
|
String |
getScript()
Getter for: A writing system code; starts with the ISO-15924 script name.
|
String |
getStyle()
Getter for: Name writing style.
|
AiNameFormatRequest |
language(String value)
Setter for: An ISO-639 code of the language; either 639-1 or 639-3 (e.g.
|
AiNameFormatRequest |
location(String value)
Setter for: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France.
|
AiNameFormatRequest |
name(String value)
Setter for: A name to format.
|
AiNameFormatRequest |
script(String value)
Setter for: A writing system code; starts with the ISO-15924 script name.
|
void |
setEncoding(String value)
Setter for: A character encoding name.
|
void |
setFormat(String value)
Setter for: Format of the name.
|
void |
setLanguage(String value)
Setter for: An ISO-639 code of the language; either 639-1 or 639-3 (e.g.
|
void |
setLocation(String value)
Setter for: A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France.
|
void |
setName(String value)
Setter for: A name to format.
|
void |
setScript(String value)
Setter for: A writing system code; starts with the ISO-15924 script name.
|
void |
setStyle(String value)
Setter for: Name writing style.
|
AiNameFormatRequest |
style(String value)
Setter for: Name writing style.
|
public AiNameFormatRequest()
public AiNameFormatRequest(String name, String language, String location, String encoding, String script, String format, String style)
name
- A name to format.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 France.encoding
- A character encoding name.script
- A writing system code; starts with the ISO-15924 script name.format
- Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p'style
- Name writing style. Enum, available values: Formal, Informal, Legal, Academicpublic String getName()
public void setName(String value)
public AiNameFormatRequest name(String value)
public String getLanguage()
public void setLanguage(String value)
public AiNameFormatRequest language(String value)
public String getLocation()
public void setLocation(String value)
public AiNameFormatRequest location(String value)
public String getEncoding()
public void setEncoding(String value)
public AiNameFormatRequest encoding(String value)
public String getScript()
public void setScript(String value)
public AiNameFormatRequest script(String value)
public String getFormat()
public void setFormat(String value)
public AiNameFormatRequest format(String value)
public String getStyle()
public void setStyle(String value)
public AiNameFormatRequest style(String value)
Copyright © 2020. All rights reserved.