public class CompareValidator extends Object implements Validator<Connection>
Modifier and Type | Field and Description |
---|---|
private CompareRequest |
compareRequest
Compare request to perform validation with.
|
protected Logger |
logger
Logger for this class.
|
Constructor and Description |
---|
CompareValidator()
Creates a new compare validator.
|
CompareValidator(CompareRequest cr)
Creates a new compare validator.
|
Modifier and Type | Method and Description |
---|---|
CompareRequest |
getCompareRequest()
Returns the compare request.
|
void |
setCompareRequest(CompareRequest cr)
Sets the compare request.
|
String |
toString() |
boolean |
validate(Connection c)
Validate the supplied object.
|
protected final Logger logger
private CompareRequest compareRequest
public CompareValidator()
public CompareValidator(CompareRequest cr)
cr
- to use for comparespublic CompareRequest getCompareRequest()
public void setCompareRequest(CompareRequest cr)
cr
- compare requestpublic boolean validate(Connection c)
Validator
validate
in interface Validator<Connection>
c
- objectCopyright © 2003-2019 Virginia Tech. All Rights Reserved.