org.onebusaway.api.model.transit
Class BeanFactoryV2

java.lang.Object
  extended by org.onebusaway.api.model.transit.BeanFactoryV2

public class BeanFactoryV2
extends Object


Constructor Summary
BeanFactoryV2(boolean includeReferences)
           
 
Method Summary
 void addToReferences(AgencyBean agency)
          References Methods
 void addToReferences(RouteBean route)
           
 void addToReferences(ServiceAlertBean situation)
           
 void addToReferences(StopBean stop)
           
 void addToReferences(TripBean trip)
           
<T> EntryWithReferencesBean<T>
entry(T entry)
          Private Methods
 AgencyV2Bean getAgency(AgencyBean agency)
           
 AgencyWithCoverageV2Bean getAgencyWithCoverage(AgencyWithCoverageBean awc)
           
 ArrivalAndDepartureV2Bean getArrivalAndDeparture(ArrivalAndDepartureBean ad)
           
 NaturalLanguageStringV2Bean getBestString(List<NaturalLanguageStringBean> strings)
           
 BlockV2Bean getBlock(BlockBean block)
           
 BlockConfigurationV2Bean getBlockConfig(BlockConfigurationBean blockConfig)
           
 BlockInstanceV2Bean getBlockInstance(BlockInstanceBean blockInstance)
           
 EntryWithReferencesBean<BlockV2Bean> getBlockResponse(BlockBean block)
           
 BlockStopTimeV2Bean getBlockStopTime(BlockStopTimeBean blockStopTime)
           
 BlockTripV2Bean getBlockTrip(BlockTripBean blockTrip)
           
 CurrentVehicleEstimateV2Bean getCurrentVehicleEstimate(CurrentVehicleEstimateBean estimate)
           
 ListWithReferencesBean<CurrentVehicleEstimateV2Bean> getCurrentVehicleEstimates(ListBean<CurrentVehicleEstimateBean> estimates)
           
<T> ListWithReferencesBean<T>
getEmptyList(Class<T> type, boolean outOfRange)
           
 ListWithReferencesBean<String> getEntityIdsResponse(ListBean<String> ids)
           
 FrequencyV2Bean getFrequency(FrequencyBean frequency)
           
 ListWithReferencesBean<MinTravelTimeToStopV2Bean> getMinTravelTimeToStops(MinTravelTimeToStopsBean travelTimes)
           
 CoordinatePointV2Bean getPoint(CoordinatePoint point)
           
 EntryWithReferencesBean<AgencyV2Bean> getResponse(AgencyBean agency)
          Response Methods
 EntryWithReferencesBean<ArrivalAndDepartureV2Bean> getResponse(ArrivalAndDepartureBean result)
           
 EntryWithReferencesBean<EncodedPolylineBean> getResponse(EncodedPolylineBean bean)
           
 ListWithReferencesBean<AgencyWithCoverageV2Bean> getResponse(List<AgencyWithCoverageBean> beans)
           
 EntryWithReferencesBean<RouteV2Bean> getResponse(RouteBean route)
           
 ListWithReferencesBean<RouteV2Bean> getResponse(RoutesBean result)
           
 EntryWithReferencesBean<SituationV2Bean> getResponse(ServiceAlertBean situation)
           
 Object getResponse(StopBean stop)
           
 ListWithReferencesBean<StopV2Bean> getResponse(StopsBean result)
           
 EntryWithReferencesBean<StopScheduleV2Bean> getResponse(StopScheduleBean stopSchedule)
           
 EntryWithReferencesBean<StopsForRouteV2Bean> getResponse(StopsForRouteBean result, boolean includePolylines)
           
 EntryWithReferencesBean<StopWithArrivalsAndDeparturesV2Bean> getResponse(StopWithArrivalsAndDeparturesBean result)
           
 EntryWithReferencesBean<TripV2Bean> getResponse(TripBean trip)
           
 EntryWithReferencesBean<TripDetailsV2Bean> getResponse(TripDetailsBean tripDetails)
           
 RouteV2Bean getRoute(RouteBean route)
           
 SituationV2Bean getSituation(ServiceAlertBean situation)
           
 SituationAffectsV2Bean getSituationAffects(SituationAffectsBean affects)
           
 StopV2Bean getStop(StopBean stop)
           
 StopCalendarDayV2Bean getStopCalendarDay(StopCalendarDayBean day)
           
 StopRouteDirectionScheduleV2Bean getStopRouteDirectionSchedule(StopRouteDirectionScheduleBean direction)
           
 StopRouteScheduleV2Bean getStopRouteSchedule(StopRouteScheduleBean stopRouteSchedule)
           
 StopScheduleV2Bean getStopSchedule(StopScheduleBean stopSchedule)
           
 StopsForRouteV2Bean getStopsForRoute(StopsForRouteBean stopsForRoute, boolean includePolylines)
           
 StopTimeV2Bean getStopTime(StopTimeBean stopTime)
           
 StopWithArrivalsAndDeparturesV2Bean getStopWithArrivalAndDepartures(StopWithArrivalsAndDeparturesBean sad)
           
 NaturalLanguageStringV2Bean getString(NaturalLanguageStringBean nls)
           
 TimeIntervalV2 getTimeInterval(TimeIntervalBean interval)
           
 TimeRangeV2Bean getTimeRange(TimeRangeBean range)
           
 TripV2Bean getTrip(TripBean trip)
           
 TripDetailsV2Bean getTripDetails(TripDetailsBean tripDetails)
           
 ListWithReferencesBean<TripDetailsV2Bean> getTripDetailsResponse(ListBean<TripDetailsBean> trips)
           
 TripStatusV2Bean getTripStatus(TripStatusBean tripStatus)
           
 TripStopTimesV2Bean getTripStopTimes(TripStopTimesBean tripStopTimes)
           
 VehicleLocationRecordV2Bean getVehicleLocationRecord(VehicleLocationRecordBean record)
           
 ListWithReferencesBean<VehicleLocationRecordV2Bean> getVehicleLocationRecordResponse(ListBean<VehicleLocationRecordBean> vehicles)
           
 VehicleStatusV2Bean getVehicleStatus(VehicleStatusBean vehicleStatus)
           
 ListWithReferencesBean<VehicleStatusV2Bean> getVehicleStatusResponse(ListBean<VehicleStatusBean> vehicles)
           
 EntryWithReferencesBean<VehicleStatusV2Bean> getVehicleStatusResponse(VehicleStatusBean vehicleStatus)
           
 boolean isSituationExcludedForApplication(ServiceAlertBean situation)
           
 boolean isStringSet(String value)
           
<T> ListWithReferencesBean<T>
list(List<T> list, boolean limitExceeded)
           
<T> ListWithReferencesBean<T>
list(List<T> list, boolean limitExceeded, boolean outOfRange)
           
 FrequencyBean reverseFrequency(FrequencyV2Bean frequency)
           
 CoordinatePoint reversePoint(CoordinatePointV2Bean bean)
           
 void setApplicationKey(String applicationKey)
           
 void setIncludeConditionDetails(boolean includeConditionDetails)
           
 void setLocale(Locale locale)
           
 void setMaxCount(MaxCountSupport maxCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanFactoryV2

public BeanFactoryV2(boolean includeReferences)
Method Detail

setIncludeConditionDetails

public void setIncludeConditionDetails(boolean includeConditionDetails)

setMaxCount

public void setMaxCount(MaxCountSupport maxCount)

setApplicationKey

public void setApplicationKey(String applicationKey)

setLocale

public void setLocale(Locale locale)

getResponse

public EntryWithReferencesBean<AgencyV2Bean> getResponse(AgencyBean agency)
Response Methods


getResponse

public EntryWithReferencesBean<RouteV2Bean> getResponse(RouteBean route)

getResponse

public EntryWithReferencesBean<EncodedPolylineBean> getResponse(EncodedPolylineBean bean)

getResponse

public Object getResponse(StopBean stop)

getResponse

public EntryWithReferencesBean<TripV2Bean> getResponse(TripBean trip)

getResponse

public EntryWithReferencesBean<TripDetailsV2Bean> getResponse(TripDetailsBean tripDetails)

getBlockResponse

public EntryWithReferencesBean<BlockV2Bean> getBlockResponse(BlockBean block)

getResponse

public EntryWithReferencesBean<StopWithArrivalsAndDeparturesV2Bean> getResponse(StopWithArrivalsAndDeparturesBean result)

getResponse

public EntryWithReferencesBean<ArrivalAndDepartureV2Bean> getResponse(ArrivalAndDepartureBean result)

getResponse

public EntryWithReferencesBean<StopScheduleV2Bean> getResponse(StopScheduleBean stopSchedule)

getResponse

public EntryWithReferencesBean<StopsForRouteV2Bean> getResponse(StopsForRouteBean result,
                                                                boolean includePolylines)

getResponse

public ListWithReferencesBean<AgencyWithCoverageV2Bean> getResponse(List<AgencyWithCoverageBean> beans)

getResponse

public ListWithReferencesBean<RouteV2Bean> getResponse(RoutesBean result)

getResponse

public ListWithReferencesBean<StopV2Bean> getResponse(StopsBean result)

getTripDetailsResponse

public ListWithReferencesBean<TripDetailsV2Bean> getTripDetailsResponse(ListBean<TripDetailsBean> trips)

getVehicleStatusResponse

public ListWithReferencesBean<VehicleStatusV2Bean> getVehicleStatusResponse(ListBean<VehicleStatusBean> vehicles)

getVehicleLocationRecordResponse

public ListWithReferencesBean<VehicleLocationRecordV2Bean> getVehicleLocationRecordResponse(ListBean<VehicleLocationRecordBean> vehicles)

getVehicleStatusResponse

public EntryWithReferencesBean<VehicleStatusV2Bean> getVehicleStatusResponse(VehicleStatusBean vehicleStatus)

getResponse

public EntryWithReferencesBean<SituationV2Bean> getResponse(ServiceAlertBean situation)

getMinTravelTimeToStops

public ListWithReferencesBean<MinTravelTimeToStopV2Bean> getMinTravelTimeToStops(MinTravelTimeToStopsBean travelTimes)

getEntityIdsResponse

public ListWithReferencesBean<String> getEntityIdsResponse(ListBean<String> ids)

getEmptyList

public <T> ListWithReferencesBean<T> getEmptyList(Class<T> type,
                                                  boolean outOfRange)

getTimeInterval

public TimeIntervalV2 getTimeInterval(TimeIntervalBean interval)

getAgency

public AgencyV2Bean getAgency(AgencyBean agency)

getRoute

public RouteV2Bean getRoute(RouteBean route)

getStop

public StopV2Bean getStop(StopBean stop)

getTrip

public TripV2Bean getTrip(TripBean trip)

getTripStatus

public TripStatusV2Bean getTripStatus(TripStatusBean tripStatus)

getTripStopTimes

public TripStopTimesV2Bean getTripStopTimes(TripStopTimesBean tripStopTimes)

getTripDetails

public TripDetailsV2Bean getTripDetails(TripDetailsBean tripDetails)

getBlockInstance

public BlockInstanceV2Bean getBlockInstance(BlockInstanceBean blockInstance)

getBlock

public BlockV2Bean getBlock(BlockBean block)

getBlockConfig

public BlockConfigurationV2Bean getBlockConfig(BlockConfigurationBean blockConfig)

getBlockTrip

public BlockTripV2Bean getBlockTrip(BlockTripBean blockTrip)

getBlockStopTime

public BlockStopTimeV2Bean getBlockStopTime(BlockStopTimeBean blockStopTime)

getStopTime

public StopTimeV2Bean getStopTime(StopTimeBean stopTime)

getCurrentVehicleEstimates

public ListWithReferencesBean<CurrentVehicleEstimateV2Bean> getCurrentVehicleEstimates(ListBean<CurrentVehicleEstimateBean> estimates)

getCurrentVehicleEstimate

public CurrentVehicleEstimateV2Bean getCurrentVehicleEstimate(CurrentVehicleEstimateBean estimate)

getVehicleStatus

public VehicleStatusV2Bean getVehicleStatus(VehicleStatusBean vehicleStatus)

getVehicleLocationRecord

public VehicleLocationRecordV2Bean getVehicleLocationRecord(VehicleLocationRecordBean record)

getStopSchedule

public StopScheduleV2Bean getStopSchedule(StopScheduleBean stopSchedule)

getStopRouteSchedule

public StopRouteScheduleV2Bean getStopRouteSchedule(StopRouteScheduleBean stopRouteSchedule)

getStopRouteDirectionSchedule

public StopRouteDirectionScheduleV2Bean getStopRouteDirectionSchedule(StopRouteDirectionScheduleBean direction)

getStopCalendarDay

public StopCalendarDayV2Bean getStopCalendarDay(StopCalendarDayBean day)

getStopsForRoute

public StopsForRouteV2Bean getStopsForRoute(StopsForRouteBean stopsForRoute,
                                            boolean includePolylines)

getStopWithArrivalAndDepartures

public StopWithArrivalsAndDeparturesV2Bean getStopWithArrivalAndDepartures(StopWithArrivalsAndDeparturesBean sad)

getArrivalAndDeparture

public ArrivalAndDepartureV2Bean getArrivalAndDeparture(ArrivalAndDepartureBean ad)

getFrequency

public FrequencyV2Bean getFrequency(FrequencyBean frequency)

reverseFrequency

public FrequencyBean reverseFrequency(FrequencyV2Bean frequency)

isSituationExcludedForApplication

public boolean isSituationExcludedForApplication(ServiceAlertBean situation)

getSituation

public SituationV2Bean getSituation(ServiceAlertBean situation)

getSituationAffects

public SituationAffectsV2Bean getSituationAffects(SituationAffectsBean affects)

getAgencyWithCoverage

public AgencyWithCoverageV2Bean getAgencyWithCoverage(AgencyWithCoverageBean awc)

getBestString

public NaturalLanguageStringV2Bean getBestString(List<NaturalLanguageStringBean> strings)

getString

public NaturalLanguageStringV2Bean getString(NaturalLanguageStringBean nls)

getTimeRange

public TimeRangeV2Bean getTimeRange(TimeRangeBean range)

getPoint

public CoordinatePointV2Bean getPoint(CoordinatePoint point)

reversePoint

public CoordinatePoint reversePoint(CoordinatePointV2Bean bean)

addToReferences

public void addToReferences(AgencyBean agency)
References Methods


addToReferences

public void addToReferences(RouteBean route)

addToReferences

public void addToReferences(StopBean stop)

addToReferences

public void addToReferences(TripBean trip)

addToReferences

public void addToReferences(ServiceAlertBean situation)

entry

public <T> EntryWithReferencesBean<T> entry(T entry)
Private Methods


list

public <T> ListWithReferencesBean<T> list(List<T> list,
                                          boolean limitExceeded)

list

public <T> ListWithReferencesBean<T> list(List<T> list,
                                          boolean limitExceeded,
                                          boolean outOfRange)

isStringSet

public boolean isStringSet(String value)


Copyright © 2011 OneBusAway. All Rights Reserved.