Class 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 Detail

      • AnnotationCapability

        public AnnotationCapability​(String type,
                                    Class<? extends Bounds> bounds,
                                    boolean optional)
        Create from fields
        Parameters:
        type - the annotation type
        bounds - the annotation bounds
        optional - whether the above are required (processing specific)
    • 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
      • hashCode

        public int hashCode​()
        Overrides:
        hashCode in class Object