org.tap4j.model
Class Header

Package class diagram package Header
java.lang.Object
  extended by org.tap4j.model.AbstractTapElementDiagnostic
      extended by 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.
 
Method Summary
 Comment getComment()
           
 Integer getVersion()
           
 void setComment(Comment comment)
          Sets a comment into the Header.
 
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

Header

public Header(Integer version)
Constructor with parameter.

Parameters:
version - TAP file version.
Method Detail

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.