public class DMNValidatorImpl extends Object implements DMNValidator
| Modifier and Type | Class and Description |
|---|---|
static class |
DMNValidatorImpl.ValidatorBuilderImpl |
DMNValidator.Validation, DMNValidator.ValidatorBuilder| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
DMNValidatorImpl(List<DMNProfile> dmnProfiles) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Release all resources associated with this DMNValidator.
|
List<org.kie.dmn.api.core.DMNMessage> |
validate(org.kie.dmn.model.api.Definitions dmnModel)
Validate the model and return the results.
|
List<org.kie.dmn.api.core.DMNMessage> |
validate(org.kie.dmn.model.api.Definitions dmnModel,
DMNValidator.Validation... options)
Validate the model and return the results.
|
List<org.kie.dmn.api.core.DMNMessage> |
validate(File xmlFile)
Validate the model and return the results.
|
List<org.kie.dmn.api.core.DMNMessage> |
validate(File xmlFile,
DMNValidator.Validation... options)
Validate the model and return the results.
|
List<org.kie.dmn.api.core.DMNMessage> |
validate(Reader reader)
Validate the model and return the results.
|
List<org.kie.dmn.api.core.DMNMessage> |
validate(Reader reader,
DMNValidator.Validation... options)
Validate the model and return the results.
|
DMNValidator.ValidatorBuilder |
validateUsing(DMNValidator.Validation... options)
Fluent interface to validate several models using the specified options.
|
public DMNValidatorImpl(List<DMNProfile> dmnProfiles)
public void dispose()
DMNValidatordispose in interface DMNValidatorpublic DMNValidator.ValidatorBuilder validateUsing(DMNValidator.Validation... options)
DMNValidatorvalidateUsing( VALIDATE_MODEL, VALIDATE_COMPILATION ).theseModels(reader0, reader1)validateUsing in interface DMNValidatoroptions - selects which validations to applypublic List<org.kie.dmn.api.core.DMNMessage> validate(org.kie.dmn.model.api.Definitions dmnModel)
DMNValidatorvalidate in interface DMNValidatordmnModel - the model to validatepublic List<org.kie.dmn.api.core.DMNMessage> validate(org.kie.dmn.model.api.Definitions dmnModel, DMNValidator.Validation... options)
DMNValidatorvalidate( dmnModel, VALIDATE_MODEL, VALIDATE_COMPILATION )
IMPORTANT: this method does not support VALIDATE_SCHEMA. In
order to validate the schema, please use one of the other signatures
of this method, like @{link #validate(Reader reader, Validation... options)}.validate in interface DMNValidatordmnModel - the model to validateoptions - selects which validations to applypublic List<org.kie.dmn.api.core.DMNMessage> validate(File xmlFile)
DMNValidatorvalidate in interface DMNValidatorxmlFile - the file to validatepublic List<org.kie.dmn.api.core.DMNMessage> validate(File xmlFile, DMNValidator.Validation... options)
DMNValidatorvalidate( xmlFile, VALIDATE_MODEL, VALIDATE_COMPILATION )validate in interface DMNValidatorxmlFile - the model to validateoptions - selects which validations to applypublic List<org.kie.dmn.api.core.DMNMessage> validate(Reader reader)
DMNValidatorvalidate in interface DMNValidatorreader - a reader for the model to validatepublic List<org.kie.dmn.api.core.DMNMessage> validate(Reader reader, DMNValidator.Validation... options)
DMNValidatorvalidate( reader, VALIDATE_MODEL, VALIDATE_COMPILATION )validate in interface DMNValidatorreader - the model to validateoptions - selects which validations to applyCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.