public class DMNValidatorImpl extends Object implements DMNValidator
DMNValidator.Validation
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
DMNValidatorImpl() |
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.v1_1.Definitions dmnModel)
Validate the model and return the results.
|
List<org.kie.dmn.api.core.DMNMessage> |
validate(org.kie.dmn.model.v1_1.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.
|
public void dispose()
DMNValidator
dispose
in interface DMNValidator
public List<org.kie.dmn.api.core.DMNMessage> validate(org.kie.dmn.model.v1_1.Definitions dmnModel)
DMNValidator
validate
in interface DMNValidator
dmnModel
- the model to validatepublic List<org.kie.dmn.api.core.DMNMessage> validate(org.kie.dmn.model.v1_1.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–2018 JBoss by Red Hat. All rights reserved.