br.eti.kinoshita.tap4j.model
Class Header

java.lang.Object
  extended by br.eti.kinoshita.tap4j.model.Header
All Implemented Interfaces:
Serializable

public class Header
extends Object
implements Serializable

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
Author:
Bruno P. Kinoshita - http://www.kinoshita.eti.br
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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.