Mercurial > hg > AnnotationManager
diff src/main/java/de/mpiwg/itgroup/annotationManager/RDFHandling/Annotation.java @ 23:a3e324009990
now Mavenified!
removed tiny-mce javascript from html frontend.
still needs TripleStoreManager project in Eclipse.
jsontoken 1.1 has to be built manually.
| author | casties |
|---|---|
| date | Tue, 03 Apr 2012 13:05:05 +0200 |
| parents | src/de/mpiwg/itgroup/annotationManager/RDFHandling/Annotation.java@b0ef5c860464 |
| children | cf8166ee8918 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/mpiwg/itgroup/annotationManager/RDFHandling/Annotation.java Tue Apr 03 13:05:05 2012 +0200 @@ -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
