edu.northwestern.at.wordhoard.model.annotations
Interface Attachment

All Known Subinterfaces:
TextAttachment
All Known Implementing Classes:
Annotation, AuthoredTextAnnotation, RemoteAnnotation, TextAnnotation

public interface Attachment

Attachment interface for annotations.


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.
 

Method Detail

getId

java.lang.Long getId()
Gets the unique id.

Returns:
The unique id.

getCategory

AnnotationCategory getCategory()
Gets the annotation category.

Returns:
The annotation category.

setCategory

void setCategory(AnnotationCategory category)
Sets the annotation category.

Parameters:
category - The annotation category.

getText

TextWrapped getText()
Gets the text.

Returns:
The text.

setText

void setText(TextWrapped text)
Sets the text.

Parameters:
text - The text.

equals

boolean equals(java.lang.Object obj)
Returns true if some other object is equal to this one.

The two annotations are equal if their ids are equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The other object.
Returns:
True if this object equals the other object.

hashCode

int hashCode()
Returns a hash code for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code.