|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.model.annotations.Annotation
public class Annotation
An annotation.
An annotation has the following attributes:
Field Summary | |
---|---|
protected AnnotationCategory |
category
The annotation category. |
protected java.lang.Long |
id
Unique persistence id (primary key). |
protected TextWrapper |
text
The text. |
Constructor Summary | |
---|---|
Annotation()
Creates a new annotation. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if some other object is equal to this one. |
AnnotationCategory |
getCategory()
Gets the annotation category. |
java.lang.Long |
getId()
Gets the unique id. |
TextWrapped |
getText()
Gets the text. |
int |
hashCode()
Returns a hash code for the object. |
void |
setCategory(AnnotationCategory category)
Sets the annotation category. |
void |
setText(TextWrapped text)
Sets the text. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Long id
protected AnnotationCategory category
protected TextWrapper text
Constructor Detail |
---|
public Annotation()
Method Detail |
---|
public java.lang.Long getId()
getId
in interface Attachment
getId
in interface PersistentObject
public AnnotationCategory getCategory()
getCategory
in interface Attachment
public void setCategory(AnnotationCategory category)
setCategory
in interface Attachment
category
- The annotation category. public TextWrapped getText()
getText
in interface Attachment
public void setText(TextWrapped text)
setText
in interface Attachment
text
- The text. public boolean equals(java.lang.Object obj)
The two annotations are equal if their ids are equal.
equals
in interface Attachment
equals
in class java.lang.Object
obj
- The other object.
public int hashCode()
hashCode
in interface Attachment
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |