net.masterthought.cucumber.json
Class DocString

java.lang.Object
  extended by net.masterthought.cucumber.json.DocString

public class DocString
extends Object

Doc Strings are handy for specifying a larger piece of text. This is inspired from Python’s Docstring syntax. In your step definition, there’s no need to find this text and match it in your Regexp. It will automatically be passed as the last parameter in the step definition.


Constructor Summary
DocString()
           
 
Method Summary
 String getContentType()
           
 String getEscapedValue()
          Returns getValue but escaped for HTML and to preserve whitespace
 Integer getLine()
           
 String getValue()
           
 boolean hasValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocString

public DocString()
Method Detail

getValue

public String getValue()

getContentType

public String getContentType()

getLine

public Integer getLine()

getEscapedValue

public String getEscapedValue()
Returns getValue but escaped for HTML and to preserve whitespace


hasValue

public boolean hasValue()
Returns:
Returns true if value has content


Copyright © 2014. All Rights Reserved.