Class TestAnnotationStore

  • All Implemented Interfaces:
    io.annot8.core.stores.AnnotationStore


    public class TestAnnotationStore
    extends java.lang.Object
    implements io.annot8.core.stores.AnnotationStore
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(io.annot8.core.annotations.Annotation annotation)  
      java.util.stream.Stream<io.annot8.core.annotations.Annotation> getAll​()  
      io.annot8.core.annotations.Annotation.Builder getBuilder​()  
      java.util.Optional<io.annot8.core.annotations.Annotation> getById​(java.lang.String annotationId)  
      io.annot8.core.annotations.Annotation save​(io.annot8.core.annotations.Annotation annotation)  
      io.annot8.core.annotations.Annotation save​(io.annot8.core.annotations.Annotation.Builder annotationBuilder)  
      void setContentId​(java.lang.String contentName)  
      • Methods inherited from interface io.annot8.core.stores.AnnotationStore

        copy, create, delete, deleteAll, edit, getByBounds, getByBoundsAndType, getByType
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestAnnotationStore

        public TestAnnotationStore​()
      • TestAnnotationStore

        public TestAnnotationStore​(java.lang.String contentId)
      • TestAnnotationStore

        public TestAnnotationStore​(java.lang.String contentId,
                                   io.annot8.common.implementations.factories.AnnotationBuilderFactory annotationBuilderFactory)
      • TestAnnotationStore

        public TestAnnotationStore​(io.annot8.core.data.Content<?> content)
    • Method Detail

      • getBuilder

        public io.annot8.core.annotations.Annotation.Builder getBuilder​()
        Specified by:
        getBuilder in interface io.annot8.core.stores.AnnotationStore
      • setContentId

        public void setContentId​(java.lang.String contentName)
      • save

        public io.annot8.core.annotations.Annotation save​(io.annot8.core.annotations.Annotation.Builder annotationBuilder)
                                                   throws io.annot8.core.exceptions.IncompleteException
        Throws:
        io.annot8.core.exceptions.IncompleteException
      • save

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

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

        public java.util.stream.Stream<io.annot8.core.annotations.Annotation> getAll​()
        Specified by:
        getAll in interface io.annot8.core.stores.AnnotationStore
      • getById

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