Class Version

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

public class Version extends Object implements 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
    Modifier and Type
    Class
    Description
    static final class 
    Builder to build Version.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new Version.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates builder to build Version.
    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 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
     
    void
    Sets the version label (e.g.
    void
    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.
    Builds a string of the version. Erstellt einen String der Version.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Version

      public Version()
      Instantiates a new Version. Default constructor.
      Instanziiert eine neue Version. Standardkonstruktor.
  • Method Details

    • builder

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

      public boolean equals(Object obj)
      Checks whether the two objects are equal (based on their content).
      Prüft, ob die beiden Objekte gleich sind (basierend auf ihrem Inhalt).
      Overrides:
      equals in class Object
      Parameters:
      obj - the Version to compare
      Returns:
      true, if equal; false otherwise.
    • getLabel

      public String getLabel()
      Gets the version label (e.g. '1.0').
      Ruft die Versionsbezeichnung ab (z. B. '1.0').
      Returns:
      the label
    • getPublishingAuthority

      public OrganizationBaseType getPublishingAuthority()
      Gets the publishing authority (responsible organization).
      Ruft die Veröffentlichungsbehörde (verantwortliche Organisation) ab.
      Returns:
      the publishing authority
    • getValidFrom

      public Date getValidFrom()
      Gets the valid from date.
      Ruft das 'Gültig ab' Datum ab.
      Returns:
      the valid from
    • getValidTo

      public Date getValidTo()
      Gets the valid to date.
      Ruft das 'Gültig bis' Datum ab.
      Returns:
      the valid to
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setLabel

      public void setLabel(String label)
      Sets the version label (e.g. '1.0').
      Legt die Versionsbezeichnung fest (z. B. '1.0').
      Parameters:
      label - the new label
    • setPublishingAuthority

      public void setPublishingAuthority(OrganizationBaseType publishingAuthority)
      Sets the publishing authority (responsible organization).
      Legt die Veröffentlichungsbehörde (verantwortliche Organisation) fest.
      Parameters:
      publishingAuthority - the new publishing authority
    • setValidFrom

      public void setValidFrom(Date validFrom)
      Sets the valid from date.
      Legt das 'Gültig ab' Datum fest.
      Parameters:
      validFrom - the new valid from
    • setValidTo

      public void setValidTo(Date validTo)
      Sets the valid to date.
      Legt das 'Gültig bis' Datum fest.
      Parameters:
      validTo - the new valid to
    • toString

      public String toString()
      Builds a string of the version.
      Erstellt einen String der Version.
      Overrides:
      toString in class Object
      Returns:
      the string