Class Source


  • public class Source
    extends Object
    //// Source * A source file, typically a Gherkin document or Java/Ruby/JavaScript source code
    • Constructor Detail

      • Source

        public Source()
        No args constructor for use in serialization
    • Method Detail

      • getUri

        public String getUri()
        * The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directory (Required)
      • setUri

        public void setUri​(String uri)
        * The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directory (Required)
      • getData

        public String getData()
        The contents of the file (Required)
      • setData

        public void setData​(String data)
        The contents of the file (Required)
      • getMediaType

        public Source.MediaType getMediaType()
        The media type of the file. Can be used to specify custom types, such as text/x.cucumber.gherkin+plain (Required)
      • setMediaType

        public void setMediaType​(Source.MediaType mediaType)
        The media type of the file. Can be used to specify custom types, such as text/x.cucumber.gherkin+plain (Required)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object