Package org.kie.dmn.validation
Interface DMNValidator.ValidatorBuilder
-
- All Known Implementing Classes:
DMNValidatorImpl.ValidatorBuilderImpl
- Enclosing interface:
- DMNValidator
public static interface DMNValidator.ValidatorBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDMNValidator.ValidatorBuilder.ValidatorImportReaderResolver
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<org.kie.dmn.api.core.DMNMessage>theseModels(File... files)Validate the models and return the results.List<org.kie.dmn.api.core.DMNMessage>theseModels(Reader... readers)Validate the models and return the results.List<org.kie.dmn.api.core.DMNMessage>theseModels(org.kie.api.io.Resource... resources)Validate the models and return the results.List<org.kie.dmn.api.core.DMNMessage>theseModels(org.kie.dmn.model.api.Definitions... models)Validate the models and return the results.DMNValidator.ValidatorBuilderusingImports(DMNValidator.ValidatorBuilder.ValidatorImportReaderResolver r)A DMN Import Reader resolver, when using the Validator toDMNValidator.Validation.VALIDATE_COMPILATIONand the compilation requires to resolve non-DMN models by means of the Import's locationURI.DMNValidator.ValidatorBuilderusingSchema(Schema r)A custom schema setup to be used forDMNValidator.Validation.VALIDATE_SCHEMA.
-
-
-
Method Detail
-
usingImports
DMNValidator.ValidatorBuilder usingImports(DMNValidator.ValidatorBuilder.ValidatorImportReaderResolver r)
A DMN Import Reader resolver, when using the Validator toDMNValidator.Validation.VALIDATE_COMPILATIONand the compilation requires to resolve non-DMN models by means of the Import's locationURI.- Returns:
- a reference to this, so the API can be used fluently
-
usingSchema
DMNValidator.ValidatorBuilder usingSchema(Schema r)
A custom schema setup to be used forDMNValidator.Validation.VALIDATE_SCHEMA.- Returns:
- a reference to this, so the API can be used fluently
-
theseModels
List<org.kie.dmn.api.core.DMNMessage> theseModels(File... files)
Validate the models and return the results.- Parameters:
files- the DMN models to validate- Returns:
- returns a list of messages from the validation, or an empty list otherwise.
- See Also:
DMNValidator.validateUsing(Validation...),theseModels(Resource...)
-
theseModels
List<org.kie.dmn.api.core.DMNMessage> theseModels(Reader... readers)
Validate the models and return the results.- Parameters:
readers- the DMN models to validate- Returns:
- returns a list of messages from the validation, or an empty list otherwise.
- See Also:
DMNValidator.validateUsing(Validation...),theseModels(Resource...)
-
theseModels
List<org.kie.dmn.api.core.DMNMessage> theseModels(org.kie.api.io.Resource... resources)
Validate the models and return the results.- Parameters:
resources- theResourcecontaining the DMN models to validate- Returns:
- returns a list of messages from the validation, or an empty list otherwise.
- See Also:
DMNValidator.validateUsing(Validation...)
-
theseModels
List<org.kie.dmn.api.core.DMNMessage> theseModels(org.kie.dmn.model.api.Definitions... models)
Validate the models and return the results.- Parameters:
models- the DMN models to validate- Returns:
- returns a list of messages from the validation, or an empty list otherwise.
- See Also:
DMNValidator.validateUsing(Validation...)
-
-