|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.northwestern.at.wordhoard.model.annotations.RemoteAnnotation
public class RemoteAnnotation
A remote annotation.
A remote annotation has the following attributes:
Nested Class Summary | |
---|---|
protected class |
RemoteAnnotation.Context
Text generation context. |
Constructor Summary | |
---|---|
RemoteAnnotation()
Creates a new annotation. |
|
RemoteAnnotation(org.w3c.dom.Element el)
Creates a new annotation from DOM. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if some other object is equal to this one. |
protected TextLine |
genText(java.lang.String str,
Text text,
TextLine line,
RemoteAnnotation.Context context)
Generates a string of text. |
java.lang.String |
getAnnotates()
Gets the annotates. |
java.lang.String |
getAuthor()
Gets the author. |
AnnotationCategory |
getCategory()
Gets the annotation category. |
java.util.Date |
getCreatedDate()
Gets the creation date. |
java.lang.Long |
getId()
Gets the unique id. |
java.lang.String |
getIdentifier()
Gets the identifier. |
java.util.Date |
getModifiedDate()
Gets the modified date. |
java.lang.String |
getStatus()
Gets the status. |
TextRange |
getTarget()
Gets the target. |
TextWrapped |
getText()
Gets the text. |
java.lang.String |
getTextAsString()
Gets the text as a String. |
java.lang.String |
getType()
Gets the type. |
java.lang.String |
getUserID()
Gets the userID. |
WorkPart |
getWorkPart()
Gets the work part. |
int |
hashCode()
Returns a hash code for the object. |
protected void |
processBodyEl(org.w3c.dom.Element el,
RemoteAnnotation annot)
|
protected TextLine |
processBoldEl(org.w3c.dom.Element el,
Text text,
TextLine line,
RemoteAnnotation.Context context)
Processes an "b" element. |
protected TextLine |
processChildren(org.w3c.dom.Element el,
Text text,
TextLine line,
RemoteAnnotation.Context context)
Processes the children of an element. |
protected void |
processContextEl(org.w3c.dom.Element el,
RemoteAnnotation annot)
|
protected TextLine |
processItalicEl(org.w3c.dom.Element el,
Text text,
TextLine line,
RemoteAnnotation.Context context)
Processes an "i" element. |
protected TextLine |
processTextNode(org.w3c.dom.Node node,
Text text,
TextLine line,
RemoteAnnotation.Context context)
Processes a text node. |
void |
resetText(java.lang.String textString)
Reset the Text from a String. |
void |
setAnnotates(java.lang.String annotates)
Sets the annotates. |
void |
setAuthor(java.lang.String author)
Sets the author. |
void |
setCategory(AnnotationCategory category)
Sets the annotation category. |
void |
setCreatedDate(java.util.Date created)
Sets the creation date. |
void |
setIdentifier(java.lang.String identifier)
Sets the identifier. |
void |
setModifiedDate(java.util.Date modified)
Sets the modified date. |
void |
setStatus(java.lang.String status)
Sets the status. |
void |
setTarget(TextRange target)
Sets the target. |
void |
setText(TextWrapped text)
Sets the text. |
void |
setType(java.lang.String type)
Sets the type. |
void |
setUserID(java.lang.String userID)
Sets the userID. |
void |
setWorkPart(WorkPart workPart)
Sets the work part. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteAnnotation()
public RemoteAnnotation(org.w3c.dom.Element el)
Method Detail |
---|
public java.lang.Long getId()
getId
in interface Attachment
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 java.lang.String getTextAsString()
public void resetText(java.lang.String textString)
textString
- The string. public void setText(TextWrapped text)
setText
in interface Attachment
text
- The text. public java.lang.String getIdentifier()
public void setIdentifier(java.lang.String identifier)
identifier
- The identifier. public java.lang.String getUserID()
public void setUserID(java.lang.String userID)
userID
- The userID. public java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
author
- The author. public java.lang.String getAnnotates()
public void setAnnotates(java.lang.String annotates)
annotates
- The annotates. public java.lang.String getType()
public void setType(java.lang.String type)
type
- The type. public java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- The status. public java.util.Date getCreatedDate()
public void setCreatedDate(java.util.Date created)
created
- The created date. public java.util.Date getModifiedDate()
public void setModifiedDate(java.util.Date modified)
modified
- The modified date. 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
public WorkPart getWorkPart()
getWorkPart
in interface TextAttachment
public void setWorkPart(WorkPart workPart)
setWorkPart
in interface TextAttachment
workPart
- The work part. public TextRange getTarget()
getTarget
in interface TextAttachment
public void setTarget(TextRange target)
setTarget
in interface TextAttachment
target
- The target - the range of text to which this
annotation is attached. protected void processContextEl(org.w3c.dom.Element el, RemoteAnnotation annot)
protected void processBodyEl(org.w3c.dom.Element el, RemoteAnnotation annot)
protected TextLine processChildren(org.w3c.dom.Element el, Text text, TextLine line, RemoteAnnotation.Context context)
el
- The element. protected TextLine processTextNode(org.w3c.dom.Node node, Text text, TextLine line, RemoteAnnotation.Context context)
node
- Text node. protected TextLine genText(java.lang.String str, Text text, TextLine line, RemoteAnnotation.Context context)
str
- String of text. protected TextLine processItalicEl(org.w3c.dom.Element el, Text text, TextLine line, RemoteAnnotation.Context context)
el
- italics element. protected TextLine processBoldEl(org.w3c.dom.Element el, Text text, TextLine line, RemoteAnnotation.Context context)
el
- bold element.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |