org.onebusaway.api.model.transit
Class BeanFactoryV2
java.lang.Object
org.onebusaway.api.model.transit.BeanFactoryV2
public class BeanFactoryV2
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanFactoryV2
public BeanFactoryV2(boolean includeReferences)
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 © 2012 OneBusAway. All Rights Reserved.