Mercurial > hg > AnnotationManager
view src/main/java/de/mpiwg/itgroup/annotationManager/RDFHandling/Annotation.java @ 29:cf8166ee8918
still working on new annotations...
author | casties |
---|---|
date | Mon, 07 May 2012 19:50:39 +0200 |
parents | a3e324009990 |
children | 40846c0b344d |
line wrap: on
line source
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. /** page number in text document */ public String page=null; /** URL of a display of the page of the document */ public String displayUrl=null; 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; } }