public class DefaultValidationResultItem extends Object implements ValidationResultItem
ValidationResultItem that keeps internal state for the result item.| Constructor and Description |
|---|
DefaultValidationResultItem(List<ComponentAst> components,
List<ComponentParameterAst> parameters,
Validation validation,
String message,
Map<String,String> additionalData,
boolean causedByDynamicArtifact) |
| 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. |
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() |
public DefaultValidationResultItem(List<ComponentAst> components, List<ComponentParameterAst> parameters, Validation validation, String message, Map<String,String> additionalData, boolean causedByDynamicArtifact)
public List<ComponentAst> getComponents()
getComponents in interface ValidationResultItempublic List<ComponentParameterAst> getParameters()
getParameters in interface ValidationResultItempublic Validation getValidation()
getValidation in interface ValidationResultItempublic String getMessage()
getMessage in interface ValidationResultItempublic Map<String,String> getAdditionalData()
ValidationResultItemgetAdditionalData in interface ValidationResultItempublic boolean causedByDynamicArtifact()
ValidationResultItemValidationResultItem 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.causedByDynamicArtifact in interface ValidationResultItemtrue if this ValidationResultItem is caused by a dynamic element in the artifact.Copyright © 2022 MuleSoft, Inc.. All rights reserved.