Class TestAnnotation

  • All Implemented Interfaces:
    io.annot8.core.annotations.Annotation, io.annot8.core.helpers.WithId, io.annot8.core.helpers.WithProperties, io.annot8.core.helpers.WithType

    public class TestAnnotation
    extends Object
    implements io.annot8.core.annotations.Annotation
    An annotation for use (only) in unit tests.

    DO NOT USE THIS OUTSIDE A UNIT TEST.

    This does not have the necessary correctness of behaviour, for example is it mutable.

    • Constructor Detail

      • TestAnnotation

        public TestAnnotation()
      • TestAnnotation

        public TestAnnotation​(String id,
                              String content)
      • TestAnnotation

        public TestAnnotation​(String id,
                              String content,
                              String type,
                              io.annot8.core.bounds.Bounds bounds)
    • Method Detail

      • getBounds

        public io.annot8.core.bounds.Bounds getBounds()
        Specified by:
        getBounds in interface io.annot8.core.annotations.Annotation
      • setBounds

        public void setBounds​(io.annot8.core.bounds.Bounds bounds)
      • getContentId

        public String getContentId()
        Specified by:
        getContentId in interface io.annot8.core.annotations.Annotation
      • setContentId

        public void setContentId​(String content)
      • getId

        public String getId()
        Specified by:
        getId in interface io.annot8.core.helpers.WithId
      • setId

        public void setId​(String id)
      • getProperties

        public io.annot8.core.properties.ImmutableProperties getProperties()
        Specified by:
        getProperties in interface io.annot8.core.helpers.WithProperties
      • setProperties

        public void setProperties​(io.annot8.core.properties.ImmutableProperties properties)
      • getType

        public String getType()
        Specified by:
        getType in interface io.annot8.core.helpers.WithType
      • setType

        public void setType​(String type)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object