|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmoos.ssds.model.HeaderDescription
This class represents 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,
IHeaderDescription,
IDataFile,
DataFile,
Serialized Form| Constructor Summary | |
HeaderDescription()
This is the default constructor |
|
| 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? Only problem is you cannot have protected method defined in an interface. |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HeaderDescription()
| 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
getDescription in interface IHeaderDescriptionpublic void setDescription(java.lang.String description)
HeaderDescription
setDescription in interface IHeaderDescriptiondescription - is the String used to set the
descriptionpublic long getByteOffset()
HeaderDescription is located at in the
DataFile
getByteOffset in interface IHeaderDescriptionpublic void setByteOffset(long byteOffset)
HeaderDescription is offset in the
DataFile
setByteOffset in interface IHeaderDescriptionpublic void setByteOffset(java.lang.String byteOffset)
HeaderDescription is offset in the
DataFile but takes a string representation
of that number as a parameter
setByteOffset in interface IHeaderDescriptionbyteOffset - is a string representation of the number
of bytes the HeaderDesription is offsetpublic boolean hasByteOffset()
HeaderDescription has a byteOffset in
the DataFile
hasByteOffset in interface IHeaderDescriptionpublic int getNumHeaderLines()
HeaderDescription spans.
getNumHeaderLines in interface IHeaderDescriptionHeaderDescription spanspublic void setNumHeaderLines(int numHeaderLines)
HeaderDescription spans
setNumHeaderLines in interface IHeaderDescriptionnumHeaderLines - is the number of lines the
HeaderDescription spanspublic void setNumHeaderLines(java.lang.String numHeaderLines)
setNumHeaderLines in interface IHeaderDescriptionnumHeaderLines - a String representation of
the number of lines this HeaderDescription
spanspublic boolean hasHeaderLines()
HeaderDescription
hasHeaderLines in interface IHeaderDescriptionpublic void addCommentTag(ICommentTag tag)
CommentTag
and adds it to the ArrayList
addCommentTag in interface IHeaderDescriptiontag - is an object that implements the
CommentTag interface
that is added to the ArrayListpublic void addCommentTag(java.lang.String tag)
CommentTag to the ArrayList
addCommentTag in interface IHeaderDescriptiontag - 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.
removeCommentTag in interface IHeaderDescriptiontag - is a CommentTag that has a
tagString that is to be removed from the ArrayListpublic void removeCommentTag(java.lang.String tag)
CommentTag from
ArrayList.
removeCommentTag in interface IHeaderDescriptiontag - 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.
hasCommentTags in interface IHeaderDescriptionCommentTags and false if notpublic java.util.Collection listCommentTags()
CommentTag objects in
the ArrayList.
listCommentTags in interface IHeaderDescriptionCommentTag objects in the
arrayListpublic java.util.Collection commentTagsAsStrings()
CommentTag objects in
the ArrayList.
commentTagsAsStrings in interface IHeaderDescriptionCommentTag 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).
getCommentTags in interface IHeaderDescriptionCommentTagspublic void setDataFile(IDataFile file)
setDataFile in interface IHeaderDescriptionfile -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||