Package org.projecthusky.valueset.model
Class Designation
java.lang.Object
org.projecthusky.valueset.model.Designation
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Designation.Builder
builder()
Creates builder to buildDesignation
.boolean
Checks whether the two objects are equal (based on their content).Gets the display name.Gets the language code.getType()
Gets the designations type (fully specified name, preferred, synonym, ...).int
hashCode()
void
setDisplayName
(String displayName) Sets the display name.void
setLanguageCode
(LanguageCode languageCode) Sets the language code.void
setType
(DesignationType type) Sets the designations type (fully specified name, preferred, synonym, ...).
-
Constructor Details
-
Designation
public Designation()Instantiates a new Designation. Default constructor.
-
-
Method Details
-
builder
Creates builder to buildDesignation
.- Returns:
- created builder
-
equals
Checks whether the two objects are equal (based on their content). -
getDisplayName
Gets the display name.- Returns:
- the display name
-
setDisplayName
Sets the display name.- Parameters:
displayName
- the new display name
-
getLanguageCode
Gets the language code.- Returns:
- the language code
-
setLanguageCode
Sets the language code.- Parameters:
languageCode
- the new language code
-
getType
Gets the designations type (fully specified name, preferred, synonym, ...).- Returns:
- the type
-
setType
Sets the designations type (fully specified name, preferred, synonym, ...).- Parameters:
type
- the new type
-
hashCode
public int hashCode()
-