Class License

java.lang.Object
de.digitalcollections.model.UniqueObject
de.digitalcollections.model.legal.License

public class License extends UniqueObject
License model/description containing all relevant metadata of a license that can be used to specify the license under which an object is available or distributed.
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class UniqueObject
    • getAcronym

      public String getAcronym()
      Returns:
      the (language independent/english) acronym for this license, e.g. "CC0 1.0" for "Public Domain" or "CC BY-NC-SA 3.0"
    • getLabel

      public LocalizedText getLabel()
      Returns:
      multilingual license title, e.g. "URHEBERRECHTSSCHUTZ - NICHT KOMMERZIELLE NUTZUNG GESTATTET", "IN COPYRIGHT - NON-COMMERCIAL USE PERMITTED"
    • getUrl

      public URL getUrl()
      Returns:
      the url to the official public accessible documentation/specification of the license, e.g. "http://rightsstatements.org/vocab/InC-NC/1.0/"
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class UniqueObject
    • setAcronym

      public void setAcronym(String acronym)
    • setLabel

      public void setLabel(LocalizedText label)
    • setUrl

      public void setUrl(URL url)
    • toString

      public String toString()
      Overrides:
      toString in class Object