Class Validator
java.lang.Object
com.logicaldoc.core.metadata.validation.Validator
- Direct Known Subclasses:
DocumentValidator
,FolderValidator
A Validator performs the checks on a generic
ExtensibleObject
- Since:
- 8.8.1
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(ExtensibleObject object, Template template, History transaction) Validates an object instance taking the validation logic from a given template
-
Constructor Details
-
Validator
public Validator()
-
-
Method Details
-
validate
public void validate(ExtensibleObject object, Template template, History transaction) throws ValidationException Validates an object instance taking the validation logic from a given template- Parameters:
object
- the instance to validatetemplate
- the template that contains the validation logictransaction
- the current transaction- Throws:
ValidationException
- in case of invalid object, this exception contains all the errors descriptions
-