|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.annotation.rework.ontology.classes.ServiceObjects.AnnotableObject
de.unidu.is.annotation.rework.ontology.classes.ServiceObjects.Annotation
Annotation.java
Represents an annotation.
See class annotation of the OWL ontology.
| Field Summary | |
protected java.util.List |
annotationTypes
Annotation types of the annotation |
protected long |
creationTime
Creation time |
protected Person |
creator
Creator of the annotation |
static java.lang.String |
DEFAULT_ANNOTATION
Name of the simple annotation class |
protected MVSelection |
selection
Selection |
protected AnnotableObject |
source
Identifier of the source (e.g. document) |
protected java.util.List |
targets
List of targets (AnnotableObjects) of the annotation |
protected java.lang.String |
text
Text (content) of the annotation |
protected java.lang.String |
title
Title/Subject of the annotation |
protected double |
weight
Weight of the annotation (IR) |
| Fields inherited from class de.unidu.is.annotation.rework.ontology.classes.ServiceObjects.AnnotableObject |
hasAnnotations, id |
| Constructor Summary | |
Annotation()
Creates an empty annotation instance. |
|
Annotation(java.util.List annotationTypes,
Person creator,
java.lang.String title,
AnnotableObject source)
Creates a new annotation object |
|
| Method Summary | |
int |
compareTo(java.lang.Object annotation)
Compares this annotation weight with the weight of the specified annotation. |
void |
createAnnotationId()
Creates the Id (creator_timestamp_random) of the annotation. |
java.util.List |
getAnnotationType()
Returns the annotation types of the annotation |
java.util.Calendar |
getCreationTime()
Returns the creation time of the annotation |
Person |
getCreator()
Returns the creator of the annotation |
MVSelection |
getSelection()
Returns MVSelection |
AnnotableObject |
getSource()
Returns the annotated object |
java.util.List |
getTargets()
Returns the targets of the annotation |
java.util.List |
getTargetUris()
Returns the URIs of the targets |
java.lang.String |
getText()
Returns the text of the annotation |
java.lang.String |
getTitle()
Returns the title of the annotation |
double |
getWeight()
Returns the weight of the annotation |
void |
println(java.io.PrintStream out)
Prints the annotation |
void |
setAnnotationType(java.util.List annotationTypes)
Sets the annotation type of the annotation |
void |
setCreationTime(long milliseconds)
Sets the creation time of the annotation |
void |
setCreator(Person creator)
Sets the creator of the annotation |
protected void |
setCurrentTime()
Sets the current time |
void |
setSelection(MVSelection selection)
Sets the selection |
void |
setSource(AnnotableObject source)
Sets the annotated object |
void |
setTargets(java.util.List targets)
Sets the targets of the annotation |
void |
setTargetUris(java.util.List targetUris)
Sets the targets of the annotation |
void |
setText(java.lang.String text)
Sets the text of the annotation |
void |
setTitle(java.lang.String title)
Sets the title of the annotation |
void |
setWeight(double weight)
Sets the weight of the annotation |
java.lang.String |
toString()
Returns the title of the annotation |
| Methods inherited from class de.unidu.is.annotation.rework.ontology.classes.ServiceObjects.AnnotableObject |
getId, getLocalName, hasAnnotations, setHasAnnotation, setId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static java.lang.String DEFAULT_ANNOTATION
protected Person creator
protected java.util.List annotationTypes
protected java.lang.String title
protected java.lang.String text
protected AnnotableObject source
protected java.util.List targets
protected MVSelection selection
protected long creationTime
protected double weight
| Constructor Detail |
public Annotation(java.util.List annotationTypes,
Person creator,
java.lang.String title,
AnnotableObject source)
annotationTypes - Annotation type of the annotationcreator - Creator (user name) of the annotationtitle - Title of the annotationsource - Source of the annotation (AnnotableObject)public Annotation()
| Method Detail |
public Person getCreator()
public void setCreator(Person creator)
public java.util.List getAnnotationType()
public void setAnnotationType(java.util.List annotationTypes)
annotationTypes - Annotation type of the annotationpublic AnnotableObject getSource()
public void setSource(AnnotableObject source)
source - Annotated objectpublic MVSelection getSelection()
public void setSelection(MVSelection selection)
selection - MVSelectionpublic java.util.List getTargets()
public java.util.List getTargetUris()
public void setTargets(java.util.List targets)
targets - Targets (AnnotableObjects) of the annotation (public void setTargetUris(java.util.List targetUris)
targetUris - URIs of the Targetspublic java.lang.String getText()
public void setText(java.lang.String text)
text - Text of the annotationpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - Title of the annotationpublic java.lang.String toString()
toString in class AnnotableObjectgetLabel()public void setWeight(double weight)
weight - Wight to setpublic double getWeight()
protected void setCurrentTime()
public void setCreationTime(long milliseconds)
milliseconds - Time in millisecondspublic java.util.Calendar getCreationTime()
public void createAnnotationId()
public int compareTo(java.lang.Object annotation)
compareTo in interface java.lang.Comparableannotation - another annotation
public void println(java.io.PrintStream out)
out - PrintStream
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||