Class RouteValidator
java.lang.Object
org.onebusaway.csv_entities.schema.AbstractEntityValidator
org.onebusaway.gtfs.serialization.mappings.RouteValidator
- All Implemented Interfaces:
EntityValidator
Checks that a
Route has either a Route.getShortName() or
Route.getLongName() specified. If neither is set, a
RouteNameException is thrown.- Author:
- bdferris
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidateEntity(CsvEntityContext context, Map<String, Object> csvValues, BeanWrapper object) Methods inherited from class org.onebusaway.csv_entities.schema.AbstractEntityValidator
getOrder, setOrder, validateCSV
-
Constructor Details
-
RouteValidator
public RouteValidator()
-
-
Method Details
-
validateEntity
public void validateEntity(CsvEntityContext context, Map<String, Object> csvValues, BeanWrapper object) - Specified by:
validateEntityin interfaceEntityValidator- Overrides:
validateEntityin classAbstractEntityValidator
-