Class SwitchCase


  • public final class SwitchCase
    extends Object
    Switch cases with have a value and corresponding activities.
    • Constructor Detail

      • SwitchCase

        public SwitchCase()
    • Method Detail

      • value

        public String value()
        Get the value property: Expected value that satisfies the expression result of the 'on' property.
        Returns:
        the value value.
      • withValue

        public SwitchCase withValue​(String value)
        Set the value property: Expected value that satisfies the expression result of the 'on' property.
        Parameters:
        value - the value value to set.
        Returns:
        the SwitchCase object itself.
      • activities

        public List<Activity> activities()
        Get the activities property: List of activities to execute for satisfied case condition.
        Returns:
        the activities value.
      • withActivities

        public SwitchCase withActivities​(List<Activity> activities)
        Set the activities property: List of activities to execute for satisfied case condition.
        Parameters:
        activities - the activities value to set.
        Returns:
        the SwitchCase object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.