Class AnnotationAddRequest
- java.lang.Object
-
- org.xwiki.annotation.rest.model.jaxb.AnnotationRequest
-
- org.xwiki.annotation.rest.model.jaxb.AnnotationUpdateRequest
-
- 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
Fields Modifier and Type Field Description protected String
selection
protected 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
Constructors Constructor Description AnnotationAddRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSelection()
Gets the value of the selection property.String
getSelectionContext()
Gets the value of the selectionContext property.int
getSelectionOffset()
Gets the value of the selectionOffset property.void
setSelection(String value)
Sets the value of the selection property.void
setSelectionContext(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(String value)
AnnotationAddRequest
withSelectionContext(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
-
-
-
-
Method Detail
-
getSelection
public String getSelection()
Gets the value of the selection property.- Returns:
- possible object is
String
-
setSelection
public void setSelection(String value)
Sets the value of the selection property.- Parameters:
value
- allowed object isString
-
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 String getSelectionContext()
Gets the value of the selectionContext property.- Returns:
- possible object is
String
-
setSelectionContext
public void setSelectionContext(String value)
Sets the value of the selectionContext property.- Parameters:
value
- allowed object isString
-
withSelection
public AnnotationAddRequest withSelection(String value)
-
withSelectionOffset
public AnnotationAddRequest withSelectionOffset(int value)
-
withSelectionContext
public AnnotationAddRequest withSelectionContext(String value)
-
withAnnotation
public AnnotationAddRequest withAnnotation(AnnotationFieldCollection value)
- Overrides:
withAnnotation
in classAnnotationUpdateRequest
-
withRequest
public AnnotationAddRequest withRequest(AnnotationRequest.Request value)
- Overrides:
withRequest
in classAnnotationUpdateRequest
-
withFilter
public AnnotationAddRequest withFilter(AnnotationFieldCollection value)
- Overrides:
withFilter
in classAnnotationUpdateRequest
-
-