Package org.projecthusky.valueset.model
Class Version
java.lang.Object
org.projecthusky.valueset.model.Version
- All Implemented Interfaces:
Serializable
The Class Version contains all information describing a
specific version of a value set.
Die Klasse Version enthält alle Informationen, die eine
bestimmte Version eines Wertesatzes beschreiben.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Version.Builder
builder()
Creates builder to buildVersion
.boolean
Checks whether the two objects are equal (based on their content). Prüft, ob die beiden Objekte gleich sind (basierend auf ihrem Inhalt).getLabel()
Gets the version label (e.g.Gets the publishing authority (responsible organization). Ruft die Veröffentlichungsbehörde (verantwortliche Organisation) ab.Gets the valid from date. Ruft das 'Gültig ab' Datum ab.Gets the valid to date. Ruft das 'Gültig bis' Datum ab.int
hashCode()
void
Sets the version label (e.g.void
setPublishingAuthority
(OrganizationBaseType publishingAuthority) Sets the publishing authority (responsible organization). Legt die Veröffentlichungsbehörde (verantwortliche Organisation) fest.void
setValidFrom
(Date validFrom) Sets the valid from date. Legt das 'Gültig ab' Datum fest.void
setValidTo
(Date validTo) Sets the valid to date. Legt das 'Gültig bis' Datum fest.toString()
Builds a string of the version. Erstellt einen String der Version.
-
Constructor Details
-
Version
public Version()Instantiates a new Version. Default constructor.Instanziiert eine neue Version. Standardkonstruktor.
-
-
Method Details
-
builder
Creates builder to buildVersion
.- Returns:
- created builder
-
equals
Checks whether the two objects are equal (based on their content).Prüft, ob die beiden Objekte gleich sind (basierend auf ihrem Inhalt). -
getLabel
Gets the version label (e.g. '1.0').Ruft die Versionsbezeichnung ab (z. B. '1.0').- Returns:
- the label
-
getPublishingAuthority
Gets the publishing authority (responsible organization).Ruft die Veröffentlichungsbehörde (verantwortliche Organisation) ab.- Returns:
- the publishing authority
-
getValidFrom
Gets the valid from date.Ruft das 'Gültig ab' Datum ab.- Returns:
- the valid from
-
getValidTo
Gets the valid to date.Ruft das 'Gültig bis' Datum ab.- Returns:
- the valid to
-
hashCode
public int hashCode() -
setLabel
Sets the version label (e.g. '1.0').Legt die Versionsbezeichnung fest (z. B. '1.0').- Parameters:
label
- the new label
-
setPublishingAuthority
Sets the publishing authority (responsible organization).Legt die Veröffentlichungsbehörde (verantwortliche Organisation) fest.- Parameters:
publishingAuthority
- the new publishing authority
-
setValidFrom
Sets the valid from date.Legt das 'Gültig ab' Datum fest.- Parameters:
validFrom
- the new valid from
-
setValidTo
Sets the valid to date.Legt das 'Gültig bis' Datum fest.- Parameters:
validTo
- the new valid to
-
toString
Builds a string of the version.Erstellt einen String der Version.
-