Class AnnotationResponse
- java.lang.Object
-
- org.xwiki.annotation.rest.model.jaxb.AnnotationResponse
-
public class AnnotationResponse extends Object
Stores the server response for an annotation request, containing the annotated content requested, a response code and a response message.Java class for AnnotationResponse complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AnnotationResponse"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="responseCode" type="{http://www.w3.org/2001/XMLSchema}int"/> <element name="responseMessage" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="annotatedContent" type="{http://www.xwiki.org}AnnotatedContent"/> </sequence> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected AnnotatedContent
annotatedContent
protected int
responseCode
protected String
responseMessage
-
Constructor Summary
Constructors Constructor Description AnnotationResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotatedContent
getAnnotatedContent()
Gets the value of the annotatedContent property.int
getResponseCode()
Gets the value of the responseCode property.String
getResponseMessage()
Gets the value of the responseMessage property.void
setAnnotatedContent(AnnotatedContent value)
Sets the value of the annotatedContent property.void
setResponseCode(int value)
Sets the value of the responseCode property.void
setResponseMessage(String value)
Sets the value of the responseMessage property.AnnotationResponse
withAnnotatedContent(AnnotatedContent value)
AnnotationResponse
withResponseCode(int value)
AnnotationResponse
withResponseMessage(String value)
-
-
-
Field Detail
-
responseCode
protected int responseCode
-
responseMessage
protected String responseMessage
-
annotatedContent
protected AnnotatedContent annotatedContent
-
-
Method Detail
-
getResponseCode
public int getResponseCode()
Gets the value of the responseCode property.
-
setResponseCode
public void setResponseCode(int value)
Sets the value of the responseCode property.
-
getResponseMessage
public String getResponseMessage()
Gets the value of the responseMessage property.- Returns:
- possible object is
String
-
setResponseMessage
public void setResponseMessage(String value)
Sets the value of the responseMessage property.- Parameters:
value
- allowed object isString
-
getAnnotatedContent
public AnnotatedContent getAnnotatedContent()
Gets the value of the annotatedContent property.- Returns:
- possible object is
AnnotatedContent
-
setAnnotatedContent
public void setAnnotatedContent(AnnotatedContent value)
Sets the value of the annotatedContent property.- Parameters:
value
- allowed object isAnnotatedContent
-
withResponseCode
public AnnotationResponse withResponseCode(int value)
-
withResponseMessage
public AnnotationResponse withResponseMessage(String value)
-
withAnnotatedContent
public AnnotationResponse withAnnotatedContent(AnnotatedContent value)
-
-