public class SearchValidator extends Object implements Validator<Connection>
Modifier and Type | Field and Description |
---|---|
private Logger |
logger
Logger for this class.
|
private SearchRequest |
searchRequest
Search request to perform validation with.
|
Constructor and Description |
---|
SearchValidator()
Creates a new search validator.
|
SearchValidator(SearchRequest sr)
Creates a new search validator.
|
Modifier and Type | Method and Description |
---|---|
SearchRequest |
getSearchRequest()
Returns the search request.
|
void |
setSearchRequest(SearchRequest sr)
Sets the search request.
|
String |
toString() |
boolean |
validate(Connection c)
Validate the supplied object.
|
private final Logger logger
private SearchRequest searchRequest
public SearchValidator()
public SearchValidator(SearchRequest sr)
sr
- to use for searchespublic SearchRequest getSearchRequest()
public void setSearchRequest(SearchRequest sr)
sr
- search requestpublic boolean validate(Connection c)
Validator
validate
in interface Validator<Connection>
c
- objectCopyright © 2003-2019 Virginia Tech. All Rights Reserved.