Package org.kie.dmn.validation
Class DMNValidatorImpl.ValidatorBuilderImpl
- java.lang.Object
-
- org.kie.dmn.validation.DMNValidatorImpl.ValidatorBuilderImpl
-
- All Implemented Interfaces:
DMNValidator.ValidatorBuilder
- Enclosing class:
- DMNValidatorImpl
public static class DMNValidatorImpl.ValidatorBuilderImpl extends Object implements DMNValidator.ValidatorBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.kie.dmn.validation.DMNValidator.ValidatorBuilder
DMNValidator.ValidatorBuilder.ValidatorImportReaderResolver
-
-
Constructor Summary
Constructors Constructor Description ValidatorBuilderImpl(DMNValidatorImpl dmnValidatorImpl, DMNValidator.Validation[] options)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
ValidatorBuilderImpl
public ValidatorBuilderImpl(DMNValidatorImpl dmnValidatorImpl, DMNValidator.Validation[] options)
-
-
Method Detail
-
usingImports
public DMNValidator.ValidatorBuilder usingImports(DMNValidator.ValidatorBuilder.ValidatorImportReaderResolver r)
Description copied from interface:DMNValidator.ValidatorBuilderA 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.- Specified by:
usingImportsin interfaceDMNValidator.ValidatorBuilder- Returns:
- a reference to this, so the API can be used fluently
-
usingSchema
public DMNValidator.ValidatorBuilder usingSchema(Schema r)
Description copied from interface:DMNValidator.ValidatorBuilderA custom schema setup to be used forDMNValidator.Validation.VALIDATE_SCHEMA.- Specified by:
usingSchemain interfaceDMNValidator.ValidatorBuilder- Returns:
- a reference to this, so the API can be used fluently
-
theseModels
public List<org.kie.dmn.api.core.DMNMessage> theseModels(File... files)
Description copied from interface:DMNValidator.ValidatorBuilderValidate the models and return the results.- Specified by:
theseModelsin interfaceDMNValidator.ValidatorBuilder- 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...),DMNValidator.ValidatorBuilder.theseModels(Resource...)
-
theseModels
public List<org.kie.dmn.api.core.DMNMessage> theseModels(org.kie.api.io.Resource... resources)
Description copied from interface:DMNValidator.ValidatorBuilderValidate the models and return the results.- Specified by:
theseModelsin interfaceDMNValidator.ValidatorBuilder- 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
public List<org.kie.dmn.api.core.DMNMessage> theseModels(Reader... readers)
Description copied from interface:DMNValidator.ValidatorBuilderValidate the models and return the results.- Specified by:
theseModelsin interfaceDMNValidator.ValidatorBuilder- 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...),DMNValidator.ValidatorBuilder.theseModels(Resource...)
-
theseModels
public List<org.kie.dmn.api.core.DMNMessage> theseModels(org.kie.dmn.model.api.Definitions... models)
Description copied from interface:DMNValidator.ValidatorBuilderValidate the models and return the results.- Specified by:
theseModelsin interfaceDMNValidator.ValidatorBuilder- 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...)
-
-