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

      • ContentCapability

        public ContentCapability​(CreatesContent annotation)
        Create from CreatesContent
        Parameters:
        annotation - specification
      • ContentCapability

        public ContentCapability​(DeletesContent annotation)
        Create from DeletesContent
        Parameters:
        annotation - specification
      • ContentCapability

        public ContentCapability​(Class<? extends Content<?>> type,
                                 boolean optional)
        Create from details
        Parameters:
        type - the resource type
        optional - true if the resource optional
    • Method Detail

      • getType

        public Class<? extends Content<?>> getType​()
        Get the content type created/deleted/processed
        Returns:
        content type
      • isOptional

        public boolean isOptional​()
        Is the content defined by this object optionally (required for processing, created, deleted)
        Returns:
        true if optional
      • hashCode

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