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 Details

    • SchemaVersionValidator

      public SchemaVersionValidator()
  • Method Details

    • validate

      public void validate(DbObject referenceObj, DbObject targetObj, DiffContext ctx)
      Description copied from interface: DbValidator
      Validate the target database object (against the reference object if necessary). Store the validation results on the DiffContext.
      Parameters:
      referenceObj - DbObject
      targetObj - DbObject
      ctx - DiffContext