Class License
java.lang.Object
de.digitalcollections.model.UniqueObject
de.digitalcollections.model.legal.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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
License.LicenseBuilder<C extends License,
B extends License.LicenseBuilder<C, B>> Nested classes/interfaces inherited from class de.digitalcollections.model.UniqueObject
UniqueObject.UniqueObjectBuilder<C extends UniqueObject,
B extends UniqueObject.UniqueObjectBuilder<C, B>> -
Field Summary
Fields inherited from class de.digitalcollections.model.UniqueObject
created, lastModified, uuid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getLabel()
getUrl()
int
hashCode()
void
setAcronym
(String acronym) void
setLabel
(LocalizedText label) void
toString()
Methods inherited from class de.digitalcollections.model.UniqueObject
getCreated, getLastModified, getUuid, init, isPersisted, setCreated, setLastModified, setUuid
-
Constructor Details
-
License
public License() -
License
-
-
Method Details
-
equals
- Overrides:
equals
in classUniqueObject
-
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
- Returns:
- multilingual license title, e.g. "URHEBERRECHTSSCHUTZ - NICHT KOMMERZIELLE NUTZUNG GESTATTET", "IN COPYRIGHT - NON-COMMERCIAL USE PERMITTED"
-
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 classUniqueObject
-
setAcronym
-
setLabel
-
setUrl
-
toString
-