Composite.java

  1. package org.jbehave.core.model;

  2. import java.util.List;

  3. import org.jbehave.core.steps.StepType;

  4. /**
  5.  * <p>
  6.  * Represents a composite step, which can be declared both programmatically, via the
  7.  * {@link org.jbehave.core.annotations.Composite @Composite} annotation, or via a textual representation.
  8.  * </p>
  9.  *
  10.  * @author Mauro Talevi
  11.  * @author Valery Yatsynovich
  12.  */
  13. public class Composite extends StepsContainer {

  14.     private StepType stepType;
  15.     private String stepWithoutStartingWord;
  16.     private int priority;

  17.     public Composite(StepType stepType, String stepWithoutStartingWord, int priority, List<String> steps) {
  18.         super(steps);
  19.         this.stepType = stepType;
  20.         this.stepWithoutStartingWord = stepWithoutStartingWord;
  21.         this.priority = priority;
  22.     }

  23.     public StepType getStepType() {
  24.         return stepType;
  25.     }

  26.     public String getStepWithoutStartingWord() {
  27.         return stepWithoutStartingWord;
  28.     }

  29.     public int getPriority() {
  30.         return priority;
  31.     }
  32. }