|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmoos.ssds.model.CommentTag
CommentTag simply holds a string. We need to have a separate class for this to map to the relational model which permists a collection of CommentTags for each HeaderDescription.
Note: the hashCode and the toString method are overridden to actually call the underlying String method.
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.
| Constructor Summary | |
CommentTag()
This is the default (no argument) constructor |
|
CommentTag(java.lang.String tag)
This is the constructor that takes in a string that represents the comment |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
A method that checks to see if two CommentTags
are equal. |
IHeaderDescription |
getHeaderDescription()
This is the method to return the HeaderDescription
object that this CommentTag is associated with. |
java.lang.Long |
getHeaderDescriptionId()
This is the method to retrieve the unique identifier of the HeaderDescription that this
CommentTag is associated with |
java.lang.Long |
getId()
The method to return the ID of the CommentTag |
java.lang.String |
getTagString()
This is the method used to get the TagString text that is in this CommentTag |
int |
hashCode()
A method to return a hashcode for the tagString that is in this CommentTag |
void |
setHeaderDescription(IHeaderDescription headerDescription)
This method sets the associated HeaderDescription for this
CommentTag. |
void |
setHeaderDescriptionId(java.lang.Long headerDescriptionId)
This is the method to set the unique identifier of the HeaderDescription that this
CommentTag is associated with |
void |
setId(java.lang.Long id)
The method to set the ID of the CommentTag |
void |
setTagString(java.lang.String tagString)
This is the method to set the text string of the CommentTag |
java.lang.String |
toString()
A method that over-rides the toString method and just returns the tagString of this CommentTag |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CommentTag()
public CommentTag(java.lang.String tag)
tag - The comment text| Method Detail |
public java.lang.Long getId()
CommentTag
getId in interface ValueObjectCommentTagpublic void setId(java.lang.Long id)
CommentTag
setId in interface ValueObjectid - Is the Long value to set the unique identifier
of the CommentTagpublic java.lang.String getTagString()
CommentTag
getTagString in interface ICommentTagCommentTagpublic void setTagString(java.lang.String tagString)
CommentTag
setTagString in interface ICommentTagtagString - Is a String that is the text
to be stored with the CommentTagpublic IHeaderDescription getHeaderDescription()
HeaderDescription
object that this CommentTag is associated with.
getHeaderDescription in interface ICommentTagHeaderDescription that this CommentTag
is associated with. It is an object that implements the
IHeaderDescription interface.public void setHeaderDescription(IHeaderDescription headerDescription)
HeaderDescription for this
CommentTag.
setHeaderDescription in interface ICommentTagheaderDescription - is an object that implements the IHeaderDescription
interface.public java.lang.Long getHeaderDescriptionId()
HeaderDescription that this
CommentTag is associated with
getHeaderDescriptionId in interface ICommentTagCommentTage
is associated withpublic void setHeaderDescriptionId(java.lang.Long headerDescriptionId)
HeaderDescription that this
CommentTag is associated with
setHeaderDescriptionId in interface ICommentTagCommentTage
is associated withpublic boolean equals(java.lang.Object obj)
CommentTags
are equal. The two instances of CommentTag
are equal if their respective tagStrings are equal
equals in interface ICommentTagpublic int hashCode()
CommentTag
hashCode in interface ICommentTagpublic java.lang.String toString()
CommentTag
toString in interface ICommentTagCommentTag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||