Class License


  • public class License
    extends Object
    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 Detail

      • License

        public License()
    • Method Detail

      • 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"
      • getCreated

        public LocalDateTime getCreated()
        Returns:
        date of creation of this license description
      • getLabel

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

        public 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...
      • 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/"
      • getUuid

        public UUID getUuid()
        Returns:
        unique identifier / license key within the system
      • setAcronym

        public void setAcronym​(String acronym)
      • setLastModified

        public void setLastModified​(LocalDateTime lastModified)
      • setUrl

        public void setUrl​(URL url)
      • setUuid

        public void setUuid​(UUID uuid)