org.xwiki.rest.model.jaxb
Class Attachment

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

public class Attachment
extends LinkCollection

Java class for Attachment complex type.

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

 <complexType name="Attachment">
   <complexContent>
     <extension base="{http://www.xwiki.org}LinkCollection">
       <sequence>
         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="size" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="version" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="pageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="pageVersion" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="mimeType" 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="xwikiRelativeUrl" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="xwikiAbsoluteUrl" type="{http://www.w3.org/2001/XMLSchema}string"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.lang.String author
           
protected  java.util.Calendar date
           
protected  java.lang.String id
           
protected  java.lang.String mimeType
           
protected  java.lang.String name
           
protected  java.lang.String pageId
           
protected  java.lang.String pageVersion
           
protected  int size
           
protected  java.lang.String version
           
protected  java.lang.String xwikiAbsoluteUrl
           
protected  java.lang.String xwikiRelativeUrl
           
 
Fields inherited from class org.xwiki.rest.model.jaxb.LinkCollection
links
 
Constructor Summary
Attachment()
           
 
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 getId()
          Gets the value of the id property.
 java.lang.String getMimeType()
          Gets the value of the mimeType property.
 java.lang.String getName()
          Gets the value of the name property.
 java.lang.String getPageId()
          Gets the value of the pageId property.
 java.lang.String getPageVersion()
          Gets the value of the pageVersion property.
 int getSize()
          Gets the value of the size property.
 java.lang.String getVersion()
          Gets the value of the version property.
 java.lang.String getXwikiAbsoluteUrl()
          Gets the value of the xwikiAbsoluteUrl property.
 java.lang.String getXwikiRelativeUrl()
          Gets the value of the xwikiRelativeUrl 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 setId(java.lang.String value)
          Sets the value of the id property.
 void setMimeType(java.lang.String value)
          Sets the value of the mimeType property.
 void setName(java.lang.String value)
          Sets the value of the name property.
 void setPageId(java.lang.String value)
          Sets the value of the pageId property.
 void setPageVersion(java.lang.String value)
          Sets the value of the pageVersion property.
 void setSize(int value)
          Sets the value of the size property.
 void setVersion(java.lang.String value)
          Sets the value of the version property.
 void setXwikiAbsoluteUrl(java.lang.String value)
          Sets the value of the xwikiAbsoluteUrl property.
 void setXwikiRelativeUrl(java.lang.String value)
          Sets the value of the xwikiRelativeUrl property.
 Attachment withAuthor(java.lang.String value)
           
 Attachment withDate(java.util.Calendar value)
           
 Attachment withId(java.lang.String value)
           
 Attachment withLinks(java.util.Collection<Link> values)
           
 Attachment withLinks(Link... values)
           
 Attachment withMimeType(java.lang.String value)
           
 Attachment withName(java.lang.String value)
           
 Attachment withPageId(java.lang.String value)
           
 Attachment withPageVersion(java.lang.String value)
           
 Attachment withSize(int value)
           
 Attachment withVersion(java.lang.String value)
           
 Attachment withXwikiAbsoluteUrl(java.lang.String value)
           
 Attachment withXwikiRelativeUrl(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 java.lang.String id

name

protected java.lang.String name

size

protected int size

version

protected java.lang.String version

pageId

protected java.lang.String pageId

pageVersion

protected java.lang.String pageVersion

mimeType

protected java.lang.String mimeType

author

protected java.lang.String author

date

protected java.util.Calendar date

xwikiRelativeUrl

protected java.lang.String xwikiRelativeUrl

xwikiAbsoluteUrl

protected java.lang.String xwikiAbsoluteUrl
Constructor Detail

Attachment

public Attachment()
Method Detail

getId

public java.lang.String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(java.lang.String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

getName

public java.lang.String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

public void setName(java.lang.String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

getSize

public int getSize()
Gets the value of the size property.


setSize

public void setSize(int value)
Sets the value of the size property.


getVersion

public java.lang.String getVersion()
Gets the value of the version property.

Returns:
possible object is String

setVersion

public void setVersion(java.lang.String value)
Sets the value of the version property.

Parameters:
value - allowed object is String

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

getPageVersion

public java.lang.String getPageVersion()
Gets the value of the pageVersion property.

Returns:
possible object is String

setPageVersion

public void setPageVersion(java.lang.String value)
Sets the value of the pageVersion property.

Parameters:
value - allowed object is String

getMimeType

public java.lang.String getMimeType()
Gets the value of the mimeType property.

Returns:
possible object is String

setMimeType

public void setMimeType(java.lang.String value)
Sets the value of the mimeType 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

getXwikiRelativeUrl

public java.lang.String getXwikiRelativeUrl()
Gets the value of the xwikiRelativeUrl property.

Returns:
possible object is String

setXwikiRelativeUrl

public void setXwikiRelativeUrl(java.lang.String value)
Sets the value of the xwikiRelativeUrl property.

Parameters:
value - allowed object is String

getXwikiAbsoluteUrl

public java.lang.String getXwikiAbsoluteUrl()
Gets the value of the xwikiAbsoluteUrl property.

Returns:
possible object is String

setXwikiAbsoluteUrl

public void setXwikiAbsoluteUrl(java.lang.String value)
Sets the value of the xwikiAbsoluteUrl property.

Parameters:
value - allowed object is String

withId

public Attachment withId(java.lang.String value)

withName

public Attachment withName(java.lang.String value)

withSize

public Attachment withSize(int value)

withVersion

public Attachment withVersion(java.lang.String value)

withPageId

public Attachment withPageId(java.lang.String value)

withPageVersion

public Attachment withPageVersion(java.lang.String value)

withMimeType

public Attachment withMimeType(java.lang.String value)

withAuthor

public Attachment withAuthor(java.lang.String value)

withDate

public Attachment withDate(java.util.Calendar value)

withXwikiRelativeUrl

public Attachment withXwikiRelativeUrl(java.lang.String value)

withXwikiAbsoluteUrl

public Attachment withXwikiAbsoluteUrl(java.lang.String value)

withLinks

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

withLinks

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


Copyright © 2004-2009 XWiki. All Rights Reserved.