- java.lang.Object
-
- io.annot8.core.capabilities.AnnotationCapability
-
public class AnnotationCapability extends Object
Specification for annotation created, processed or deleted by a component.Note that optional will be set to true for create and delete operations. This reflects that typically we may or may not create/delete elements, even if all the prerequisites are met.
-
-
Constructor Summary
Constructors Constructor Description AnnotationCapability(CreatesAnnotation annotation)Create fromCreatesAnnotationAnnotationCapability(DeletesAnnotation annotation)Create fromDeletesAnnotationAnnotationCapability(ProcessesAnnotation annotation)Create fromProcessesAnnotationAnnotationCapability(String type, Class<? extends Bounds> bounds, boolean optional)Create from fields
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Class<? extends Bounds>getBounds()Get the bounds created/deleted/processedStringgetType()Get the annotation type created/deleted/processedinthashCode()booleanisOptional()Is the annotation defined by this object optionally (required for processing, created, deleted)
-
-
-
Constructor Detail
-
AnnotationCapability
public AnnotationCapability(CreatesAnnotation annotation)
Create fromCreatesAnnotation- Parameters:
annotation- the annotation
-
AnnotationCapability
public AnnotationCapability(DeletesAnnotation annotation)
Create fromDeletesAnnotation- Parameters:
annotation- the annotation
-
AnnotationCapability
public AnnotationCapability(ProcessesAnnotation annotation)
Create fromProcessesAnnotation- Parameters:
annotation- the annotation
-
-
Method Detail
-
getType
public String getType()
Get the annotation type created/deleted/processed- Returns:
- annotation type
-
getBounds
public Class<? extends Bounds> getBounds()
Get the bounds created/deleted/processed- Returns:
- the class of bounds
-
isOptional
public boolean isOptional()
Is the annotation defined by this object optionally (required for processing, created, deleted)- Returns:
- true if optional
-
-