public class IgnoreObjectValidator extends Object implements DbValidator
Constructor and Description |
---|
IgnoreObjectValidator() |
Modifier and Type | Method and Description |
---|---|
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 |
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)
DbValidator
validate
in interface DbValidator
reference
- DbObjecttarget
- DbObjectctx
- DiffContextpublic void setProperty(String name, String value)
DbValidator
setProperty
in interface DbValidator
name
- Stringvalue
- Stringpublic String getProperty(String name)
DbValidator
DbValidator.setProperty(String, String)
.getProperty
in interface DbValidator
name
- Stringpublic Set<String> getPropertyNames()
DbValidator
getPropertyNames
in interface DbValidator
public boolean validates(String fieldName)
DbValidator
validates
in interface DbValidator
fieldName
- Stringpublic boolean validatesFullObject()
DbValidator
validatesFullObject
in interface DbValidator
Copyright © 2005–2017 Alfresco Software. All rights reserved.