-
- Type Parameters:
D- the type of data held
- All Superinterfaces:
WithDescription,WithId,WithProperties
public interface Content<D> extends WithId, WithProperties, WithDescription
Base content interface from which all content implementations extend.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceContent.Builder<A extends Content<D>,D>Builder interface to createContent (immutable) Content classes
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnnotationStoregetAnnotations()The annotation store for this contentClass<? extends Content<D>>getContentClass()The top level content interface this object implementsDgetData()The data associated with this content objectClass<D>getDataClass()The class of the data stored in this Content objectItemgetItem()Get the item which this content relates to.-
Methods inherited from interface io.annot8.api.helpers.WithDescription
getDescription
-
Methods inherited from interface io.annot8.api.helpers.WithProperties
getProperties
-
-
-
-
Method Detail
-
getItem
Item getItem()
Get the item which this content relates to.- Returns:
- item
-
getData
D getData()
The data associated with this content object- Returns:
- the data
-
getDataClass
Class<D> getDataClass()
The class of the data stored in this Content object- Returns:
- data class
-
getContentClass
Class<? extends Content<D>> getContentClass()
The top level content interface this object implements- Returns:
- common content interface
-
getAnnotations
AnnotationStore getAnnotations()
The annotation store for this content- Returns:
- annotation store
-
-