public class NewTripTimesValidator extends FeedValidator
| Constructor and Description |
|---|
NewTripTimesValidator(Feed feed,
SQLErrorStorage errorStorage) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(ValidationResult validationResult)
Completing this feed validator means completing each of its constituent trip validators.
|
protected static boolean |
fixMissingTimes(StopTime stopTime)
If the StopTime is missing one of arrival or departure time, copy from the other field.
|
protected static boolean |
missingBothTimes(StopTime stopTime) |
protected static boolean |
missingEitherTime(StopTime stopTime) |
void |
validate()
The main extension point.
|
registerError, registerError, registerError, storeErrorspublic NewTripTimesValidator(Feed feed, SQLErrorStorage errorStorage)
public void validate()
FeedValidatorvalidate in class FeedValidatorprotected static boolean missingEitherTime(StopTime stopTime)
protected static boolean missingBothTimes(StopTime stopTime)
protected static boolean fixMissingTimes(StopTime stopTime)
public void complete(ValidationResult validationResult)
Copyright © 2019. All rights reserved.