Mercurial > hg > AnnotationManager
diff src/de/mpiwg/itgroup/annotationManager/RDFHandling/Annotation.java @ 17:b0ef5c860464
updating and deleting annotations works now!
more cleanup.
author | casties |
---|---|
date | Thu, 22 Mar 2012 21:37:16 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/de/mpiwg/itgroup/annotationManager/RDFHandling/Annotation.java Thu Mar 22 21:37:16 2012 +0100 @@ -0,0 +1,89 @@ +package de.mpiwg.itgroup.annotationManager.RDFHandling; + +import java.util.List; + +/** + * Fasst alle Parameter zusammen, die eine Annotation bilden + * @author dwinter + * + */ +public class Annotation { + public String xpointer=null; //if queried xpointer should contain the first xpointer in the xpointers list, if there is more than one. + public String creator=null; + public String time=null; + public String text=null; + public String type=null; + public String url=null; + public List<String> xpointers=null; // list of xpointers on the page url, can be empty or null if there is only one. + private String annotationUri=null; // uri der annotation im triplestore + + + public Annotation() { + super(); + } + + /** + * @param xpointer Beschreibt die Annotation + * @param creator Username des Creators oder URI der Creators + * @param time Erstellungszeit, wenn null wird das aktuelle Datum verwenden beim Konvertieren + * @param text der Annotation + * @param type Annotationstype (Entsprechend den in http://www.w3.org/2000/10/annotationType# definierten.) + * @param url Url einer Annotation + * @param annotationUri Uri der Annotation im Triplestore + */ + public Annotation(String xpointer, String creator, String time, String text, String type, String url,String annotationUri){ + this.xpointer=xpointer; + this.creator=creator; + this.time=time; + this.text=text; + this.type=type; + this.url=url; + this.annotationUri=annotationUri; + } + /** + * @param xpointer Beschreibt die Annotation + * @param creator Username des Creators + * @param time Erstellungszeit, wenn null wird das aktuelle Datum verwenden beim Konvertieren + * @param text der Annotation + * @param type Annotationstype (Entsprechend den in http://www.w3.org/2000/10/annotationType# definierten.) + * @param url Url einer Annotation + */ + public Annotation(String xpointer, String creator, String time, String text, String type, String url){ + this.xpointer=xpointer; + this.creator=creator; + this.time=time; + this.text=text; + this.type=type; + this.url=url; + } + + /** + * @param xpointer Beschreibt die Annotation + * @param creator Username des Creators + * @param time Erstellungszeit, wenn null wird das aktuelle Datum verwenden beim Konvertieren + * @param text der Annotation + * @param type Annotationstype (Entsprechend den in http://www.w3.org/2000/10/annotationType# definierten.) + */ + public Annotation(String xpointer, String creator, String time, String annot, String type){ + this.xpointer=xpointer; + this.creator=creator; + this.time=time; + this.text=annot; + this.type=type; + this.url=null; + } + /** + * @return the annotationUri + */ + public String getAnnotationUri() { + return annotationUri; + } + /** + * @param annotationUri the annotationUri to set + */ + public void setAnnotationUri(String annotationUri) { + this.annotationUri = annotationUri; + } + + +} \ No newline at end of file