Package com.basistech.rosette.dm
Class Name.Builder
java.lang.Object
com.basistech.rosette.dm.BaseAttribute.Builder<Name,Name.Builder>
com.basistech.rosette.dm.Name.Builder
- Enclosing class:
- Name
Builder for
Name.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Construct a new, immutable,Nameobject from the contents of the builder.protected Name.BuildergetThis()languageOfOrigin(com.basistech.util.LanguageCode languageOfOrigin) Specify the language of origin for the name.languageOfUse(com.basistech.util.LanguageCode languageOfUse) Specify the language of use for the name.script(com.basistech.util.ISO15924 script) Specify the script of the text of a name.Alter the text for the name.Specify the type for this name, such as 'PERSON' or 'LOCATION'.Methods inherited from class com.basistech.rosette.dm.BaseAttribute.Builder
addAllToList, addAllToSet, buildExtendedProperties, extendedProperties, extendedProperty, nullOrList
-
Constructor Details
-
Builder
Construct a builder from a name text.- Parameters:
text- the text.
-
-
Method Details
-
text
Alter the text for the name.- Parameters:
text- new text.- Returns:
- this.
-
type
Specify the type for this name, such as 'PERSON' or 'LOCATION'.- Parameters:
type- the type. Null is interpreted as an unspecified type.- Returns:
- this.
-
script
Specify the script of the text of a name.- Parameters:
script- script identifier. Null is interpreted asISO15924.Zyyy.- Returns:
- this
-
languageOfUse
Specify the language of use for the name.- Parameters:
languageOfUse- language. Null is interpreted asLanguageCode.UNKNOWN.- Returns:
- this.
-
languageOfOrigin
Specify the language of origin for the name.- Parameters:
languageOfOrigin- language. Null is interpreted asLanguageCode.UNKNOWN.- Returns:
- this.
-
build
Construct a new, immutable,Nameobject from the contents of the builder.- Returns:
- the new Name.
-
getThis
- Specified by:
getThisin classBaseAttribute.Builder<Name,Name.Builder>
-