Class SchemaVersionValidator
- java.lang.Object
-
- org.alfresco.util.schemacomp.validator.AbstractDbValidator
-
- org.alfresco.util.schemacomp.validator.SchemaVersionValidator
-
- All Implemented Interfaces:
DbValidator
public class SchemaVersionValidator extends AbstractDbValidator
Validate a schema's version number with respect to a reference schema. For the target schema to pass validation its version number must be greater than or equal to the reference schema's version number.- Author:
- Matt Ward
-
-
Constructor Summary
Constructors Constructor Description SchemaVersionValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(DbObject referenceObj, DbObject targetObj, DiffContext ctx)Validate the target database object (against the reference object if necessary).-
Methods inherited from class org.alfresco.util.schemacomp.validator.AbstractDbValidator
addFieldToValidate, getProperty, getPropertyNames, setFieldsToValidate, setProperty, validates, validatesFullObject
-
-
-
-
Method Detail
-
validate
public void validate(DbObject referenceObj, DbObject targetObj, DiffContext ctx)
Description copied from interface:DbValidatorValidate the target database object (against the reference object if necessary). Store the validation results on the DiffContext.- Parameters:
referenceObj- DbObjecttargetObj- DbObjectctx- DiffContext
-
-