- java.lang.Object
-
- io.annot8.testing.testimpl.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
-
-
Constructor Summary
Constructors Constructor Description TestAnnotationStore(io.annot8.api.data.Content<?> content)TestAnnotationStore(io.annot8.api.data.Content<?> content, AnnotationBuilderFactory annotationBuilderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(io.annot8.api.annotations.Annotation annotation)Stream<io.annot8.api.annotations.Annotation>getAll()io.annot8.api.annotations.Annotation.BuildergetBuilder()Optional<io.annot8.api.annotations.Annotation>getById(String annotationId)io.annot8.api.data.Content<?>getContent()io.annot8.api.annotations.Annotationsave(io.annot8.api.annotations.Annotation annotation)io.annot8.api.annotations.Annotationsave(io.annot8.api.annotations.Annotation.Builder annotationBuilder)voidsetContent(io.annot8.api.data.Content<?> content)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
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:
getContentin interfaceio.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:
getBuilderin interfaceio.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:
deletein interfaceio.annot8.api.stores.AnnotationStore
-
getAll
public Stream<io.annot8.api.annotations.Annotation> getAll()
- Specified by:
getAllin interfaceio.annot8.api.stores.AnnotationStore
-
-