Package org.onebusaway.transit_data.model.blocks

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


    BlockEntry blockEntry = _graph.getBlockEntryForId(blockId);

    if (blockEntry == null)
      return null;

    BlockBean bean = new BlockBean();

    bean.setId(AgencyAndIdLibrary.convertToString(blockEntry.getId()));

    List<BlockConfigurationBean> configBeans = new ArrayList<BlockConfigurationBean>();
    for (BlockConfigurationEntry blockConfiguration : blockEntry.getConfigurations()) {
      BlockConfigurationBean configBean = getBlockConfigurationAsBean(blockConfiguration);
      configBeans.add(configBean);
    }
    bean.setConfigurations(configBeans);

    return bean;
  }
View Full Code Here


      return setUnknownVersionResponse();

    if (hasErrors())
      return setValidationErrorsResponse();

    BlockBean block = _service.getBlockForId(_id);

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

    BeanFactoryV2 factory = getBeanFactoryV2();
View Full Code Here

TOP

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

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.