public abstract class Validator extends Object
| Constructor and Description |
|---|
Validator(Feed feed,
SQLErrorStorage errorStorage) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(ValidationResult validationResult)
This method will be called after the validation process is complete.
|
void |
registerError(Entity entity,
NewGTFSErrorType errorType)
Store an error that affects a single line of a single table.
|
void |
registerError(Entity entity,
NewGTFSErrorType errorType,
Object badValue)
Store an error that affects a single line of a single table.
|
void |
registerError(NewGTFSError error)
Basic storage of user-constructed error.
|
void |
storeErrors(Set<NewGTFSError> errors)
Stores a set of errors.
|
public Validator(Feed feed, SQLErrorStorage errorStorage)
public void registerError(Entity entity, NewGTFSErrorType errorType)
public void storeErrors(Set<NewGTFSError> errors)
public void registerError(Entity entity, NewGTFSErrorType errorType, Object badValue)
public void registerError(NewGTFSError error)
public void complete(ValidationResult validationResult)
Copyright © 2019. All rights reserved.