public final class Name extends Object
| Constructor and Description |
|---|
Name(String name)
Constructor for
Name with default entityType PERSON, unknown script and unknown language |
Name(String name,
String entityType,
com.basistech.util.ISO15924 script,
com.basistech.util.LanguageCode language)
Constructor for
Name |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
if the param is a
Name, compare contents for equality |
String |
getEntityType()
Gets the entity type of the name
|
com.basistech.util.LanguageCode |
getLanguage()
Gets the language of the name,
LanguageCode |
com.basistech.util.ISO15924 |
getScript()
Gets the script of the name,
ISO15924 |
String |
getText()
Gets the name
|
int |
hashCode() |
void |
setEntityType(String entityType)
Sets the entity type of a name
|
void |
setLanguage(com.basistech.util.LanguageCode language)
Sets the language of a name
|
void |
setScript(com.basistech.util.ISO15924 script)
Sets the script of a name
|
void |
setText(String text)
Sets the name text
|
public Name(String name, String entityType, com.basistech.util.ISO15924 script, com.basistech.util.LanguageCode language)
Namename - a nameentityType - entity type of the namescript - script of the namelanguage - language of the namepublic Name(String name)
Name with default entityType PERSON, unknown script and unknown languagename - a namepublic String getText()
public String getEntityType()
public com.basistech.util.ISO15924 getScript()
ISO15924public com.basistech.util.LanguageCode getLanguage()
LanguageCodepublic void setText(String text)
text - name textpublic void setEntityType(String entityType)
entityType - entity type of a namepublic void setScript(com.basistech.util.ISO15924 script)
script - script of a namepublic void setLanguage(com.basistech.util.LanguageCode language)
language - language of a nameCopyright © 2014–2016 Basis Technology Corp.. All rights reserved.