Class Name

java.lang.Object
com.basistech.rosette.apimodel.Name

public final class Name extends Object
Class that represents a name.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Name(String name)
    Constructor for Name 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 Type
    Method
    Description
     
    boolean
     
     
    com.basistech.util.LanguageCode
     
    com.basistech.util.ISO15924
     
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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

      public Name(String name)
      Constructor for Name 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

      public static Name.NameBuilder builder()
    • getText

      public String getText()
      Returns:
      text of the name
    • getEntityType

      public String 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object