|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This class represents a interface for a description of header
sections in DataFile. It is used for DataFile
processing and parsing.
The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement. This information should not be published or distributed to third parties without specific written permission from MBARI.
CommentTag,
ICommentTag,
HeaderDescription,
IDataFile,
DataFile| Method Summary | |
void |
addCommentTag(ICommentTag tag)
This method takes in a CommentTag
and adds it to the ArrayList |
void |
addCommentTag(java.lang.String tag)
This method takes in a string and adds a CommentTag to the ArrayList |
java.util.Collection |
commentTagsAsStrings()
This method returns a collection of Strings that represent the CommentTag objects in
the ArrayList. |
long |
getByteOffset()
This method returns the number of bytes that the HeaderDescription is located at in the
DataFile |
java.util.Collection |
getCommentTags()
This method returns the collection of CommentTagss for this
HeaderDescription. |
java.lang.String |
getDescription()
This method retrieves the description of the HeaderDescription |
java.lang.Long |
getId()
This is the method used to retrieve the unique identifier for the HeaderDescription |
int |
getNumHeaderLines()
This method retrieves the number of lines that this HeaderDescription spans. |
boolean |
hasByteOffset()
This method indicates whether or not this HeaderDescription has a byteOffset in
the DataFile |
boolean |
hasCommentTags()
This method returns the result of a check to see if any CommentTags are present in the
HeaderDescription. |
boolean |
hasHeaderLines()
This returns a boolean that indicates if there are header lines in this HeaderDescription |
java.util.Collection |
listCommentTags()
This method returns a collection of Strings that represent the CommentTag objects in
the ArrayList. |
void |
removeCommentTag(ICommentTag tag)
This method removes a CommentTag from
ArrayList. |
void |
removeCommentTag(java.lang.String tag)
This method removes a CommentTag from
ArrayList. |
void |
setByteOffset(long byteOffset)
This method is used to set the number of bytes that the HeaderDescription is offset in the
DataFile |
void |
setByteOffset(java.lang.String byteOffset)
This method is used to set the number of bytes that the HeaderDescription is offset in the
DataFile but takes a string representation
of that number as a parameter |
void |
setDataFile(IDataFile file)
TODO kgomes: Change this to protected? This should NOT be public. |
void |
setDescription(java.lang.String description)
This method is used to set the description of the HeaderDescription |
void |
setId(java.lang.Long id)
This method is used to set the unique identifier for the HeaderDescription |
void |
setNumHeaderLines(int numHeaderLines)
This method sets the number of lines that the HeaderDescription spans |
void |
setNumHeaderLines(java.lang.String numHeaderLines)
This method sets the number of header lines, but takes a string representation of that number as an input |
| Method Detail |
public java.lang.Long getId()
HeaderDescription
getId in interface ValueObjectpublic void setId(java.lang.Long id)
HeaderDescription
setId in interface ValueObjectid - is the Long that will be the unique identifierpublic java.lang.String getDescription()
HeaderDescription
public void setDescription(java.lang.String description)
HeaderDescription
description - is the String used to set the
descriptionpublic long getByteOffset()
HeaderDescription is located at in the
DataFile
public void setByteOffset(long byteOffset)
HeaderDescription is offset in the
DataFile
public void setByteOffset(java.lang.String byteOffset)
HeaderDescription is offset in the
DataFile but takes a string representation
of that number as a parameter
byteOffset - is a string representation of the number
of bytes the HeaderDesription is offsetpublic boolean hasByteOffset()
HeaderDescription has a byteOffset in
the DataFile
public int getNumHeaderLines()
HeaderDescription spans.
HeaderDescription spanspublic void setNumHeaderLines(int numHeaderLines)
HeaderDescription spans
numHeaderLines - is the number of lines the
HeaderDescription spanspublic void setNumHeaderLines(java.lang.String numHeaderLines)
numHeaderLines - a String representation of
the number of lines this HeaderDescription
spanspublic boolean hasHeaderLines()
HeaderDescription
public void addCommentTag(ICommentTag tag)
CommentTag
and adds it to the ArrayList
tag - is an object that implements the
CommentTag interface
that is added to the ArrayListpublic void addCommentTag(java.lang.String tag)
CommentTag to the ArrayList
tag - is a String that will be the tagString
of the CommentTag object that is
added to the ArrayListpublic void removeCommentTag(ICommentTag tag)
CommentTag from
ArrayList.
tag - is a CommentTag that has a
tagString that is to be removed from the ArrayListpublic void removeCommentTag(java.lang.String tag)
CommentTag from
ArrayList.
tag - is a String that is the tagString of
a CommentTag object that is to be
removed from the ArrayListpublic boolean hasCommentTags()
CommentTags are present in the
HeaderDescription.
CommentTags and false if notpublic java.util.Collection listCommentTags()
CommentTag objects in
the ArrayList.
CommentTag objects in the
arrayListpublic java.util.Collection commentTagsAsStrings()
CommentTag objects in
the ArrayList.
CommentTag objects in the
arrayListpublic java.util.Collection getCommentTags()
CommentTagss for this
HeaderDescription. This method is protected because it should
only be used by members of the model classes (specifically this class).
CommentTagspublic void setDataFile(IDataFile file)
file -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||