4A Server -
2.0
|
Class which parses and process XML with messages with annotations for protocol version 2. More...
Public Member Functions | |
P2AnnotationProcessor () | |
void | processAddAnnotations (Element addAnnotationsEl, RequestInfo requestInfo) |
void | processChangeAnnotations (Element changeAnnotationsEl, RequestInfo requestInfo) |
void | processDeleteAnnotations (Element deleteAnnotationsEl, RequestInfo requestInfo) |
Public Member Functions inherited from cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotBaseProcessor | |
Annotation | processAnnotation (Element annotationEl, RequestInfo requestInfo) |
Package Attributes | |
RequestInfo | requestInfo = null |
Private Member Functions | |
void | connectAnnotations (ArrayList< Annotation > annotsToConnect, ArrayList< Annotation > added) |
Annotation | procesAnnotAdd (Element annotationEl, RequestInfo requestInfo) |
Annotation | procesAnnotChange (Element annotationEl, RequestInfo requestInfo) |
Annotation | procesAnnotDelete (Element annotationEl, RequestInfo requestInfo) |
Annotation | findAnnotByTempUri (ArrayList< Annotation > annots, String uri) |
Annotation | findAnnotByServUri (ArrayList< Annotation > annots, String uri) |
Additional Inherited Members | |
Static Protected Member Functions inherited from cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotBaseProcessor | |
static String | getUriType (String uri) |
Package Functions inherited from cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotBaseProcessor | |
boolean | isDocumentUri (String uri) |
Class which parses and process XML with messages with annotations for protocol version 2.
Class which parses and process XML with messages with annotations for protocol version 2.
Definition at line 43 of file P2AnnotationProcessor.java.
cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.P2AnnotationProcessor | ( | ) |
Constructor
Definition at line 50 of file P2AnnotationProcessor.java.
|
private |
Method which reconstruct links between annotation objects (references to appropriate objects) using URIs in attributes. For example if there is link to another annotation but only URI of annotation is set in the attribute, it will set also reference to linked annotation. It also reconstruct both sides of nesting relation.
annotsToConnect | Annotations in which links should be reconstructed |
added | List of just added annotations |
Definition at line 142 of file P2AnnotationProcessor.java.
|
private |
Find annotation in the list by server uri
annots | List of annotations |
uri | Uri of annotation which should be found |
Definition at line 432 of file P2AnnotationProcessor.java.
|
private |
Find annotation in the list by temporary
annots | List of annotations |
uri | Uri of annotation which should be found |
Definition at line 414 of file P2AnnotationProcessor.java.
|
private |
Method processes element with annotation to add.
annotationEl | Element with annotation to add |
requestInfo | Informations about client request |
Definition at line 290 of file P2AnnotationProcessor.java.
|
private |
Method processes element with annotation to change.
annotationEl | Element with annotation to change |
requestInfo | Informations about client request |
Definition at line 303 of file P2AnnotationProcessor.java.
|
private |
Method processes element with annotation to delete.
annotationEl | Element with annotation to delete |
requestInfo | Informations about client request |
Definition at line 348 of file P2AnnotationProcessor.java.
void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.processAddAnnotations | ( | Element | addAnnotationsEl, |
RequestInfo | requestInfo | ||
) |
Method processes element with annotations to add.
addAnnotationsEl | Element with annotations to add |
requestInfo | Informations about client request |
Definition at line 60 of file P2AnnotationProcessor.java.
void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.processChangeAnnotations | ( | Element | changeAnnotationsEl, |
RequestInfo | requestInfo | ||
) |
Method processes element with annotations to change.
changeAnnotationsEl | Element with annotations to change |
requestInfo | Informations about client request |
Definition at line 87 of file P2AnnotationProcessor.java.
void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.processDeleteAnnotations | ( | Element | deleteAnnotationsEl, |
RequestInfo | requestInfo | ||
) |
Method processes element with annotations to delete.
deleteAnnotationsEl | Element with annotations to delete |
requestInfo | Informations about client request |
Definition at line 114 of file P2AnnotationProcessor.java.
|
package |
Informations about client request
Definition at line 45 of file P2AnnotationProcessor.java.