Class AbstractContent<D>
- java.lang.Object
-
- io.annot8.implementations.support.content.AbstractContent<D>
-
- All Implemented Interfaces:
io.annot8.api.data.Content<D>,io.annot8.api.helpers.WithDescription,io.annot8.api.helpers.WithId,io.annot8.api.helpers.WithProperties
public abstract class AbstractContent<D> extends Object implements io.annot8.api.data.Content<D>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.annot8.api.data.Content
io.annot8.api.data.Content.Builder<A extends io.annot8.api.data.Content<D>,D extends Object>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractContent(io.annot8.api.data.Item item, Class<D> dataClass, Class<? extends io.annot8.api.data.Content<D>> contentClass, Function<io.annot8.api.data.Content<?>,io.annot8.api.stores.AnnotationStore> annotations, String id, String description, io.annot8.api.properties.ImmutableProperties properties, Supplier<D> data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.annot8.api.stores.AnnotationStoregetAnnotations()Class<? extends io.annot8.api.data.Content<D>>getContentClass()DgetData()Class<D>getDataClass()StringgetDescription()StringgetId()io.annot8.api.data.ItemgetItem()io.annot8.api.properties.ImmutablePropertiesgetProperties()
-
-
-
Constructor Detail
-
AbstractContent
protected AbstractContent(io.annot8.api.data.Item item, Class<D> dataClass, Class<? extends io.annot8.api.data.Content<D>> contentClass, Function<io.annot8.api.data.Content<?>,io.annot8.api.stores.AnnotationStore> annotations, String id, String description, io.annot8.api.properties.ImmutableProperties properties, Supplier<D> data)
-
-
Method Detail
-
getItem
public io.annot8.api.data.Item getItem()
- Specified by:
getItemin interfaceio.annot8.api.data.Content<D>
-
getId
public String getId()
- Specified by:
getIdin interfaceio.annot8.api.helpers.WithId
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceio.annot8.api.helpers.WithDescription
-
getDataClass
public Class<D> getDataClass()
- Specified by:
getDataClassin interfaceio.annot8.api.data.Content<D>
-
getContentClass
public Class<? extends io.annot8.api.data.Content<D>> getContentClass()
- Specified by:
getContentClassin interfaceio.annot8.api.data.Content<D>
-
getAnnotations
public io.annot8.api.stores.AnnotationStore getAnnotations()
- Specified by:
getAnnotationsin interfaceio.annot8.api.data.Content<D>
-
getProperties
public io.annot8.api.properties.ImmutableProperties getProperties()
- Specified by:
getPropertiesin interfaceio.annot8.api.helpers.WithProperties
-
-