Interface License

All Known Implementing Classes:
LicenseImpl

public interface License
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.
  • Method Details

    • getAcronym

      java.lang.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"
    • setAcronym

      void setAcronym​(java.lang.String acronym)
    • getCreated

      java.time.LocalDateTime getCreated()
      Returns:
      date of creation of this license description
    • setCreated

      void setCreated​(java.time.LocalDateTime created)
    • getLabel

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

      void setLabel​(LocalizedText label)
    • getLastModified

      java.time.LocalDateTime getLastModified()
    • setLastModified

      void setLastModified​(java.time.LocalDateTime lastModified)
    • getSymbolImages

      java.util.List<ImageFileResource> getSymbolImages()
      Returns:
      (downloaded, locally managed ImageFileResource) list of symbol images representing the license, e.g. like downloaded image https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png. A list because different sized may be available, e.g. compact one https://licensebuttons.net/l/by-nc-sa/4.0/80x15.png. Client can choose of list for example by minimal height...
    • setSymbolImages

      void setSymbolImages​(java.util.List<ImageFileResource> symbolImages)
    • getUrl

      java.net.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/"
    • setUrl

      void setUrl​(java.net.URL url)
    • getUuid

      java.util.UUID getUuid()
      Returns:
      unique identifier / license key within the system
    • setUuid

      void setUuid​(java.util.UUID uuid)