public class NameValidator extends Object implements DbValidator
database dialect. In addition to
dialect specific regular expressions, a default may be supplied - comparisons will fall
back to the default if no specific dialect is matched.| Constructor and Description |
|---|
NameValidator() |
| Modifier and Type | Method and Description |
|---|---|
Pattern |
getPattern() |
String |
getProperty(String name)
Get the current value of a validator property, as set using
DbValidator.setProperty(String, String). |
Set<String> |
getPropertyNames()
Get the complete set of validator properties in use.
|
void |
setPattern(Pattern pattern) |
void |
setProperty(String name,
String value)
Set a property used by this validator.
|
void |
validate(DbObject reference,
DbObject target,
DiffContext ctx)
Validate the target database object (against the reference object if necessary).
|
boolean |
validates(String fieldName)
Ask whether the database object's validator is responsible for validating
the specified field name.
|
boolean |
validatesFullObject()
Asks whether the database object's validator is responsible for validating
the entire DbObject.
|
public void validate(DbObject reference, DbObject target, DiffContext ctx)
DbValidatorvalidate in interface DbValidatorreference - DbObjecttarget - DbObjectctx - DiffContextpublic void setPattern(Pattern pattern)
public Pattern getPattern()
public void setProperty(String name, String value)
DbValidatorsetProperty in interface DbValidatorname - Stringvalue - Stringpublic String getProperty(String name)
DbValidatorDbValidator.setProperty(String, String).getProperty in interface DbValidatorname - Stringpublic Set<String> getPropertyNames()
DbValidatorgetPropertyNames in interface DbValidatorpublic boolean validates(String fieldName)
DbValidatorvalidates in interface DbValidatorfieldName - Stringpublic boolean validatesFullObject()
DbValidatorvalidatesFullObject in interface DbValidatorCopyright © 2005–2018 Alfresco Software. All rights reserved.