Class TestAnnotationStore

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

    public class TestAnnotationStore
    extends Object
    implements io.annot8.core.stores.AnnotationStore
    • Constructor Detail

      • TestAnnotationStore

        public TestAnnotationStore()
      • TestAnnotationStore

        public TestAnnotationStore​(String contentId)
      • TestAnnotationStore

        public TestAnnotationStore​(String contentId,
                                   io.annot8.common.implementations.factories.AnnotationBuilderFactory<io.annot8.core.annotations.Annotation> 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​(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 Stream<io.annot8.core.annotations.Annotation> getAll()
        Specified by:
        getAll in interface io.annot8.core.stores.AnnotationStore
      • getById

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