@NoImplement
public interface ValidationResultItem
| Modifier and Type | Method and Description |
|---|---|
boolean |
causedByDynamicArtifact()
Determines if this
ValidationResultItem is caused by a dynamic element in the artifact, which would prevent the
creation of the complete ArtifactAst. |
static ValidationResultItem |
create(ComponentAst component,
ComponentParameterAst parameter,
Validation validation,
String message) |
static ValidationResultItem |
create(ComponentAst component,
ComponentParameterAst parameter,
Validation validation,
String message,
Map<String,String> additionalData) |
static ValidationResultItem |
create(ComponentAst component,
List<ComponentParameterAst> parameters,
Validation validation,
String message) |
static ValidationResultItem |
create(ComponentAst component,
List<ComponentParameterAst> parameters,
Validation validation,
String message,
boolean causedByDynamicArtifact) |
static ValidationResultItem |
create(ComponentAst component,
List<ComponentParameterAst> parameters,
Validation validation,
String message,
Map<String,String> additionalData) |
static ValidationResultItem |
create(ComponentAst component,
List<ComponentParameterAst> parameters,
Validation validation,
String message,
Map<String,String> additionalData,
boolean causedByDynamicArtifact) |
static ValidationResultItem |
create(ComponentAst component,
Validation validation,
String message) |
static ValidationResultItem |
create(ComponentAst component,
Validation validation,
String message,
boolean causedByDynamicArtifact) |
static ValidationResultItem |
create(List<ComponentAst> components,
List<ComponentParameterAst> parameters,
Validation validation,
String message) |
static ValidationResultItem |
create(List<ComponentAst> components,
List<ComponentParameterAst> parameters,
Validation validation,
String message,
Map<String,String> additionalData) |
static ValidationResultItem |
create(List<ComponentAst> components,
Validation validation,
String message) |
Map<String,String> |
getAdditionalData()
Any additional data provided by the actual validation, providing context for this item (for instance, in the case of
validation on parameter values, it may contain an entry indication in which character of the value the validation error was
found).
|
List<ComponentAst> |
getComponents() |
String |
getMessage() |
List<ComponentParameterAst> |
getParameters() |
Validation |
getValidation() |
static ValidationResultItem create(ComponentAst component, Validation validation, String message)
component - the component this validation result applies to.validation - the validation that failed.message - the message explaining the reason of the validation failure.static ValidationResultItem create(ComponentAst component, Validation validation, String message, boolean causedByDynamicArtifact)
component - the component this validation result applies to.validation - the validation that failed.message - the message explaining the reason of the validation failure.causedByDynamicArtifact - true if this ValidationResultItem is caused by a dynamic element in the
artifact.static ValidationResultItem create(ComponentAst component, ComponentParameterAst parameter, Validation validation, String message)
component - the component this validation result applies to.parameter - the parameter from the component this validation result applies to.validation - the validation that failed.message - the message explaining the reason of the validation failure.static ValidationResultItem create(ComponentAst component, List<ComponentParameterAst> parameters, Validation validation, String message)
component - the component this validation result applies to.parameters - the parameters from the component this validation result applies to.validation - the validation that failed.message - the message explaining the reason of the validation failure.static ValidationResultItem create(ComponentAst component, List<ComponentParameterAst> parameters, Validation validation, String message, boolean causedByDynamicArtifact)
component - the component this validation result applies to.parameters - the parameters from the component this validation result applies to.validation - the validation that failed.message - the message explaining the reason of the validation failure.causedByDynamicArtifact - true if this ValidationResultItem is caused by a dynamic element in the
artifact.static ValidationResultItem create(ComponentAst component, ComponentParameterAst parameter, Validation validation, String message, Map<String,String> additionalData)
component - the component this validation result applies to.parameter - the parameter from the component this validation result applies to.validation - the validation that failed.message - the message explaining the reason of the validation failure.additionalData - additional data provided by the actual validation.static ValidationResultItem create(ComponentAst component, List<ComponentParameterAst> parameters, Validation validation, String message, Map<String,String> additionalData)
component - the component this validation result applies to.parameters - the parameters from the component this validation result applies to.validation - the validation that failed.message - the message explaining the reason of the validation failure.additionalData - additional data provided by the actual validation.static ValidationResultItem create(ComponentAst component, List<ComponentParameterAst> parameters, Validation validation, String message, Map<String,String> additionalData, boolean causedByDynamicArtifact)
component - the component this validation result applies to.parameters - the parameters from the component this validation result applies to.validation - the validation that failed.message - the message explaining the reason of the validation failure.additionalData - additional data provided by the actual validation.causedByDynamicArtifact - true if this ValidationResultItem is caused by a dynamic element in the
artifact.static ValidationResultItem create(List<ComponentAst> components, Validation validation, String message)
components - the components this validation result applies to.validation - the validation that failed.message - the message explaining the reason of the validation failure.static ValidationResultItem create(List<ComponentAst> components, List<ComponentParameterAst> parameters, Validation validation, String message)
components - the components this validation result applies to.parameters - the parameters from the components this validation result applies to.validation - the validation that failed.message - the message explaining the reason of the validation failure.static ValidationResultItem create(List<ComponentAst> components, List<ComponentParameterAst> parameters, Validation validation, String message, Map<String,String> additionalData)
components - the components this validation result applies to.parameters - the parameters from the components this validation result applies to.validation - the validation that failed.message - the message explaining the reason of the validation failure.additionalData - additional data provided by the actual validation.List<ComponentAst> getComponents()
List<ComponentParameterAst> getParameters()
Validation getValidation()
String getMessage()
Map<String,String> getAdditionalData()
boolean causedByDynamicArtifact()
ValidationResultItem is caused by a dynamic element in the artifact, which would prevent the
creation of the complete ArtifactAst.
For instance, if an `import` element references a file with a property, i.e:
<import file="config-${someProperty}.xml" />
and that property is configured in runtime, there is no way before deployment to runtime to generate the expected AST.true if this ValidationResultItem is caused by a dynamic element in the artifact.Copyright © 2023 MuleSoft, Inc.. All rights reserved.