- java.lang.Object
-
- io.annot8.testing.testimpl.TestAnnotationStore
-
- All Implemented Interfaces:
io.annot8.core.stores.AnnotationStore
public class TestAnnotationStore extends Object implements io.annot8.core.stores.AnnotationStore
-
-
Constructor Summary
Constructors Constructor Description TestAnnotationStore()TestAnnotationStore(io.annot8.core.data.Content<?> content)TestAnnotationStore(String contentId)TestAnnotationStore(String contentId, io.annot8.common.implementations.factories.AnnotationBuilderFactory<io.annot8.core.annotations.Annotation> annotationBuilderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(io.annot8.core.annotations.Annotation annotation)Stream<io.annot8.core.annotations.Annotation>getAll()io.annot8.core.annotations.Annotation.BuildergetBuilder()Optional<io.annot8.core.annotations.Annotation>getById(String annotationId)io.annot8.core.annotations.Annotationsave(io.annot8.core.annotations.Annotation annotation)io.annot8.core.annotations.Annotationsave(io.annot8.core.annotations.Annotation.Builder annotationBuilder)voidsetContentId(String contentName)
-
-
-
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:
getBuilderin interfaceio.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:
deletein interfaceio.annot8.core.stores.AnnotationStore
-
getAll
public Stream<io.annot8.core.annotations.Annotation> getAll()
- Specified by:
getAllin interfaceio.annot8.core.stores.AnnotationStore
-
-