Class TestAnnotationStore

  • All Implemented Interfaces:
    io.annot8.api.helpers.WithFilter<io.annot8.api.annotations.Annotation>, io.annot8.api.stores.AnnotationStore

    public class TestAnnotationStore
    extends Object
    implements io.annot8.api.stores.AnnotationStore
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(io.annot8.api.annotations.Annotation annotation)  
      Stream<io.annot8.api.annotations.Annotation> getAll()  
      io.annot8.api.annotations.Annotation.Builder getBuilder()  
      Optional<io.annot8.api.annotations.Annotation> getById​(String annotationId)  
      io.annot8.api.data.Content<?> getContent()  
      io.annot8.api.annotations.Annotation save​(io.annot8.api.annotations.Annotation annotation)  
      io.annot8.api.annotations.Annotation save​(io.annot8.api.annotations.Annotation.Builder annotationBuilder)  
      void setContent​(io.annot8.api.data.Content<?> content)  
      • Methods inherited from interface io.annot8.api.stores.AnnotationStore

        copy, create, delete, deleteAll, edit, filter, getByBounds, getByBoundsAndType, getByType
      • Methods inherited from interface io.annot8.api.helpers.WithFilter

        find
    • Constructor Detail

      • TestAnnotationStore

        public TestAnnotationStore​(io.annot8.api.data.Content<?> content)
      • TestAnnotationStore

        public TestAnnotationStore​(io.annot8.api.data.Content<?> content,
                                   AnnotationBuilderFactory annotationBuilderFactory)
    • Method Detail

      • getContent

        public io.annot8.api.data.Content<?> getContent()
        Specified by:
        getContent in interface io.annot8.api.stores.AnnotationStore
      • setContent

        public void setContent​(io.annot8.api.data.Content<?> content)
      • getBuilder

        public io.annot8.api.annotations.Annotation.Builder getBuilder()
        Specified by:
        getBuilder in interface io.annot8.api.stores.AnnotationStore
      • save

        public io.annot8.api.annotations.Annotation save​(io.annot8.api.annotations.Annotation.Builder annotationBuilder)
      • save

        public io.annot8.api.annotations.Annotation save​(io.annot8.api.annotations.Annotation annotation)
      • delete

        public void delete​(io.annot8.api.annotations.Annotation annotation)
        Specified by:
        delete in interface io.annot8.api.stores.AnnotationStore
      • getAll

        public Stream<io.annot8.api.annotations.Annotation> getAll()
        Specified by:
        getAll in interface io.annot8.api.stores.AnnotationStore
      • getById

        public Optional<io.annot8.api.annotations.Annotation> getById​(String annotationId)
        Specified by:
        getById in interface io.annot8.api.stores.AnnotationStore