Package org.onebusaway.api.model.transit.blocks

Examples of org.onebusaway.api.model.transit.blocks.BlockInstanceV2Bean


    return bean;
  }

  public BlockInstanceV2Bean getBlockInstance(BlockInstanceBean blockInstance) {
    BlockInstanceV2Bean bean = new BlockInstanceV2Bean();
    bean.setBlockConfiguration(getBlockConfig(blockInstance.getBlockConfiguration()));
    bean.setBlockId(blockInstance.getBlockId());
    bean.setServiceDate(blockInstance.getServiceDate());
    return bean;
  }
View Full Code Here


    if (blockInstance == null)
      return setResourceNotFoundResponse();

    BeanFactoryV2 factory = getBeanFactoryV2();
    BlockInstanceV2Bean bean = factory.getBlockInstance(blockInstance);
    EntryWithReferencesBean<BlockInstanceV2Bean> response = factory.entry(bean);
    return setOkResponse(response);
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.api.model.transit.blocks.BlockInstanceV2Bean

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.