Package org.projecthusky.valueset.model
Class ValueSetPackage
java.lang.Object
org.projecthusky.valueset.model.ValueSetBase
org.projecthusky.valueset.model.ValueSetPackage
- All Implemented Interfaces:
Serializable
The Class ValueSetPackage is intended to contain all
information about a package of multiple value sets.
Die Klasse ValueSetPackage dient zum Sammeln aller
Informationen zu einem Paket mit mehreren Wertesätzen.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new ValueSetPackage.ValueSetPackage
(ValueSetPackageConfig valueSetPackageConfig) Instantiates a new value set package from its config. Instanziiert ein neues Wertesatzpaket aus seiner Konfiguration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addValueSet
(ValueSet value) Adds a value set. Fügt einen Wertesatz hinzu.static ValueSetPackage.Builder
builder()
Creates builder to buildValueSetPackage
.void
Clears the value set list. Löscht die Wertesatzliste.boolean
containsValueSet
(ValueSet 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 two objects are equal (based on their content). Prüft, ob die beiden Objekte gleich sind (basierend auf ihrem Inhalt).Gets the description. Ruft die Beschreibung ab.Gets the source url (where to get the package). Ruft die Quell-URL ab (woher das Paket stammt)Gets the status. Ruft den Status ab.Gets the value set list. Ruft die Wertesatzliste ab.Gets a value set by mapping identificator. Ruft einen Wertesatz anhand des angegebenen Zuordnungscodes ab.getValueSetyByMappingName
(String value) Gets the value set by mapping name. Ruft einen Wertesatz anhand des angegebenen Zuordnungsnamens ab.int
hashCode()
void
setDescription
(String description) Sets the description. Legt die Beschreibung fest.void
setSourceUrl
(String sourceUrl) Sets the source url (where to get the package). Legt die Quell-URL fest (wo das Paket abgeholt werden kann).void
setStatus
(ValueSetPackageStatus status) Sets the status. Setzt den Status.void
setValueSetList
(List<ValueSet> valueSetList) Sets the value set list. Legt die Wertesatzliste fest.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
-
ValueSetPackage
public ValueSetPackage()Instantiates a new ValueSetPackage. Default constructor.Instanziiert ein neues ValueSetPackage. Standardkonstruktor. -
ValueSetPackage
Instantiates a new value set package from its config.Instanziiert ein neues Wertesatzpaket aus seiner Konfiguration.
-
-
Method Details
-
builder
Creates builder to buildValueSetPackage
.- Returns:
- created builder
-
addValueSet
Adds a value set.Fügt einen Wertesatz hinzu.- Parameters:
value
- the value
-
clearValueSetList
public void clearValueSetList()Clears the value set list.Löscht die Wertesatzliste. -
containsValueSet
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.Ruft die Beschreibung ab.- Returns:
- the description
-
getSourceUrl
Gets the source url (where to get the package).Ruft die Quell-URL ab (woher das Paket stammt)- Returns:
- the source url
-
getStatus
Gets the status.Ruft den Status ab.- Returns:
- the status
-
getValueSetList
Gets the value set list.Ruft die Wertesatzliste ab.- Returns:
- the value set list
-
getValueSetyByMappingIdentificator
Gets a value set by mapping identificator.Ruft einen Wertesatz anhand des angegebenen Zuordnungscodes ab.- Parameters:
value
- the value- Returns:
- the value sety by mapping identificator
-
getValueSetyByMappingName
Gets the value set by mapping name.Ruft einen Wertesatz anhand des angegebenen Zuordnungsnamens ab.- Parameters:
value
- the value- Returns:
- the value sety by mapping name
-
hashCode
public int hashCode() -
setDescription
Sets the description.Legt die Beschreibung fest.- Parameters:
description
- the new description
-
setSourceUrl
Sets the source url (where to get the package).Legt die Quell-URL fest (wo das Paket abgeholt werden kann).- Parameters:
sourceUrl
- the new source url
-
setStatus
Sets the status.Setzt den Status.- Parameters:
status
- the new status
-
setValueSetList
Sets the value set list.Legt die Wertesatzliste fest.- Parameters:
valueSetList
- the new value set list
-