Class Designation

java.lang.Object
org.projecthusky.valueset.model.Designation
All Implemented Interfaces:
Serializable

public class Designation extends Object implements Serializable
Designations are language dependent display names for the code. For any language there might be multiple, each specifying the type (fully specified name, preferred, synonym, ...).
See Also:
  • Constructor Details

    • Designation

      public Designation()
      Instantiates a new Designation. Default constructor.
  • Method Details

    • builder

      @Generated("SparkTools") public static Designation.Builder builder()
      Creates builder to build Designation.
      Returns:
      created builder
    • equals

      public boolean equals(Object obj)
      Checks whether the two objects are equal (based on their content).
      Overrides:
      equals in class Object
      Parameters:
      obj - the Designation to compare
      Returns:
      true, if equal; false otherwise.
    • getDisplayName

      public String getDisplayName()
      Gets the display name.
      Returns:
      the display name
    • setDisplayName

      public void setDisplayName(String displayName)
      Sets the display name.
      Parameters:
      displayName - the new display name
    • getLanguageCode

      public LanguageCode getLanguageCode()
      Gets the language code.
      Returns:
      the language code
    • setLanguageCode

      public void setLanguageCode(LanguageCode languageCode)
      Sets the language code.
      Parameters:
      languageCode - the new language code
    • getType

      public DesignationType getType()
      Gets the designations type (fully specified name, preferred, synonym, ...).
      Returns:
      the type
    • setType

      public void setType(DesignationType type)
      Sets the designations type (fully specified name, preferred, synonym, ...).
      Parameters:
      type - the new type
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object