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

java.lang.Object
  extended by org.xwiki.annotation.rest.model.jaxb.AnnotationResponse

public class AnnotationResponse
extends java.lang.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
protected  AnnotatedContent annotatedContent
           
protected  int responseCode
           
protected  java.lang.String responseMessage
           
 
Constructor Summary
AnnotationResponse()
           
 
Method Summary
 AnnotatedContent getAnnotatedContent()
          Gets the value of the annotatedContent property.
 int getResponseCode()
          Gets the value of the responseCode property.
 java.lang.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(java.lang.String value)
          Sets the value of the responseMessage property.
 AnnotationResponse withAnnotatedContent(AnnotatedContent value)
           
 AnnotationResponse withResponseCode(int value)
           
 AnnotationResponse withResponseMessage(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

responseCode

protected int responseCode

responseMessage

protected java.lang.String responseMessage

annotatedContent

protected AnnotatedContent annotatedContent
Constructor Detail

AnnotationResponse

public AnnotationResponse()
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 java.lang.String getResponseMessage()
Gets the value of the responseMessage property.

Returns:
possible object is String

setResponseMessage

public void setResponseMessage(java.lang.String value)
Sets the value of the responseMessage property.

Parameters:
value - allowed object is String

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 is AnnotatedContent

withResponseCode

public AnnotationResponse withResponseCode(int value)

withResponseMessage

public AnnotationResponse withResponseMessage(java.lang.String value)

withAnnotatedContent

public AnnotationResponse withAnnotatedContent(AnnotatedContent value)


Copyright © 2004-2011 XWiki. All Rights Reserved.