Class Validator
- java.lang.Object
-
- com.logicaldoc.core.metadata.validation.Validator
-
- Direct Known Subclasses:
DocumentValidator,FolderValidator
public class Validator extends Object
A Validator performs the checks on a genericExtensibleObject- Since:
- 8.8.1
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description Validator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(ExtensibleObject object, Template template, History transaction)Validates an object instance taking the validation logic from a given template
-
-
-
Method Detail
-
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
-
-