Option enableValidation

Features

Feature Condition Description
ApplicationValidate application.components.exists(:[ #this.getOption('enableValidation').defined ]) Injects features related to validation into application level expanders.
ComponentValidate component.getOption('enableValidation').defined Injects features related to validation into component level expanders.
ComponentValidateRest component.getOption('enableValidation').defined and component.getOption('enableJaxrs').defined Expands validation related features for REST at the component level.
EjbValidate dataElement.component.getOption('enableValidation').defined Based on the EjbPolicy setting, validation beans will have a Remote of Local interface or both
ElementValidate dataElement.component.getOption('enableValidation').defined Injects features related to validation into DataElement level expanders.
ElementValidateRest dataElement.component.getOption('enableValidation').defined and dataElement.component.getOption('enableJaxrs').defined and dataElement.getOption('includeJaxrsConnector').defined Injects code for validation into every endpoint in a JAX-RS connector class.
ValidateCreate dataElement.component.getOption('enableValidation').defined and dataElement.component.getOption('enableJaxrs').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePostEndpoint').defined and !dataElement.dataCommands.{^ #this.name.equals('create' + dataElement.name) }.empty Injects the call to the CreateValidationCommand into the CreateCommandExtension.
ValidateModify dataElement.component.getOption('enableValidation').defined and dataElement.component.getOption('enableJaxrs').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePutEndpoint').defined and !dataElement.dataCommands.{^ #this.name.equals('modify' + dataElement.name) }.empty Injects the call to the ModifyValidationCommand into the ModifyCommandExtension.
ValidateRemove dataElement.component.getOption('enableValidation').defined and dataElement.component.getOption('enableJaxrs').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposeDeleteEndpoint').defined and !dataElement.dataCommands.{^ #this.name.equals('remove' + dataElement.name) }.empty Injects the call to the RemoveValidationCommand into the RemoveCommandExtension.
ValidateUpdate dataElement.component.getOption('enableValidation').defined and dataElement.component.getOption('enableJaxrs').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePatchEndpoint').defined and !dataElement.dataCommands.{^ #this.name.equals('update' + dataElement.name) }.empty Injects the call to the UpdateValidationCommand into the UpdateCommandExtension.

Expanders

Expander Type Artifact Condition
CreateElementValidationCommandExpander DataElement Create$dataElement.name$ValidationCommand.java dataElement.component.getOption('enableValidation').defined and dataElement.component.getOption('enableJaxrs').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePostEndpoint').defined and !dataElement.dataCommands.{^ #this.name.equals('create' + dataElement.name) }.empty
DatabaseValidatorExpander Component DatabaseValidator.java component.getOption('enableValidation').defined
ElementCommonDataValidatorExpander DataElement $dataElement.name$CommonDataValidator.java dataElement.component.getOption('enableJaxrs').defined and dataElement.component.getOption('enableValidation').defined and dataElement.component.getOption('enableJaxrs').defined and dataElement.getOption('includeJaxrsConnector').defined
ElementCreateDataValidatorExpander DataElement $dataElement.name$CreateDataValidator.java dataElement.component.getOption('enableJaxrs').defined and dataElement.component.getOption('enableValidation').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePostEndpoint').defined and !dataElement.dataCommands.{^ #this.name.equals('create' + dataElement.name) }.empty
ElementModifyDataValidatorExpander DataElement $dataElement.name$ModifyDataValidator.java dataElement.component.getOption('enableJaxrs').defined and dataElement.component.getOption('enableValidation').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePutEndpoint').defined and !dataElement.dataCommands.{^ #this.name.equals('modify' + dataElement.name) }.empty
ElementPatchInputValidatorExpander DataElement $dataElement.name$PatchInputValidator.java dataElement.component.getOption('enableJaxrs').defined and dataElement.component.getOption('enableValidation').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePatchEndpoint').defined
ElementPostInputValidatorExpander DataElement $dataElement.name$PostInputValidator.java dataElement.component.getOption('enableJaxrs').defined and dataElement.component.getOption('enableValidation').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePostEndpoint').defined
ElementPutInputValidatorExpander DataElement $dataElement.name$PutInputValidator.java dataElement.component.getOption('enableJaxrs').defined and dataElement.component.getOption('enableValidation').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePutEndpoint').defined
ElementRemoveDataValidatorExpander DataElement $dataElement.name$RemoveDataValidator.java dataElement.component.getOption('enableJaxrs').defined and dataElement.component.getOption('enableValidation').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposeDeleteEndpoint').defined and !dataElement.dataCommands.{^ #this.name.equals('remove' + dataElement.name) }.empty
ElementUpdateDataValidatorExpander DataElement $dataElement.name$UpdateDataValidator.java dataElement.component.getOption('enableJaxrs').defined and dataElement.component.getOption('enableValidation').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePatchEndpoint').defined and !dataElement.dataCommands.{^ #this.name.equals('update' + dataElement.name) }.empty
ElementValidateUrlDetailsExpander DataElement $dataElement.name$ValidateUrlDetails.java dataElement.component.getOption('enableValidation').defined and dataElement.component.getOption('enableJaxrs').defined and dataElement.getOption('includeJaxrsConnector').defined
InputValidationExpander Component InputValidation.java component.getOption('enableValidation').defined
JSONExceptionHandlerExpander Component JSONExceptionHandler.java component.getOption('enableJaxrs').defined and component.getOption('enableValidation').defined
ModifyElementValidationCommandExpander DataElement Modify$dataElement.name$ValidationCommand.java dataElement.component.getOption('enableValidation').defined and dataElement.component.getOption('enableJaxrs').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePutEndpoint').defined and !dataElement.dataCommands.{^ #this.name.equals('modify' + dataElement.name) }.empty
PatchInputValidatorTestExpander DataElement $dataElement.name$PatchInputValidatorTest.java dataElement.component.getOption('enableJaxrs').defined and dataElement.component.getOption('enableValidation').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePatchEndpoint').defined
PostInputValidatorTestExpander DataElement $dataElement.name$PostInputValidatorTest.java dataElement.component.getOption('enableJaxrs').defined and dataElement.component.getOption('enableValidation').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePostEndpoint').defined
PutInputValidatorTestExpander DataElement $dataElement.name$PutInputValidatorTest.java dataElement.component.getOption('enableJaxrs').defined and dataElement.component.getOption('enableValidation').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePutEndpoint').defined
RemoveElementValidationCommandExpander DataElement Remove$dataElement.name$ValidationCommand.java dataElement.component.getOption('enableValidation').defined and dataElement.component.getOption('enableJaxrs').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposeDeleteEndpoint').defined and !dataElement.dataCommands.{^ #this.name.equals('remove' + dataElement.name) }.empty
ResourceNotFoundExceptionExpander Component ResourceNotFoundException.java component.getOption('enableJaxrs').defined and component.getOption('enableValidation').defined
ResourceNotFoundExceptionHandlerExpander Component ResourceNotFoundExceptionHandler.java component.getOption('enableJaxrs').defined and component.getOption('enableValidation').defined
UpdateElementValidationCommandExpander DataElement Update$dataElement.name$ValidationCommand.java dataElement.component.getOption('enableValidation').defined and dataElement.component.getOption('enableJaxrs').defined and dataElement.getOption('includeJaxrsConnector').defined and dataElement.getOption('exposePatchEndpoint').defined and !dataElement.dataCommands.{^ #this.name.equals('update' + dataElement.name) }.empty
ValidationBeanExpander DataElement $dataElement.name$ValidationBean.java dataElement.component.getOption('enableValidation').defined
ValidationDetailsExpander Component ValidationDetails.java component.getOption('enableValidation').defined
ValidationErrorExpander Component ValidationError.java component.getOption('enableValidation').defined
ValidationErrorMatchersExpander Component ValidationErrorMatchers.java component.getOption('enableJaxrs').defined and component.getOption('enableValidation').defined
ValidationErrorMessagesExpander Component ValidationErrorMessages.properties component.getOption('enableValidation').defined
ValidationErrorModelExpander Component ValidationErrorModel.java component.getOption('enableJaxrs').defined and component.getOption('enableValidation').defined
ValidationExceptionExpander Component ValidationException.java component.getOption('enableValidation').defined
ValidationExceptionHandlerExpander Component ValidationExceptionHandler.java component.getOption('enableJaxrs').defined and component.getOption('enableValidation').defined
ValidationFieldErrorExpander Component ValidationFieldError.java component.getOption('enableValidation').defined
ValidationLocalExpander DataElement $dataElement.name$ValidationLocal.java dataElement.component.getOption('enableValidation').defined and {'BOTH'}.contains(globalOptionSettings.beanInterfacePolicy)
ValidationResultExpander Component ValidationResult.java component.getOption('enableValidation').defined