Package com.basistech.rosette.dm
Class Name
java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.Name
- All Implemented Interfaces:
Serializable
A name of something in the world.
Both Names and
Mention
objects can contains the names of things.
Mention is used for reference inside of documents, while
Name is used for names unrelated to documents.- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.basistech.rosette.dm.BaseAttribute
extendedProperties
-
Constructor Summary
-
Method Summary
Methods inherited from class com.basistech.rosette.dm.BaseAttribute
getExtendedProperties, listOrNull, setExtendedProperty, toString
-
Constructor Details
-
Name
-
-
Method Details
-
getText
- Returns:
- the text of this name.
-
getType
- Returns:
- the type of the name, or null. Types are types of things in the world, such as 'PERSON' or 'LOCATION'.
-
getScript
public com.basistech.util.ISO15924 getScript()- Returns:
- the script code for this name. If the script is not specified, this will return
ISO15924.Zyyy
.
-
getLanguageOfOrigin
public com.basistech.util.LanguageCode getLanguageOfOrigin()- Returns:
- the language of origin for this name. If the language of origin is not specified,
this will return
LanguageCode.UNKNOWN
.
-
getLanguageOfUse
public com.basistech.util.LanguageCode getLanguageOfUse()- Returns:
- the language of use for this name. If the language of use is not specified,
this will return
LanguageCode.UNKNOWN
.
-
toStringHelper
protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()- Overrides:
toStringHelper
in classBaseAttribute
-