Package org.onebusaway.uk.parser

Examples of org.onebusaway.uk.parser.ParserException


      case 3:
        return ECategory.LARGE_INTERCHANGE;
      case 9:
        return ECategory.SUBSIDIARY;
      default:
        throw new ParserException("unknown category=" + value);
    }
  }
View Full Code Here


        converter.setVehicleType(7);
      } else {
        try {
          converter.setVehicleType(Integer.parseInt(value));
        } catch (NumberFormatException ex) {
          throw new ParserException("unknown vehicle type argument specified: "
              + value);
        }
      }
    }
    converter.setKeepStopsWithNoLocationInfo(cli.hasOption(ARG_KEEP_STOPS_WITH_NO_LOCATION_INFO));
View Full Code Here

        parseChangeEnRoute(handler);
        break;
      case UNKNOWN:
        break;
      default:
        throw new ParserException("unhandled record type: " + type);
    }
    return true;
  }
View Full Code Here

      case 'D':
        return ETransactionType.DELETE;
      case 'R':
        return ETransactionType.REVISE;
      default:
        throw new ParserException("unknown transaction type: " + type);
    }
  }
View Full Code Here

      case 'P':
        return EStpIndicator.PERMANENT;
      case 'O':
        return EStpIndicator.OVERLAY;
      default:
        throw new ParserException("unknown stp indicator=" + value);
    }
  }
View Full Code Here

        return EDateIndicator.OVER_PREVIOUS_MIDNIGHT;
      case 'U':
        _log.warn("unknown date indicator=" + indicator);
        return null;
      default:
        throw new ParserException("unknown association date indicator="
            + indicator);
    }
  }
View Full Code Here

    } else if (value.equals("VV")) {
      return ECategory.DIVIDE;
    } else if (value.equals("NP")) {
      return ECategory.NEXT;
    }
    throw new ParserException("unknown association category=" + value);
  }
View Full Code Here

      case 'P':
        return EAssociationType.PASSENGER;
      case 'O':
        return EAssociationType.OPERATING;
      default:
        throw new ParserException("unknown association type=" + value);
    }
  }
View Full Code Here

      case 'E':
        return EBankHolidayRunning.EDINBURGH_HOLIDAY_DATES;
      case 'G':
        return EBankHolidayRunning.GLASGOW_HOLIDAY_DATES;
      default:
        throw new ParserException("unknown bank holiday dates=" + value);
    }
  }
View Full Code Here

      case '4':
        return EStatus.STP_SHIP;
      case '5':
        return EStatus.STP_BUS;
      default:
        throw new ParserException("unknown train status=" + value);
    }
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.uk.parser.ParserException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.