- java.lang.Object
-
- io.annot8.testing.testimpl.TestGroup
-
- All Implemented Interfaces:
io.annot8.core.annotations.Group,io.annot8.core.helpers.WithId,io.annot8.core.helpers.WithProperties,io.annot8.core.helpers.WithType
public class TestGroup extends java.lang.Object implements io.annot8.core.annotations.GroupA group implementation which provides convenience for unit testing.DO NOT USE THIS OUTSIDE A UNIT TEST.
It does not have the necessary correctness of implementation, as it stores annotation so changes to the annotation will not be reflected.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsAnnotation(io.annot8.core.annotations.Annotation annotation)booleanequals(java.lang.Object o)java.lang.StringgetId()io.annot8.core.properties.ImmutablePropertiesgetProperties()java.util.Map<java.lang.String,java.util.stream.Stream<io.annot8.core.references.AnnotationReference>>getReferences()java.util.Optional<java.lang.String>getRole(io.annot8.core.annotations.Annotation annotation)java.lang.StringgetType()inthashCode()voidsetAnnotations(java.util.Map<io.annot8.core.references.AnnotationReference,java.lang.String> annotations)voidsetId(java.lang.String id)voidsetProperties(io.annot8.core.properties.ImmutableProperties properties)voidsetType(java.lang.String type)
-
-
-
Method Detail
-
getReferences
public java.util.Map<java.lang.String,java.util.stream.Stream<io.annot8.core.references.AnnotationReference>> getReferences()
- Specified by:
getReferencesin interfaceio.annot8.core.annotations.Group
-
setAnnotations
public void setAnnotations(java.util.Map<io.annot8.core.references.AnnotationReference,java.lang.String> annotations)
-
getRole
public java.util.Optional<java.lang.String> getRole(io.annot8.core.annotations.Annotation annotation)
- Specified by:
getRolein interfaceio.annot8.core.annotations.Group
-
containsAnnotation
public boolean containsAnnotation(io.annot8.core.annotations.Annotation annotation)
- Specified by:
containsAnnotationin interfaceio.annot8.core.annotations.Group
-
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
-
-