public class HeaderCardBuilder extends Object
Modifier | Constructor and Description |
---|---|
protected |
HeaderCardBuilder(Header header,
IFitsHeader key)
constructor to the header card builder.
|
Modifier and Type | Method and Description |
---|---|
HeaderCard |
card()
get the current build card of the builder.
|
HeaderCardBuilder |
card(IFitsHeader newKey)
switch focus to the card with the specified key.
|
HeaderCardBuilder |
comment(String newComment)
set the comment of the current card.
|
HeaderCardBuilder |
value(boolean newValue)
set the value of the current card.If the card did not exist yet the card
will be created.
|
HeaderCardBuilder |
value(Date newValue)
set the value of the current card.
|
HeaderCardBuilder |
value(double newValue)
set the value of the current card.If the card did not exist yet the card
will be created.
|
HeaderCardBuilder |
value(float newValue)
set the value of the current card.If the card did not exist yet the card
will be created.
|
HeaderCardBuilder |
value(int newValue)
set the value of the current card.If the card did not exist yet the card
will be created.
|
HeaderCardBuilder |
value(long newValue)
set the value of the current card.If the card did not exist yet the card
will be created.
|
HeaderCardBuilder |
value(String newValue)
set the value of the current card.If the card did not exist yet the card
will be created.
|
protected HeaderCardBuilder(Header header, IFitsHeader key)
header
- the header to fill.key
- the first header card to set.public HeaderCard card()
public HeaderCardBuilder card(IFitsHeader newKey)
newKey
- the new card to setpublic HeaderCardBuilder comment(String newComment) throws HeaderCardException
newComment
- the new comment to set.HeaderCardException
- if the card creation failed.public HeaderCardBuilder value(boolean newValue) throws HeaderCardException
newValue
- the new value to set.HeaderCardException
- if the card creation failed.public HeaderCardBuilder value(Date newValue) throws HeaderCardException
newValue
- the new value to set.HeaderCardException
- if the card creation failed.public HeaderCardBuilder value(double newValue) throws HeaderCardException
newValue
- the new value to set.HeaderCardException
- if the card creation failed.public HeaderCardBuilder value(float newValue) throws HeaderCardException
newValue
- the new value to set.HeaderCardException
- if the card creation failed.public HeaderCardBuilder value(int newValue) throws HeaderCardException
newValue
- the new value to set.HeaderCardException
- if the card creation failed.public HeaderCardBuilder value(long newValue) throws HeaderCardException
newValue
- the new value to set.HeaderCardException
- if the card creation failed.public HeaderCardBuilder value(String newValue) throws HeaderCardException
newValue
- the new value to set.HeaderCardException
- if the card creation failed.Copyright © 1996–2016 nom-tam-fits. All rights reserved.