Class ServiceAlterationChecker

java.lang.Object
org.entur.netex.gtfs.export.util.ServiceAlterationChecker

public class ServiceAlterationChecker extends Object
Check the service alteration status for ServiceJourneys and DatedServiceJourneys.
  • Constructor Details

  • 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