Package org.projecthusky.valueset.model
Class ValueSet
java.lang.Object
org.projecthusky.valueset.model.ValueSetBase
org.projecthusky.valueset.model.ValueSet
- All Implemented Interfaces:
Serializable
The Class ValueSet is intended to collect all metadata of a
value set (such as id, name, version, date ...) and all Entries (codes) of
the value set.
Die Klasse ValueSet dient zum Sammeln aller Metadaten eines
Wertesatzes (wie ID, Name, Version, Datum ...) und aller Einträge (Codes) des
Wertesatzes.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDescription
(LangText value) Adds a description. Fügt eine Beschreibung hinzu.void
addValueSetEntry
(ValueSetEntry value) Adds a value set entry. Fügt einen Wertesatzeintrag hinzu.static String
buildEnumName
(String displayName, int hierarchyLevel) Builds a Java compatible enum element name from a string. Erstellt einen Java-kompatiblen Enum-Elementnamen aus einer Zeichenfolge.static ValueSet.Builder
builder()
Creates builder to buildValueSet
.void
Clears the description list. Löscht die Beschreibungsliste.void
Clears the value set entry list. Löscht die Wertesatz-Eintragsliste.boolean
containsDescription
(LangText value) Checks whether the list member contains the given value. Überprüft, ob die Liste den angegebenen Wert enthält. Contains.boolean
Checks whether the list member contains the given value. Überprüft, ob die Liste den angegebenen Wert enthält. Contains.boolean
Checks whether the two objects are equal (based on their content). Prüft, ob die beiden Objekte gleich sind (basierend auf ihrem Inhalt).getDescription
(LanguageCode language) Gets the description in the given language. Ruft die Beschreibung in der angegebenen Sprache ab.Gets the description list. Ruft die Beschreibungsliste ab.Gets the display name. Ruft den Anzeigenamen ab.Gets the effective date. Ruft das Datum des Inkrafttretens ab.getName()
Gets the name. Ruft den Namen ab.Gets the sorted entry list. Ruft die sortierte Eintragsliste ab.Gets the sorted entry list.Gets the status. Ruft den Status ab.Gets the value set entry by code. Ruft den Wertesatz-Eintrag anhand seines Codes ab.Gets the value set entry by mapping code. Ruft den Wertesatz-Eintrag anhand des angegebenen Zuordnungscodes ab.Gets the value set entry by mapping name. Ruft den Wertesatz-Eintrag anhand des angegebenen Zuordnungsnamenss ab.Gets the value set entry list. Ruft die Liste der Wertesatz-Einträge ab.int
hashCode()
void
setDescriptionList
(List<LangText> descriptionList) Sets the description list. Legt die Liste der Wertesatz-Einträge fest.void
setDisplayName
(String displayName) Sets the display name. Legt den Anzeigenamen fest.void
setEffectiveDate
(Date effectiveDate) Sets the effective date. Legt den Anzeigenamen fest.void
Sets the name. Legt den Namen fest.void
setStatus
(ValueSetStatus status) Sets the status. Setzt den Status.void
setValueSetEntryList
(List<ValueSetEntry> valueSetEntryList) Sets the value set entry list. Legt die Liste der Ertesatz-Einträge fest.Sorts the value set entries by their Java Enum name. Sortiert die Wertemengeneinträge nach ihrem Java-Enum-Namen.Methods inherited from class org.projecthusky.valueset.model.ValueSetBase
addMappingIdentificator, addMappingName, clearMappingIdentificatorList, clearMappingNameList, compareIdentificator, compareMappingIdentificatorList, compareMappingNameList, compareVersion, containsMappingIdentificator, containsMappingName, getIdentificator, getMappingIdentificatorList, getMappingNameList, getVersion, setIdentificator, setMappingIdentificatorList, setMappingNameList, setVersion
-
Constructor Details
-
ValueSet
public ValueSet()Instantiates a new ValueSet. Default constructor.Instanziiert ein neues ValueSet. Standardkonstruktor.
-
-
Method Details
-
buildEnumName
public static String buildEnumName(String displayName, int hierarchyLevel) throws IllegalArgumentException Builds a Java compatible enum element name from a string.Erstellt einen Java-kompatiblen Enum-Elementnamen aus einer Zeichenfolge.- Parameters:
displayName
- The string to build the enum name from.- Returns:
- An all upper case string with every non-word character replaced with an underscore.
- Throws:
IllegalArgumentException
- When the provided displayName is null or empty.
-
builder
Creates builder to buildValueSet
.- Returns:
- created builder
-
addDescription
Adds a description.Fügt eine Beschreibung hinzu.- Parameters:
value
- the value
-
addValueSetEntry
Adds a value set entry.Fügt einen Wertesatzeintrag hinzu.- Parameters:
value
- the value
-
clearDescriptionList
public void clearDescriptionList()Clears the description list.Löscht die Beschreibungsliste. -
clearValueSetEntryList
public void clearValueSetEntryList()Clears the value set entry list.Löscht die Wertesatz-Eintragsliste. -
containsDescription
Checks whether the list member contains the given value.Überprüft, ob die Liste den angegebenen Wert enthält.Contains.- Parameters:
value
- the value- Returns:
- true, if successful
-
containsValueSetEntry
Checks whether the list member contains the given value.Überprüft, ob die Liste den angegebenen Wert enthält.Contains.- Parameters:
value
- the value- Returns:
- true, if successful
-
equals
Checks whether the two objects are equal (based on their content).Prüft, ob die beiden Objekte gleich sind (basierend auf ihrem Inhalt). -
getDescription
Gets the description in the given language.Ruft die Beschreibung in der angegebenen Sprache ab.- Parameters:
language
- the language- Returns:
- the description
-
getDescriptionList
Gets the description list.Ruft die Beschreibungsliste ab.- Returns:
- the description list
-
getDisplayName
Gets the display name.Ruft den Anzeigenamen ab.- Returns:
- the display name
-
getEffectiveDate
Gets the effective date.Ruft das Datum des Inkrafttretens ab.- Returns:
- the effective date
-
getName
Gets the name.Ruft den Namen ab.- Returns:
- the name
-
getSortedEntryList
Gets the sorted entry list.Ruft die sortierte Eintragsliste ab.- Returns:
- the sorted entry list
-
getSortedEntryListRecursive
Gets the sorted entry list. Contains also value set entries from children.Ruft die sortierte Eintragsliste ab. Enthält auch Werteeinträge von untergeordneten Elementen.- Returns:
- the sorted entry list
-
getStatus
Gets the status.Ruft den Status ab.- Returns:
- the status
-
getValueSetEntryByCode
Gets the value set entry by code.Ruft den Wertesatz-Eintrag anhand seines Codes ab.- Parameters:
value
- the value- Returns:
- the value set entry by code
-
getValueSetEntryByMappingCode
Gets the value set entry by mapping code.Ruft den Wertesatz-Eintrag anhand des angegebenen Zuordnungscodes ab.- Parameters:
value
- the value- Returns:
- the value set entry by mapping code
-
getValueSetEntryByMappingName
Gets the value set entry by mapping name.Ruft den Wertesatz-Eintrag anhand des angegebenen Zuordnungsnamenss ab.- Parameters:
value
- the value- Returns:
- the value set entry by mapping name
-
getValueSetEntryList
Gets the value set entry list.Ruft die Liste der Wertesatz-Einträge ab.- Returns:
- the value set entry list
-
hashCode
public int hashCode() -
setDescriptionList
Sets the description list.Legt die Liste der Wertesatz-Einträge fest.- Parameters:
descriptionList
- the new description list
-
setDisplayName
Sets the display name.Legt den Anzeigenamen fest.- Parameters:
displayName
- the new display name
-
setEffectiveDate
Sets the effective date.Legt den Anzeigenamen fest.- Parameters:
effectiveDate
- the new effective date
-
setName
Sets the name.Legt den Namen fest.- Parameters:
name
- the new name
-
setStatus
Sets the status.Setzt den Status.- Parameters:
status
- the new status
-
setValueSetEntryList
Sets the value set entry list.Legt die Liste der Ertesatz-Einträge fest.- Parameters:
valueSetEntryList
- the new value set entry list
-
sortValueSetEntriesByEnumName
Sorts the value set entries by their Java Enum name.Sortiert die Wertemengeneinträge nach ihrem Java-Enum-Namen.- Returns:
- the array list
-