Class Feature

java.lang.Object
io.cucumber.messages.types.Feature

public final class Feature extends Object
Represents the Feature message in Cucumber's message protocol
  • Field Details

    • location

      private final Location location
    • tags

      private final List<Tag> tags
    • language

      private final String language
    • keyword

      private final String keyword
    • name

      private final String name
    • description

      private final String description
    • children

      private final List<FeatureChild> children
  • Constructor Details

  • Method Details

    • getLocation

      public Location getLocation()
      The location of the `Feature` keyword
    • getTags

      public List<Tag> getTags()
      All the tags placed above the `Feature` keyword
    • getLanguage

      public String getLanguage()
      The [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code of the Gherkin document
    • getKeyword

      public String getKeyword()
      The text of the `Feature` keyword (in the language specified by `language`)
    • getName

      public String getName()
      The name of the feature (the text following the `keyword`)
    • getDescription

      public String getDescription()
      The line(s) underneath the line with the `keyword` that are used as description
    • getChildren

      public List<FeatureChild> getChildren()
      Zero or more children
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object