org.tap4j.model
Class Header
java.lang.Object
org.tap4j.model.AbstractTapElementDiagnostic
org.tap4j.model.Header
- All Implemented Interfaces:
- Serializable, TapElement
public class Header
- extends AbstractTapElementDiagnostic
TAP Header. Each TAP File has at most one header in the beginning of it. The
only thing that can precede the Header are comments. However a Header is not
required in a TAP File (i.e. the Header is optional).
- Since:
- 1.0
- See Also:
- Serialized Form
Constructor Summary |
Header(Integer version)
Constructor with parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Header
public Header(Integer version)
- Constructor with parameter.
- Parameters:
version
- TAP file version.
getVersion
public Integer getVersion()
- Returns:
- The TAP file version.
getComment
public Comment getComment()
- Returns:
- Header comment.
setComment
public void setComment(Comment comment)
- Sets a comment into the Header.
- Parameters:
comment
- Header comment.
Copyright © 2010-2012 TupiLabs. All Rights Reserved.