public class NameValidator extends java.lang.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 |
|---|---|
java.util.regex.Pattern |
getPattern() |
java.lang.String |
getProperty(java.lang.String name)
Get the current value of a validator property, as set using
DbValidator.setProperty(String, String). |
java.util.Set |
getPropertyNames()
Get the complete set of validator properties in use.
|
void |
setPattern(java.util.regex.Pattern pattern) |
void |
setProperty(java.lang.String name,
java.lang.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(java.lang.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 DbValidatorpublic void setPattern(java.util.regex.Pattern pattern)
public java.util.regex.Pattern getPattern()
public void setProperty(java.lang.String name,
java.lang.String value)
DbValidatorsetProperty in interface DbValidatorpublic java.lang.String getProperty(java.lang.String name)
DbValidatorDbValidator.setProperty(String, String).getProperty in interface DbValidatorpublic java.util.Set getPropertyNames()
DbValidatorgetPropertyNames in interface DbValidatorpublic boolean validates(java.lang.String fieldName)
DbValidatorvalidates in interface DbValidatorpublic boolean validatesFullObject()
DbValidatorvalidatesFullObject in interface DbValidatorCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.