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 java.lang.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.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.annot8.core.annotations.Annotation

        io.annot8.core.annotations.Annotation.Builder
    • Constructor Summary

      Constructors 
      Constructor Description
      TestAnnotation​()  
      TestAnnotation​(java.lang.String id, java.lang.String content)  
      TestAnnotation​(java.lang.String id, java.lang.String content, java.lang.String type)  
      TestAnnotation​(java.lang.String id, java.lang.String content, java.lang.String type, io.annot8.core.bounds.Bounds bounds)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      io.annot8.core.bounds.Bounds getBounds​()  
      java.lang.String getContentId​()  
      java.lang.String getId​()  
      io.annot8.core.properties.ImmutableProperties getProperties​()  
      java.lang.String getType​()  
      int hashCode​()  
      void setBounds​(io.annot8.core.bounds.Bounds bounds)  
      void setContentId​(java.lang.String content)  
      void setId​(java.lang.String id)  
      void setProperties​(io.annot8.core.properties.ImmutableProperties properties)  
      void setType​(java.lang.String type)  
      • Methods inherited from interface io.annot8.core.annotations.Annotation

        getBounds, sameAnnotation
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestAnnotation

        public TestAnnotation​()
      • TestAnnotation

        public TestAnnotation​(java.lang.String id,
                              java.lang.String content)
      • TestAnnotation

        public TestAnnotation​(java.lang.String id,
                              java.lang.String content,
                              java.lang.String type)
      • TestAnnotation

        public TestAnnotation​(java.lang.String id,
                              java.lang.String content,
                              java.lang.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 java.lang.String getContentId​()
        Specified by:
        getContentId in interface io.annot8.core.annotations.Annotation
      • setContentId

        public void setContentId​(java.lang.String content)
      • getId

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

        public void setId​(java.lang.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 java.lang.String getType​()
        Specified by:
        getType in interface io.annot8.core.helpers.WithType
      • setType

        public void setType​(java.lang.String type)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode​()
        Overrides:
        hashCode in class java.lang.Object