org.xwiki.rest.model.jaxb
Class Comment

java.lang.Object
  extended by org.xwiki.rest.model.jaxb.LinkCollection
      extended by org.xwiki.rest.model.jaxb.Comment

public class Comment
extends LinkCollection

Java class for Comment complex type.

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

 <complexType name="Comment">
   <complexContent>
     <extension base="{http://www.xwiki.org}LinkCollection">
       <sequence>
         <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="pageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="author" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="date" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
         <element name="highlight" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="replyTo" type="{http://www.w3.org/2001/XMLSchema}int"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.lang.String author
           
protected  java.util.Calendar date
           
protected  java.lang.String highlight
           
protected  int id
           
protected  java.lang.String pageId
           
protected  java.lang.Integer replyTo
           
protected  java.lang.String text
           
 
Fields inherited from class org.xwiki.rest.model.jaxb.LinkCollection
links
 
Constructor Summary
Comment()
           
 
Method Summary
 java.lang.String getAuthor()
          Gets the value of the author property.
 java.util.Calendar getDate()
          Gets the value of the date property.
 java.lang.String getHighlight()
          Gets the value of the highlight property.
 int getId()
          Gets the value of the id property.
 java.lang.String getPageId()
          Gets the value of the pageId property.
 java.lang.Integer getReplyTo()
          Gets the value of the replyTo property.
 java.lang.String getText()
          Gets the value of the text property.
 void setAuthor(java.lang.String value)
          Sets the value of the author property.
 void setDate(java.util.Calendar value)
          Sets the value of the date property.
 void setHighlight(java.lang.String value)
          Sets the value of the highlight property.
 void setId(int value)
          Sets the value of the id property.
 void setPageId(java.lang.String value)
          Sets the value of the pageId property.
 void setReplyTo(java.lang.Integer value)
          Sets the value of the replyTo property.
 void setText(java.lang.String value)
          Sets the value of the text property.
 Comment withAuthor(java.lang.String value)
           
 Comment withDate(java.util.Calendar value)
           
 Comment withHighlight(java.lang.String value)
           
 Comment withId(int value)
           
 Comment withLinks(java.util.Collection<Link> values)
           
 Comment withLinks(Link... values)
           
 Comment withPageId(java.lang.String value)
           
 Comment withReplyTo(java.lang.Integer value)
           
 Comment withText(java.lang.String value)
           
 
Methods inherited from class org.xwiki.rest.model.jaxb.LinkCollection
getLinks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected int id

pageId

protected java.lang.String pageId

author

protected java.lang.String author

date

protected java.util.Calendar date

highlight

protected java.lang.String highlight

text

protected java.lang.String text

replyTo

protected java.lang.Integer replyTo
Constructor Detail

Comment

public Comment()
Method Detail

getId

public int getId()
Gets the value of the id property.


setId

public void setId(int value)
Sets the value of the id property.


getPageId

public java.lang.String getPageId()
Gets the value of the pageId property.

Returns:
possible object is String

setPageId

public void setPageId(java.lang.String value)
Sets the value of the pageId property.

Parameters:
value - allowed object is String

getAuthor

public java.lang.String getAuthor()
Gets the value of the author property.

Returns:
possible object is String

setAuthor

public void setAuthor(java.lang.String value)
Sets the value of the author property.

Parameters:
value - allowed object is String

getDate

public java.util.Calendar getDate()
Gets the value of the date property.

Returns:
possible object is String

setDate

public void setDate(java.util.Calendar value)
Sets the value of the date property.

Parameters:
value - allowed object is String

getHighlight

public java.lang.String getHighlight()
Gets the value of the highlight property.

Returns:
possible object is String

setHighlight

public void setHighlight(java.lang.String value)
Sets the value of the highlight property.

Parameters:
value - allowed object is String

getText

public java.lang.String getText()
Gets the value of the text property.

Returns:
possible object is String

setText

public void setText(java.lang.String value)
Sets the value of the text property.

Parameters:
value - allowed object is String

getReplyTo

public java.lang.Integer getReplyTo()
Gets the value of the replyTo property.

Returns:
possible object is Integer

setReplyTo

public void setReplyTo(java.lang.Integer value)
Sets the value of the replyTo property.

Parameters:
value - allowed object is Integer

withId

public Comment withId(int value)

withPageId

public Comment withPageId(java.lang.String value)

withAuthor

public Comment withAuthor(java.lang.String value)

withDate

public Comment withDate(java.util.Calendar value)

withHighlight

public Comment withHighlight(java.lang.String value)

withText

public Comment withText(java.lang.String value)

withReplyTo

public Comment withReplyTo(java.lang.Integer value)

withLinks

public Comment withLinks(Link... values)
Overrides:
withLinks in class LinkCollection

withLinks

public Comment withLinks(java.util.Collection<Link> values)
Overrides:
withLinks in class LinkCollection


Copyright © 2004-2010 XWiki. All Rights Reserved.