Module org.entur.netex.gtfs.export
Package org.entur.netex.gtfs.export.util
Class ServiceAlterationChecker
java.lang.Object
org.entur.netex.gtfs.export.util.ServiceAlterationChecker
Check the service alteration status for ServiceJourneys and DatedServiceJourneys.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReplacedOrCancelled(org.rutebanken.netex.model.DatedServiceJourney datedServiceJourney) Return true if the dated service journey has a ServiceAlteration equals to CANCELLATION or REPLACED.booleanisReplacedOrCancelled(org.rutebanken.netex.model.ServiceJourney serviceJourney) Return true if the service journey has a ServiceAlteration equals to CANCELLATION or REPLACED or if all its dated service journeys are cancelled or replaced.
-
Constructor Details
-
ServiceAlterationChecker
-
-
Method Details
-
isReplacedOrCancelled
public boolean isReplacedOrCancelled(org.rutebanken.netex.model.ServiceJourney serviceJourney) Return true if the service journey has a ServiceAlteration equals to CANCELLATION or REPLACED or if all its dated service journeys are cancelled or replaced.- Parameters:
serviceJourney- the service journey to check- Returns:
- true if the service journey has a ServiceAlteration equals to CANCELLATION or REPLACED or if all its dated service journeys are cancelled or replaced.
- See Also:
-
ServiceAlterationEnumeration
-
isReplacedOrCancelled
public boolean isReplacedOrCancelled(org.rutebanken.netex.model.DatedServiceJourney datedServiceJourney) Return true if the dated service journey has a ServiceAlteration equals to CANCELLATION or REPLACED.- Parameters:
datedServiceJourney- the dated service journey to check- Returns:
- true if the service journey has a ServiceAlteration equals to CANCELLATION or REPLACED.
- See Also:
-
ServiceAlterationEnumeration
-