Class 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>
    • 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:
        getItem in interface io.annot8.api.data.Content<D>
      • getId

        public String getId()
        Specified by:
        getId in interface io.annot8.api.helpers.WithId
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface io.annot8.api.helpers.WithDescription
      • getData

        public D getData()
        Specified by:
        getData in interface io.annot8.api.data.Content<D>
      • getDataClass

        public Class<D> getDataClass()
        Specified by:
        getDataClass in interface io.annot8.api.data.Content<D>
      • getContentClass

        public Class<? extends io.annot8.api.data.Content<D>> getContentClass()
        Specified by:
        getContentClass in interface io.annot8.api.data.Content<D>
      • getAnnotations

        public io.annot8.api.stores.AnnotationStore getAnnotations()
        Specified by:
        getAnnotations in interface io.annot8.api.data.Content<D>
      • getProperties

        public io.annot8.api.properties.ImmutableProperties getProperties()
        Specified by:
        getProperties in interface io.annot8.api.helpers.WithProperties