public class AbstractAnnotationProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
CAMEL_CASE_PATTERN |
protected static Pattern |
CORE_PACKAGE_PATTERN |
protected String |
extensionClassFullName |
protected static Pattern |
PARAMETER_NAME_PATTERN |
| Constructor and Description |
|---|
AbstractAnnotationProcessor(String extensionClassFullName) |
| Modifier and Type | Method and Description |
|---|---|
void |
basicParameterValidation(String name,
String description,
String namespace)
Basic @Extension annotation elements validation.
|
void |
examplesValidation(Example[] examples)
This method uses for validate @Extension / @Example elements.
|
void |
parameterValidation(Parameter[] parameters)
This method uses for validate @Extension / @Parameter element.
|
void |
returnAttributesValidation(ReturnAttribute[] returnAttributes)
This method uses for validate @Extension / @ReturnAttribute elements.
|
void |
systemParametersValidation(SystemParameter[] systemParameters)
This method uses for validate @Extension / @SystemParameter elements.
|
protected static final Pattern CORE_PACKAGE_PATTERN
protected static final Pattern PARAMETER_NAME_PATTERN
protected static final Pattern CAMEL_CASE_PATTERN
protected String extensionClassFullName
public AbstractAnnotationProcessor(String extensionClassFullName)
public void basicParameterValidation(String name, String description, String namespace) throws AnnotationValidationException
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.AnnotationValidationException - whenever if the validate rule violate, throws the annotation validate
exception with proper message.public void parameterValidation(Parameter[] parameters) throws AnnotationValidationException
parameters - parameter array which needs to be validate.AnnotationValidationException - whenever if the validate rule violate, throws the annotation validate
exception with proper message.public void returnAttributesValidation(ReturnAttribute[] returnAttributes) throws AnnotationValidationException
returnAttributes - returnA attributes array which needs to be validate.AnnotationValidationException - whenever if the validate rule violate, throws the annotation validate
exception with proper message.public void systemParametersValidation(SystemParameter[] systemParameters) throws AnnotationValidationException
systemParameters - system property array which needs to be validate.AnnotationValidationException - whenever if the validate rule violate, throws the annotation validate
exception with proper message.public void examplesValidation(Example[] examples) throws AnnotationValidationException
examples - examples array which needs to be validate.AnnotationValidationException - whenever if the validate rule violate, throws the annotation validate
exception with proper message.Copyright © 2017 WSO2. All rights reserved.