- java.lang.Object
-
- io.annot8.core.capabilities.ContentCapability
-
public class ContentCapability extends Object
Specification for content 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 ContentCapability(CreatesContent annotation)Create fromCreatesContentContentCapability(DeletesContent annotation)Create fromDeletesContentContentCapability(ProcessesContent annotation)Create fromProcessesContentContentCapability(Class<? extends Content<?>> type, boolean optional)Create from details
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Class<? extends Content<?>>getType()Get the content type created/deleted/processedinthashCode()booleanisOptional()Is the content defined by this object optionally (required for processing, created, deleted)
-
-
-
Constructor Detail
-
ContentCapability
public ContentCapability(CreatesContent annotation)
Create fromCreatesContent- Parameters:
annotation- specification
-
ContentCapability
public ContentCapability(DeletesContent annotation)
Create fromDeletesContent- Parameters:
annotation- specification
-
ContentCapability
public ContentCapability(ProcessesContent annotation)
Create fromProcessesContent- Parameters:
annotation- specification
-
-