Class Annotation
- java.lang.Object
-
- de.digitalcollections.iiif.model.sharedcanvas.Resource<Annotation>
-
- de.digitalcollections.iiif.model.openannotation.Annotation
-
- All Implemented Interfaces:
Choice<Annotation>
public class Annotation extends Resource<Annotation>
An OpenAnnotation Annotation.Content resources and commentary are associated with a canvas via an annotation. This provides a single, coherent method for aligning information, and provides a standards based framework for distinguishing parts of resources and parts of canvases. As annotations can be added later, it promotes a distributed system in which publishers can align their content with the descriptions created by others.
-
-
Constructor Summary
Constructors Constructor Description Annotation(Motivation motivation)Annotation(String identifier)Annotation(String identifier, Motivation motivation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MotivationgetMotivation()Resource<?>getOn()Resource<?>getResource()CssStylegetStylesheet()StringgetType()voidsetOn(Resource on)voidsetResource(Resource resource)voidsetStylesheet(CssStyle stylesheet)-
Methods inherited from class de.digitalcollections.iiif.model.sharedcanvas.Resource
addAttribution, addDescription, addLabel, addLicense, addLogo, addLogo, addMetadata, addMetadata, addRelated, addRendering, addSeeAlso, addService, addThumbnail, addViewingHint, addWithin, getAlternatives, getAttribution, getAttributionString, getDescription, getDescriptionString, getFirstLicense, getIdentifier, getLabel, getLabelString, getLicenses, getLogos, getLogoUri, getMetadata, getRelated, getRenderings, getSeeAlso, getServices, getSupportedViewingHintTypes, getThumbnail, getThumbnails, getViewingHints, getWithin, isDefaultChoice, setAlternatives, setAttribution, setDescription, setIdentifier, setIsDefaultChoice, setLabel, setLicenses, setLogos, setRelated, setRenderings, setSeeAlso, setServices, setThumbnails, setViewingHints, setWithin, toString, verifyRendering
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.digitalcollections.iiif.model.openannotation.Choice
addAlternative
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Annotation
public Annotation(Motivation motivation)
-
Annotation
public Annotation(String identifier)
-
Annotation
public Annotation(String identifier, Motivation motivation)
-
-
Method Detail
-
getResource
public Resource<?> getResource()
-
setResource
public void setResource(Resource resource)
-
getType
public String getType()
- Overrides:
getTypein classResource<Annotation>
-
getMotivation
public Motivation getMotivation()
-
getOn
public Resource<?> getOn()
-
setOn
public void setOn(Resource on)
-
getStylesheet
public CssStyle getStylesheet()
-
setStylesheet
public void setStylesheet(CssStyle stylesheet)
-
-