public interface DbValidator
Modifier and Type | Method and Description |
---|---|
String |
getProperty(String name)
Get the current value of a validator property, as set using
setProperty(String, String) . |
Set<String> |
getPropertyNames()
Get the complete set of validator properties in use.
|
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.
|
void validate(DbObject reference, DbObject target, DiffContext ctx)
reference
- DbObjecttarget
- DbObjectctx
- DiffContextvoid setProperty(String name, String value)
name
- Stringvalue
- StringString getProperty(String name)
setProperty(String, String)
.name
- StringSet<String> getPropertyNames()
boolean validates(String fieldName)
fieldName
- Stringboolean validatesFullObject()
Copyright © 2005–2017 Alfresco Software. All rights reserved.