4A Server -
2.0
|
Abstract class provides a parser for the annotation of protocol version 2. More...
Public Member Functions | |
Annotation | processAnnotation (Element annotationEl, RequestInfo requestInfo) |
Static Protected Member Functions | |
static String | getUriType (String uri) |
Package Functions | |
boolean | isDocumentUri (String uri) |
Private Member Functions | |
boolean | processTarget (Element targetEl, Annotation annot, RequestInfo requestInfo) |
ArrayList< Fragment > | processSRComposite (Element compositeEl, Annotation annot, RequestInfo requestInfo) |
AnnotDocument | processHasSource (Annotation annot, Element hasSourceEl, RequestInfo requestInfo) |
Fragment | processSpecificResource (Element specificResourceEl, Annotation annot, RequestInfo requestInfo) |
boolean | processXpointer (String xpointer, Fragment fragment, Annotation annot, RequestInfo requestInfo) |
boolean | processBodies (NodeList bodiesOfAnnot, Annotation annot, RequestInfo requestInfo) |
boolean | processAnnotContents (NodeList contentsOfAnnot, Annotation annot, RequestInfo requestInfo) |
boolean | processBody (Element bodyEl, Annotation annot, RequestInfo requestInfo) |
User | processAuthor (Element anotatedByEl, String annotUri, RequestInfo requestInfo) |
Date | processCreationDate (Element annotatedAtEl, String annotUri, RequestInfo requestInfo, boolean created) |
boolean | processAnnotType (Element annotTypeEl, Annotation annot, RequestInfo requestInfo) |
AnnotDocument | getDocumentFromUri (String uri, Annotation annot, RequestInfo requestInfo) |
ArrayList< P2BaseTrix > | processTrixElements (NodeList trixList, RequestInfo requestInfo, Annotation annot) |
void | parseGeoPoint (P2SimpleTrix att, Element el) |
String | getGeoPointNodeValue (Node node) |
boolean | processAttributesNew (Element attributesEl, Annotation annot, RequestInfo requestInfo) |
Static Private Member Functions | |
static boolean | isUriOfBody (String uri) |
Abstract class provides a parser for the annotation of protocol version 2.
Abstract class provides a parser for the annotation of protocol version 2.
Definition at line 45 of file P2AnnotBaseProcessor.java.
|
private |
Method finds document in server database by uri of document.
uri | uri of document |
annot | Annotation for which we are searching target |
requestInfo | informations about client request |
Definition at line 897 of file P2AnnotBaseProcessor.java.
|
private |
Gets value of passed node
node | node whose value is going to be returned |
Definition at line 1382 of file P2AnnotBaseProcessor.java.
|
staticprotected |
Method detects the type of annotation uri. (temp/serv/sugg)
uri | uri from which method will determine type of uri |
Definition at line 961 of file P2AnnotBaseProcessor.java.
|
package |
Check if given uri is uri of document.
uri | uri to check |
Definition at line 1498 of file P2AnnotBaseProcessor.java.
|
staticprivate |
Method determine if given uri is uri of document.
uri | uri that will be tested |
Definition at line 947 of file P2AnnotBaseProcessor.java.
|
private |
Process GeoPoint attribute and assign it's value into appropriate object
att | Trix attribute object, into which processed value should be assigned |
el | Element which contains GeoPoint value |
Definition at line 1350 of file P2AnnotBaseProcessor.java.
Annotation cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotBaseProcessor.processAnnotation | ( | Element | annotationEl, |
RequestInfo | requestInfo | ||
) |
Method process annotation from given element.
annotationEl | element with annotation for process |
requestInfo | informations about client request |
Definition at line 54 of file P2AnnotBaseProcessor.java.
|
private |
Method process annotation contents element.
contentsOfAnnot | element with contents of annotation for process |
annot | annotation which information from contents will be set |
requestInfo | informations about client request |
Definition at line 581 of file P2AnnotBaseProcessor.java.
|
private |
Method process type of annotation and add them into annotation.
annotTypeEl | element with type of annotation for process |
annot | annotation which type will be set |
requestInfo | informations about client request |
Definition at line 836 of file P2AnnotBaseProcessor.java.
|
private |
Method process attributes of annotation and add them into annotation.
attributesEl | element with attributes of annotations for process |
annot | annotation that given attributes belongs |
requestInfo | informations about client request |
Search for rdf:type and trix:TriX elements as they has to be present within content element
Definition at line 1401 of file P2AnnotBaseProcessor.java.
|
private |
Method process author of annotation.
anotatedByEl | element with author of annotation for process |
annotUri | URI of annotation to which element belongs |
requestInfo | informations about client request |
Definition at line 695 of file P2AnnotBaseProcessor.java.
|
private |
Method process element with bodies of annotation.
bodiesOfAnnot | element with bodies of annotation for process |
annot | annotation which bodies (as fragments) belongs |
requestInfo | informations about client request |
Definition at line 526 of file P2AnnotBaseProcessor.java.
|
private |
Method process body element of annotation.
bodyEl | element with body of annotation for process |
annot | annotation which information from body will be set |
requestInfo | informations about client request |
Check if type, format and chars elements are within this body
Definition at line 632 of file P2AnnotBaseProcessor.java.
|
private |
Method process creation and serialization date of annotation.
annotatedAtEl | element with creation date of annotation for process |
annotUri | URI of annotation to which element belongs |
requestInfo | informations about client request |
created | tag if its date of creation element |
Definition at line 778 of file P2AnnotBaseProcessor.java.
|
private |
Method process source element (element with inforamtions about document) of annotation.
annot | Annotation to which element belongs |
hasSourceEl | Element with source of annotation for process |
requestInfo | Informations about client request |
Definition at line 336 of file P2AnnotBaseProcessor.java.
|
private |
Method process specific resources of annotations and save them as fragments.
specificResourceEl | element with specific resources of annotation for process |
annot | annotation which specific resources (fragment) belongs |
requestInfo | informations about client request |
Definition at line 396 of file P2AnnotBaseProcessor.java.
|
private |
Method process element with multiple annotated fragments of document.
compositeEl | element with multiple annotated fragments for process |
annot | annotation which multiple fragments belongs |
requestInfo | informations about client request |
Definition at line 291 of file P2AnnotBaseProcessor.java.
|
private |
Method process target element of annotation.
targetEl | element with target of annotation for process |
annot | annotation which information from target element will be set |
requestInfo | informations about client request |
Definition at line 185 of file P2AnnotBaseProcessor.java.
|
private |
Method that process each of triple element from user message
trixList | List of trixes |
requestInfo | Info about clients request |
annot | Ref annotation |
Definition at line 975 of file P2AnnotBaseProcessor.java.
|
private |
Method process xpointer from given string and set informations into given fragment object.
xpointer | xpointer string that will be parsed |
fragment | fragment that will be set |
annot | Annotation to which fragment belongs |
requestInfo | informations about client request |
Definition at line 476 of file P2AnnotBaseProcessor.java.