public class AnnotationAddRequest extends AnnotationUpdateRequest
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>
AnnotationRequest.Request
Modifier and Type | Field and Description |
---|---|
protected String |
selection |
protected String |
selectionContext |
protected int |
selectionOffset |
annotation
filter, request
Constructor and Description |
---|
AnnotationAddRequest() |
Modifier and Type | Method and 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) |
getAnnotation, setAnnotation
getFilter, getRequest, setFilter, setRequest
protected String selection
protected int selectionOffset
protected String selectionContext
public String getSelection()
String
public void setSelection(String value)
value
- allowed object is
String
public int getSelectionOffset()
public void setSelectionOffset(int value)
public String getSelectionContext()
String
public void setSelectionContext(String value)
value
- allowed object is
String
public AnnotationAddRequest withSelection(String value)
public AnnotationAddRequest withSelectionOffset(int value)
public AnnotationAddRequest withSelectionContext(String value)
public AnnotationAddRequest withAnnotation(AnnotationFieldCollection value)
withAnnotation
in class AnnotationUpdateRequest
public AnnotationAddRequest withRequest(AnnotationRequest.Request value)
withRequest
in class AnnotationUpdateRequest
public AnnotationAddRequest withFilter(AnnotationFieldCollection value)
withFilter
in class AnnotationUpdateRequest
Copyright © 2004–2021 XWiki. All rights reserved.