Package org.onebusaway.transit_data.model.blocks

Examples of org.onebusaway.transit_data.model.blocks.BlockInstanceBean


   * Private Methods
   ****/

  private BlockInstanceBean getBlockInstanceAsBean(BlockInstance blockInstance) {

    BlockInstanceBean bean = new BlockInstanceBean();

    BlockConfigurationBean blockConfig = getBlockConfigurationAsBean(blockInstance.getBlock());
    bean.setBlockId(blockConfig.getBlockId());
    bean.setBlockConfiguration(blockConfig);

    long serviceDate = blockInstance.getServiceDate();
    bean.setServiceDate(serviceDate);

    return bean;
  }
View Full Code Here


      return setUnknownVersionResponse();

    if (hasErrors())
      return setValidationErrorsResponse();

    BlockInstanceBean blockInstance = _service.getBlockInstance(_id,
        _serviceDate);

    if (blockInstance == null)
      return setResourceNotFoundResponse();
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data.model.blocks.BlockInstanceBean

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.