public class NewGTFSError extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
badValue |
String |
entityId
The id part of the unique key of the line containing the error (convenient but redundant info).
|
Integer |
entitySequenceNumber
The sequence number part of the unique key of the line containing the error (when needed for uniqueness).
|
Class<? extends Entity> |
entityType
The class of the table in which the error was encountered.
|
Map<String,String> |
errorInfo
Key-value pairs providing additional information about this error.
|
NewGTFSErrorType |
errorType
The kind of error encountered.
|
Integer |
lineNumber
The line of the GTFS table (one-based, including the header) on which the error was detected.
|
| Modifier and Type | Method and Description |
|---|---|
NewGTFSError |
addInfo(String key,
String value)
Add a single key-value pair of supplemental info to this error.
|
static NewGTFSError |
forEntity(Entity entity,
NewGTFSErrorType errorType) |
static NewGTFSError |
forFeed(NewGTFSErrorType errorType,
String badValue) |
static NewGTFSError |
forLine(Table table,
int lineNumber,
NewGTFSErrorType errorType,
String badValue) |
static NewGTFSError |
forTable(Table table,
NewGTFSErrorType errorType) |
NewGTFSError |
setBadValue(String badValue) |
NewGTFSError |
setEntityId(String entityId) |
NewGTFSError |
setSequence(String sequenceAsString) |
public Class<? extends Entity> entityType
public final NewGTFSErrorType errorType
public Map<String,String> errorInfo
public Integer lineNumber
public String entityId
public Integer entitySequenceNumber
public String badValue
public NewGTFSError addInfo(String key, String value)
public static NewGTFSError forLine(Table table, int lineNumber, NewGTFSErrorType errorType, String badValue)
public static NewGTFSError forEntity(Entity entity, NewGTFSErrorType errorType)
public static NewGTFSError forTable(Table table, NewGTFSErrorType errorType)
public static NewGTFSError forFeed(NewGTFSErrorType errorType, String badValue)
public NewGTFSError setBadValue(String badValue)
public NewGTFSError setEntityId(String entityId)
public NewGTFSError setSequence(String sequenceAsString)
Copyright © 2019. All rights reserved.