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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static 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
Constructors Constructor Description License()
License(String acronym, LocalizedText label, URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAcronym()
LocalizedText
getLabel()
URL
getUrl()
int
hashCode()
void
setAcronym(String acronym)
void
setLabel(LocalizedText label)
void
setUrl(URL url)
String
toString()
-
Methods inherited from class de.digitalcollections.model.UniqueObject
getCreated, getLastModified, getUuid, init, setCreated, setLastModified, setUuid
-
-
-
-
Constructor Detail
-
License
public License()
-
License
public License(String acronym, LocalizedText label, URL url)
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classUniqueObject
-
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 classUniqueObject
-
setAcronym
public void setAcronym(String acronym)
-
setLabel
public void setLabel(LocalizedText label)
-
setUrl
public void setUrl(URL url)
-
-