-
- Type Parameters:
D- the type of data held
- All Superinterfaces:
WithId,WithName,WithProperties
public interface Content<D> extends WithId, WithProperties, WithName
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 create (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 object-
Methods inherited from interface io.annot8.core.helpers.WithProperties
getProperties
-
-
-
-
Method Detail
-
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
-
-