Package com.basistech.rosette.apimodel
Class Name
java.lang.Object
com.basistech.rosette.apimodel.Name
Class that represents a name.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionConstructor forName
with default entityType PERSON, unknown script and unknown language This allows Jackson to use the single arg constructor to deserialize a short-hand value like {"name": "Mike"} instead of the full fledged {"name": {"text": "Mike"}}Name
(String name, String entityType, com.basistech.util.ISO15924 script, com.basistech.util.LanguageCode language) Default constructor for lombok -
Method Summary
Modifier and TypeMethodDescriptionstatic Name.NameBuilder
builder()
boolean
com.basistech.util.LanguageCode
com.basistech.util.ISO15924
getText()
int
hashCode()
toString()
-
Constructor Details
-
Name
public Name(String name, String entityType, com.basistech.util.ISO15924 script, com.basistech.util.LanguageCode language) Default constructor for lombok- Parameters:
name
-entityType
-script
-language
-
-
Name
Constructor forName
with default entityType PERSON, unknown script and unknown language This allows Jackson to use the single arg constructor to deserialize a short-hand value like {"name": "Mike"} instead of the full fledged {"name": {"text": "Mike"}}- Parameters:
name
- a name
-
-
Method Details
-
builder
-
getText
- Returns:
- text of the name
-
getEntityType
- Returns:
- entity type of the name
-
getScript
public com.basistech.util.ISO15924 getScript()- Returns:
- script of the name,
ISO15924
-
getLanguage
public com.basistech.util.LanguageCode getLanguage()- Returns:
- language of the name,
LanguageCode
-
equals
-
hashCode
public int hashCode() -
toString
-