org.tap4j.model
Class Comment

Package class diagram package Comment
java.lang.Object
  extended by org.tap4j.model.AbstractTapElementDiagnostic
      extended by org.tap4j.model.TapResult
          extended by org.tap4j.model.Comment
All Implemented Interfaces:
Serializable, TapElement

public class Comment
extends TapResult

A TAP Comment. In TAP files the comments have a # before the text.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
Comment(String text)
          Constructor with text.
 
Method Summary
 String getText()
           
 boolean isInline()
           
 void setInline(boolean inline)
           
 
Methods inherited from class org.tap4j.model.AbstractTapElementDiagnostic
getDiagnostic, setDiagnostic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comment

public Comment(String text)
Constructor with text. A comment must always have a text.

Parameters:
text - Text of the comment.
Method Detail

getText

public String getText()
Returns:
Comment text.

isInline

public boolean isInline()
Returns:
the inline

setInline

public void setInline(boolean inline)
Parameters:
inline - the inline to set


Copyright © 2010-2012 TupiLabs. All Rights Reserved.