Package org.kie.dmn.validation
Class DMNValidatorImpl
java.lang.Object
org.kie.dmn.validation.DMNValidatorImpl
- All Implemented Interfaces:
DMNValidator
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.kie.dmn.validation.DMNValidator
DMNValidator.Validation, DMNValidator.ValidatorBuilder -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDMNValidatorImpl(ClassLoader cl, List<DMNProfile> dmnProfiles, Properties p) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Release all resources associated with this DMNValidator.voidsetOverrideSchema(Schema overrideSchema) Validate the model and return the results.validate(File xmlFile, DMNValidator.Validation... options) Validate the model and return the results.Validate the model and return the results.validate(Reader reader, DMNValidator.Validation... options) Validate the model and return the results.Validate the model and return the results.validate(Resource resource, DMNValidator.Validation... options) Validate the model and return the results.validate(Definitions dmnModel) Validate the model and return the results.validate(Definitions dmnModel, DMNValidator.Validation... options) Validate the model and return the results.validateUsing(DMNValidator.Validation... options) Fluent interface to validate several models using the specified options.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
DMNValidatorImpl
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:DMNValidatorRelease all resources associated with this DMNValidator.- Specified by:
disposein interfaceDMNValidator
-
getOverrideSchema
-
setOverrideSchema
-
validateUsing
Description copied from interface:DMNValidatorFluent interface to validate several models using the specified options. This API is specifically designed to validate Models which DMN-Import other DMN Models. The options field defines which validations to apply. E.g.:validateUsing( VALIDATE_MODEL, VALIDATE_COMPILATION ).theseModels(reader0, reader1)- Specified by:
validateUsingin interfaceDMNValidator- Parameters:
options- selects which validations to apply- Returns:
- a fluent interface builder to validate several models with.
-
validate
Description copied from interface:DMNValidatorValidate the model and return the results. This is the same as invoking method- Specified by:
validatein interfaceDMNValidator- Parameters:
dmnModel- the model to validate- Returns:
- returns a list of messages from the validation, or an empty list otherwise.
-
validate
Description copied from interface:DMNValidatorValidate the model and return the results. The options field defines which validations to apply. E.g.: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)}.- Specified by:
validatein interfaceDMNValidator- Parameters:
dmnModel- the model to validateoptions- selects which validations to apply- Returns:
- returns a list of messages from the validation, or an empty list otherwise.
-
validate
Description copied from interface:DMNValidatorValidate the model and return the results. This is the same as invoking method- Specified by:
validatein interfaceDMNValidator- Parameters:
xmlFile- the file to validate- Returns:
- returns a list of messages from the validation, or an empty list otherwise.
- See Also:
-
validate
Description copied from interface:DMNValidatorValidate the model and return the results. The options field defines which validations to apply. E.g.:validate( xmlFile, VALIDATE_MODEL, VALIDATE_COMPILATION )- Specified by:
validatein interfaceDMNValidator- Parameters:
xmlFile- the model to validateoptions- selects which validations to apply- Returns:
- returns a list of messages from the validation, or an empty list otherwise.
- See Also:
-
validate
Description copied from interface:DMNValidatorValidate the model and return the results. This is the same as invoking method- Specified by:
validatein interfaceDMNValidator- Parameters:
reader- a reader for the model to validate- Returns:
- returns a list of messages from the validation, or an empty list otherwise.
- See Also:
-
validate
Description copied from interface:DMNValidatorValidate the model and return the results. The options field defines which validations to apply. E.g.:validate( reader, VALIDATE_MODEL, VALIDATE_COMPILATION )- Specified by:
validatein interfaceDMNValidator- Parameters:
reader- the model to validateoptions- selects which validations to apply- Returns:
- returns a list of messages from the validation, or an empty list otherwise.
- See Also:
-
validate
Description copied from interface:DMNValidatorValidate the model and return the results. This is the same as invoking methodDMNValidator.validate(Resource, Validation...)with optionValidation.VALIDATE_MODEL- Specified by:
validatein interfaceDMNValidator- Returns:
- returns a list of messages from the validation, or an empty list otherwise.
-
validate
Description copied from interface:DMNValidatorValidate the model and return the results. The options field defines which validations to apply. E.g.:validate( resource, VALIDATE_MODEL, VALIDATE_COMPILATION )- Specified by:
validatein interfaceDMNValidator- Parameters:
resource- theResourcecontaining the DMN model to validateoptions- selects which validations to apply- Returns:
- returns a list of messages from the validation, or an empty list otherwise.
-