- 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 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 Summary
Constructors Constructor Description TestAnnotation()TestAnnotation(String id, String content)TestAnnotation(String id, String content, String type)TestAnnotation(String id, String content, String type, io.annot8.core.bounds.Bounds bounds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)io.annot8.core.bounds.BoundsgetBounds()StringgetContentId()StringgetId()io.annot8.core.properties.ImmutablePropertiesgetProperties()StringgetType()inthashCode()voidsetBounds(io.annot8.core.bounds.Bounds bounds)voidsetContentId(String content)voidsetId(String id)voidsetProperties(io.annot8.core.properties.ImmutableProperties properties)voidsetType(String type)
-
-
-
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 String getContentId()
- Specified by:
getContentIdin interfaceio.annot8.core.annotations.Annotation
-
setContentId
public void setContentId(String content)
-
getId
public String getId()
- Specified by:
getIdin interfaceio.annot8.core.helpers.WithId
-
setId
public void setId(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 String getType()
- Specified by:
getTypein interfaceio.annot8.core.helpers.WithType
-
setType
public void setType(String type)
-
-