Class IndexColumnsValidator
- java.lang.Object
-
- org.alfresco.util.schemacomp.validator.NameValidator
-
- org.alfresco.util.schemacomp.validator.IndexColumnsValidator
-
- All Implemented Interfaces:
DbValidator
public class IndexColumnsValidator extends NameValidator
Validates columns names in a Index using a regular expression pattern.- Author:
- pavel.yurkevich
-
-
Constructor Summary
Constructors Constructor Description IndexColumnsValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(DbObject reference, DbObject target, DiffContext ctx)Validate the target database object (against the reference object if necessary).booleanvalidates(java.lang.String fieldName)Ask whether the database object's validator is responsible for validating the specified field name.-
Methods inherited from class org.alfresco.util.schemacomp.validator.NameValidator
getPattern, getProperty, getPropertyNames, setPattern, setProperty, validatesFullObject
-
-
-
-
Method Detail
-
validate
public void validate(DbObject reference, DbObject target, DiffContext ctx)
Description copied from interface:DbValidatorValidate the target database object (against the reference object if necessary). Store the validation results on the DiffContext.- Specified by:
validatein interfaceDbValidator- Overrides:
validatein classNameValidator- Parameters:
reference- DbObjecttarget- DbObjectctx- DiffContext
-
validates
public boolean validates(java.lang.String fieldName)
Description copied from interface:DbValidatorAsk whether the database object's validator is responsible for validating the specified field name. This only applies to simple properties - not DbObject instances which should provide their own validators.- Specified by:
validatesin interfaceDbValidator- Overrides:
validatesin classNameValidator- Parameters:
fieldName- String- Returns:
- boolean
-
-