Class Name.Builder

Enclosing class:
Name

public static class Name.Builder extends BaseAttribute.Builder<Name,Name.Builder>
Builder for Name.
  • Constructor Details

    • Builder

      public Builder(String text)
      Construct a builder from a name text.
      Parameters:
      text - the text.
  • Method Details

    • text

      public Name.Builder text(String text)
      Alter the text for the name.
      Parameters:
      text - new text.
      Returns:
      this.
    • type

      public Name.Builder type(String 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

      public Name.Builder script(com.basistech.util.ISO15924 script)
      Specify the script of the text of a name.
      Parameters:
      script - script identifier. Null is interpreted as ISO15924.Zyyy.
      Returns:
      this
    • languageOfUse

      public Name.Builder languageOfUse(com.basistech.util.LanguageCode languageOfUse)
      Specify the language of use for the name.
      Parameters:
      languageOfUse - language. Null is interpreted as LanguageCode.UNKNOWN.
      Returns:
      this.
    • languageOfOrigin

      public Name.Builder languageOfOrigin(com.basistech.util.LanguageCode languageOfOrigin)
      Specify the language of origin for the name.
      Parameters:
      languageOfOrigin - language. Null is interpreted as LanguageCode.UNKNOWN.
      Returns:
      this.
    • build

      public Name build()
      Construct a new, immutable, Name object from the contents of the builder.
      Returns:
      the new Name.
    • getThis

      protected Name.Builder getThis()
      Specified by:
      getThis in class BaseAttribute.Builder<Name,Name.Builder>