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<org.kie.dmn.core.compiler.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<org.kie.dmn.core.compiler.DMNProfile> dmnProfiles)
public void dispose()
DMNValidator
dispose
in interface DMNValidator
public DMNValidator.ValidatorBuilder validateUsing(DMNValidator.Validation... options)
DMNValidator
validateUsing( VALIDATE_MODEL, VALIDATE_COMPILATION ).theseModels(reader0, reader1)
validateUsing
in interface DMNValidator
options
- selects which validations to applypublic List<org.kie.dmn.api.core.DMNMessage> validate(org.kie.dmn.model.api.Definitions dmnModel)
DMNValidator
validate
in interface DMNValidator
dmnModel
- the model to validatepublic List<org.kie.dmn.api.core.DMNMessage> validate(org.kie.dmn.model.api.Definitions dmnModel, DMNValidator.Validation... options)
DMNValidator
validate( 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 DMNValidator
dmnModel
- the model to validateoptions
- selects which validations to applypublic List<org.kie.dmn.api.core.DMNMessage> validate(File xmlFile)
DMNValidator
validate
in interface DMNValidator
xmlFile
- the file to validatepublic List<org.kie.dmn.api.core.DMNMessage> validate(File xmlFile, DMNValidator.Validation... options)
DMNValidator
validate( xmlFile, VALIDATE_MODEL, VALIDATE_COMPILATION )
validate
in interface DMNValidator
xmlFile
- the model to validateoptions
- selects which validations to applypublic List<org.kie.dmn.api.core.DMNMessage> validate(Reader reader)
DMNValidator
validate
in interface DMNValidator
reader
- a reader for the model to validatepublic List<org.kie.dmn.api.core.DMNMessage> validate(Reader reader, DMNValidator.Validation... options)
DMNValidator
validate( reader, VALIDATE_MODEL, VALIDATE_COMPILATION )
validate
in interface DMNValidator
reader
- the model to validateoptions
- selects which validations to applyCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.