4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor Class Reference

Class which parses and process XML with messages with annotations for protocol version 2. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor:
Collaboration graph

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)
 

Detailed Description

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.

Author
Martin Petr (xpetrm05)

Definition at line 43 of file P2AnnotationProcessor.java.

Constructor & Destructor Documentation

cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.P2AnnotationProcessor ( )

Constructor

Definition at line 50 of file P2AnnotationProcessor.java.

Member Function Documentation

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.connectAnnotations ( ArrayList< Annotation annotsToConnect,
ArrayList< Annotation added 
)
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.

Parameters
annotsToConnectAnnotations in which links should be reconstructed
addedList of just added annotations

Definition at line 142 of file P2AnnotationProcessor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

Annotation cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.findAnnotByServUri ( ArrayList< Annotation annots,
String  uri 
)
private

Find annotation in the list by server uri

Parameters
annotsList of annotations
uriUri of annotation which should be found
Returns
If it was found returns given annotation, null otherwise

Definition at line 432 of file P2AnnotationProcessor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

Annotation cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.findAnnotByTempUri ( ArrayList< Annotation annots,
String  uri 
)
private

Find annotation in the list by temporary

Parameters
annotsList of annotations
uriUri of annotation which should be found
Returns
If it was found returns given annotation, null otherwise

Definition at line 414 of file P2AnnotationProcessor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

Annotation cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.procesAnnotAdd ( Element  annotationEl,
RequestInfo  requestInfo 
)
private

Method processes element with annotation to add.

Parameters
annotationElElement with annotation to add
requestInfoInformations about client request
Returns
Returns annotation to add (in case of error it returns null)

Definition at line 290 of file P2AnnotationProcessor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

Annotation cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.procesAnnotChange ( Element  annotationEl,
RequestInfo  requestInfo 
)
private

Method processes element with annotation to change.

Parameters
annotationElElement with annotation to change
requestInfoInformations about client request
Returns
Returns annotation to change (in case of error it returns null)

Definition at line 303 of file P2AnnotationProcessor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

Annotation cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.procesAnnotDelete ( Element  annotationEl,
RequestInfo  requestInfo 
)
private

Method processes element with annotation to delete.

Parameters
annotationElElement with annotation to delete
requestInfoInformations about client request
Returns
Returns annotation to delete (in case of error it returns null)

Definition at line 348 of file P2AnnotationProcessor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.processAddAnnotations ( Element  addAnnotationsEl,
RequestInfo  requestInfo 
)

Method processes element with annotations to add.

Parameters
addAnnotationsElElement with annotations to add
requestInfoInformations about client request

Definition at line 60 of file P2AnnotationProcessor.java.

Here is the call graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.processChangeAnnotations ( Element  changeAnnotationsEl,
RequestInfo  requestInfo 
)

Method processes element with annotations to change.

Parameters
changeAnnotationsElElement with annotations to change
requestInfoInformations about client request

Definition at line 87 of file P2AnnotationProcessor.java.

Here is the call graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.processDeleteAnnotations ( Element  deleteAnnotationsEl,
RequestInfo  requestInfo 
)

Method processes element with annotations to delete.

Parameters
deleteAnnotationsElElement with annotations to delete
requestInfoInformations about client request

Definition at line 114 of file P2AnnotationProcessor.java.

Here is the call graph for this function:

Member Data Documentation

RequestInfo cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotationProcessor.requestInfo = null
package

Informations about client request

Definition at line 45 of file P2AnnotationProcessor.java.


The documentation for this class was generated from the following file: