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