Class AbstractAnnotationProcessor

    • Field Detail

      • CORE_PACKAGE_PATTERN

        protected static final Pattern CORE_PACKAGE_PATTERN
      • PARAMETER_NAME_PATTERN

        protected static final Pattern PARAMETER_NAME_PATTERN
      • CAMEL_CASE_PATTERN

        protected static final Pattern CAMEL_CASE_PATTERN
      • extensionClassFullName

        protected String extensionClassFullName
    • Constructor Detail

      • AbstractAnnotationProcessor

        public AbstractAnnotationProcessor​(String extensionClassFullName)
    • Method Detail

      • basicParameterValidation

        public void basicParameterValidation​(String name,
                                             String description,
                                             String namespace)
                                      throws AnnotationValidationException
        Basic @Extension annotation elements validation.
        Parameters:
        name - name of the @Extension which needs to be validate.
        description - description of the @Extension which needs to be validate.
        namespace - namespace of the @Extension which needs to be validate.
        Throws:
        AnnotationValidationException - whenever if the validate rule violate, throws the annotation validate exception with proper message.
      • parameterValidation

        public void parameterValidation​(Parameter[] parameters)
                                 throws AnnotationValidationException
        This method uses for validate @Extension / @Parameter element.
        Parameters:
        parameters - parameter array which needs to be validate.
        Throws:
        AnnotationValidationException - whenever if the validate rule violate, throws the annotation validate exception with proper message.
      • parameterOverloadValidation

        public void parameterOverloadValidation​(ParameterOverload[] parameterOverloads,
                                                Parameter[] parameters)
                                         throws AnnotationValidationException
        This method uses for validate @Extension / @ParameterOverload element.
        Parameters:
        parameterOverloads - parameter array which needs to be validate.
        parameters - the set of supported parameters
        Throws:
        AnnotationValidationException - whenever if the validate rule violate, throws the annotation validate exception with proper message.
      • returnAttributesValidation

        public void returnAttributesValidation​(ReturnAttribute[] returnAttributes)
                                        throws AnnotationValidationException
        This method uses for validate @Extension / @ReturnAttribute elements.
        Parameters:
        returnAttributes - returnA attributes array which needs to be validate.
        Throws:
        AnnotationValidationException - whenever if the validate rule violate, throws the annotation validate exception with proper message.
      • systemParametersValidation

        public void systemParametersValidation​(SystemParameter[] systemParameters)
                                        throws AnnotationValidationException
        This method uses for validate @Extension / @SystemParameter elements.
        Parameters:
        systemParameters - system property array which needs to be validate.
        Throws:
        AnnotationValidationException - whenever if the validate rule violate, throws the annotation validate exception with proper message.
      • examplesValidation

        public void examplesValidation​(Example[] examples)
                                throws AnnotationValidationException
        This method uses for validate @Extension / @Example elements.
        Parameters:
        examples - examples array which needs to be validate.
        Throws:
        AnnotationValidationException - whenever if the validate rule violate, throws the annotation validate exception with proper message.