- java.lang.Object
-
- io.annot8.testing.testimpl.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.AnnotationAn 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 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 booleanequals(java.lang.Object o)io.annot8.core.bounds.BoundsgetBounds()java.lang.StringgetContentId()java.lang.StringgetId()io.annot8.core.properties.ImmutablePropertiesgetProperties()java.lang.StringgetType()inthashCode()voidsetBounds(io.annot8.core.bounds.Bounds bounds)voidsetContentId(java.lang.String content)voidsetId(java.lang.String id)voidsetProperties(io.annot8.core.properties.ImmutableProperties properties)voidsetType(java.lang.String type)
-
-
-
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:
getBoundsin interfaceio.annot8.core.annotations.Annotation
-
setBounds
public void setBounds(io.annot8.core.bounds.Bounds bounds)
-
getContentId
public java.lang.String getContentId()
- Specified by:
getContentIdin interfaceio.annot8.core.annotations.Annotation
-
setContentId
public void setContentId(java.lang.String content)
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceio.annot8.core.helpers.WithId
-
setId
public void setId(java.lang.String id)
-
getProperties
public io.annot8.core.properties.ImmutableProperties getProperties()
- Specified by:
getPropertiesin interfaceio.annot8.core.helpers.WithProperties
-
setProperties
public void setProperties(io.annot8.core.properties.ImmutableProperties properties)
-
getType
public java.lang.String getType()
- Specified by:
getTypein interfaceio.annot8.core.helpers.WithType
-
setType
public void setType(java.lang.String type)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-