|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.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 AttachmentgetId in interface PersistentObjectpublic AnnotationCategory getCategory()
getCategory in interface Attachmentpublic void setCategory(AnnotationCategory category)
setCategory in interface Attachmentcategory - The annotation category. public TextWrapped getText()
getText in interface Attachmentpublic void setText(TextWrapped text)
setText in interface Attachmenttext - The text. public boolean equals(java.lang.Object obj)
The two annotations are equal if their ids are equal.
equals in interface Attachmentequals in class java.lang.Objectobj - The other object.
public int hashCode()
hashCode in interface AttachmenthashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||