org.xwiki.annotation.rest.model.jaxb
Class AnnotationAddRequest

java.lang.Object
  extended by org.xwiki.annotation.rest.model.jaxb.AnnotationRequest
      extended by org.xwiki.annotation.rest.model.jaxb.AnnotationUpdateRequest
          extended by org.xwiki.annotation.rest.model.jaxb.AnnotationAddRequest

public class AnnotationAddRequest
extends AnnotationUpdateRequest

Extends the annotation update request by adding the set of 'special' fields for annotation selection.

Java class for AnnotationAddRequest complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="AnnotationAddRequest">
   <complexContent>
     <extension base="{http://www.xwiki.org}AnnotationUpdateRequest">
       <sequence>
         <element name="selection" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="selectionOffset" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="selectionContext" type="{http://www.w3.org/2001/XMLSchema}string"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xwiki.annotation.rest.model.jaxb.AnnotationRequest
AnnotationRequest.Request
 
Field Summary
protected  java.lang.String selection
           
protected  java.lang.String selectionContext
           
protected  int selectionOffset
           
 
Fields inherited from class org.xwiki.annotation.rest.model.jaxb.AnnotationUpdateRequest
annotation
 
Fields inherited from class org.xwiki.annotation.rest.model.jaxb.AnnotationRequest
filter, request
 
Constructor Summary
AnnotationAddRequest()
           
 
Method Summary
 java.lang.String getSelection()
          Gets the value of the selection property.
 java.lang.String getSelectionContext()
          Gets the value of the selectionContext property.
 int getSelectionOffset()
          Gets the value of the selectionOffset property.
 void setSelection(java.lang.String value)
          Sets the value of the selection property.
 void setSelectionContext(java.lang.String value)
          Sets the value of the selectionContext property.
 void setSelectionOffset(int value)
          Sets the value of the selectionOffset property.
 AnnotationAddRequest withAnnotation(AnnotationFieldCollection value)
           
 AnnotationAddRequest withFilter(AnnotationFieldCollection value)
           
 AnnotationAddRequest withRequest(AnnotationRequest.Request value)
           
 AnnotationAddRequest withSelection(java.lang.String value)
           
 AnnotationAddRequest withSelectionContext(java.lang.String value)
           
 AnnotationAddRequest withSelectionOffset(int value)
           
 
Methods inherited from class org.xwiki.annotation.rest.model.jaxb.AnnotationUpdateRequest
getAnnotation, setAnnotation
 
Methods inherited from class org.xwiki.annotation.rest.model.jaxb.AnnotationRequest
getFilter, getRequest, setFilter, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selection

protected java.lang.String selection

selectionOffset

protected int selectionOffset

selectionContext

protected java.lang.String selectionContext
Constructor Detail

AnnotationAddRequest

public AnnotationAddRequest()
Method Detail

getSelection

public java.lang.String getSelection()
Gets the value of the selection property.

Returns:
possible object is String

setSelection

public void setSelection(java.lang.String value)
Sets the value of the selection property.

Parameters:
value - allowed object is String

getSelectionOffset

public int getSelectionOffset()
Gets the value of the selectionOffset property.


setSelectionOffset

public void setSelectionOffset(int value)
Sets the value of the selectionOffset property.


getSelectionContext

public java.lang.String getSelectionContext()
Gets the value of the selectionContext property.

Returns:
possible object is String

setSelectionContext

public void setSelectionContext(java.lang.String value)
Sets the value of the selectionContext property.

Parameters:
value - allowed object is String

withSelection

public AnnotationAddRequest withSelection(java.lang.String value)

withSelectionOffset

public AnnotationAddRequest withSelectionOffset(int value)

withSelectionContext

public AnnotationAddRequest withSelectionContext(java.lang.String value)

withAnnotation

public AnnotationAddRequest withAnnotation(AnnotationFieldCollection value)
Overrides:
withAnnotation in class AnnotationUpdateRequest

withRequest

public AnnotationAddRequest withRequest(AnnotationRequest.Request value)
Overrides:
withRequest in class AnnotationUpdateRequest

withFilter

public AnnotationAddRequest withFilter(AnnotationFieldCollection value)
Overrides:
withFilter in class AnnotationUpdateRequest


Copyright © 2004-2011 XWiki. All Rights Reserved.