Package org.xwiki.rest.model.jaxb
Class Attachment
- java.lang.Object
-
- org.xwiki.rest.model.jaxb.LinkCollection
-
- 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="longSize" type="{http://www.w3.org/2001/XMLSchema}long"/> <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="authorName" 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"/> <element name="hierarchy" type="{http://www.xwiki.org}Hierarchy" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringauthorprotected StringauthorNameprotected Calendardateprotected Hierarchyhierarchyprotected Stringidprotected longlongSizeprotected StringmimeTypeprotected Stringnameprotected StringpageIdprotected StringpageVersionprotected intsizeprotected Stringversionprotected StringxwikiAbsoluteUrlprotected StringxwikiRelativeUrl-
Fields inherited from class org.xwiki.rest.model.jaxb.LinkCollection
links
-
-
Constructor Summary
Constructors Constructor Description Attachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthor()Gets the value of the author property.StringgetAuthorName()Gets the value of the authorName property.CalendargetDate()Gets the value of the date property.HierarchygetHierarchy()Gets the value of the hierarchy property.StringgetId()Gets the value of the id property.longgetLongSize()Gets the value of the longSize property.StringgetMimeType()Gets the value of the mimeType property.StringgetName()Gets the value of the name property.StringgetPageId()Gets the value of the pageId property.StringgetPageVersion()Gets the value of the pageVersion property.intgetSize()Gets the value of the size property.StringgetVersion()Gets the value of the version property.StringgetXwikiAbsoluteUrl()Gets the value of the xwikiAbsoluteUrl property.StringgetXwikiRelativeUrl()Gets the value of the xwikiRelativeUrl property.voidsetAuthor(String value)Sets the value of the author property.voidsetAuthorName(String value)Sets the value of the authorName property.voidsetDate(Calendar value)Sets the value of the date property.voidsetHierarchy(Hierarchy value)Sets the value of the hierarchy property.voidsetId(String value)Sets the value of the id property.voidsetLongSize(long value)Sets the value of the longSize property.voidsetMimeType(String value)Sets the value of the mimeType property.voidsetName(String value)Sets the value of the name property.voidsetPageId(String value)Sets the value of the pageId property.voidsetPageVersion(String value)Sets the value of the pageVersion property.voidsetSize(int value)Sets the value of the size property.voidsetVersion(String value)Sets the value of the version property.voidsetXwikiAbsoluteUrl(String value)Sets the value of the xwikiAbsoluteUrl property.voidsetXwikiRelativeUrl(String value)Sets the value of the xwikiRelativeUrl property.AttachmentwithAuthor(String value)AttachmentwithAuthorName(String value)AttachmentwithDate(Calendar value)AttachmentwithHierarchy(Hierarchy value)AttachmentwithId(String value)AttachmentwithLinks(Collection<Link> values)AttachmentwithLinks(Link... values)AttachmentwithLongSize(long value)AttachmentwithMimeType(String value)AttachmentwithName(String value)AttachmentwithPageId(String value)AttachmentwithPageVersion(String value)AttachmentwithSize(int value)AttachmentwithVersion(String value)AttachmentwithXwikiAbsoluteUrl(String value)AttachmentwithXwikiRelativeUrl(String value)-
Methods inherited from class org.xwiki.rest.model.jaxb.LinkCollection
getLinks
-
-
-
-
Field Detail
-
id
protected String id
-
name
protected String name
-
size
protected int size
-
longSize
protected long longSize
-
version
protected String version
-
pageId
protected String pageId
-
pageVersion
protected String pageVersion
-
mimeType
protected String mimeType
-
author
protected String author
-
authorName
protected String authorName
-
date
protected Calendar date
-
xwikiRelativeUrl
protected String xwikiRelativeUrl
-
xwikiAbsoluteUrl
protected String xwikiAbsoluteUrl
-
hierarchy
protected Hierarchy hierarchy
-
-
Method Detail
-
setId
public void setId(String value)
Sets the value of the id property.- Parameters:
value- allowed object isString
-
getName
public String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getSize
public int getSize()
Gets the value of the size property.
-
setSize
public void setSize(int value)
Sets the value of the size property.
-
getLongSize
public long getLongSize()
Gets the value of the longSize property.
-
setLongSize
public void setLongSize(long value)
Sets the value of the longSize property.
-
getVersion
public String getVersion()
Gets the value of the version property.- Returns:
- possible object is
String
-
setVersion
public void setVersion(String value)
Sets the value of the version property.- Parameters:
value- allowed object isString
-
getPageId
public String getPageId()
Gets the value of the pageId property.- Returns:
- possible object is
String
-
setPageId
public void setPageId(String value)
Sets the value of the pageId property.- Parameters:
value- allowed object isString
-
getPageVersion
public String getPageVersion()
Gets the value of the pageVersion property.- Returns:
- possible object is
String
-
setPageVersion
public void setPageVersion(String value)
Sets the value of the pageVersion property.- Parameters:
value- allowed object isString
-
getMimeType
public String getMimeType()
Gets the value of the mimeType property.- Returns:
- possible object is
String
-
setMimeType
public void setMimeType(String value)
Sets the value of the mimeType property.- Parameters:
value- allowed object isString
-
getAuthor
public String getAuthor()
Gets the value of the author property.- Returns:
- possible object is
String
-
setAuthor
public void setAuthor(String value)
Sets the value of the author property.- Parameters:
value- allowed object isString
-
getAuthorName
public String getAuthorName()
Gets the value of the authorName property.- Returns:
- possible object is
String
-
setAuthorName
public void setAuthorName(String value)
Sets the value of the authorName property.- Parameters:
value- allowed object isString
-
getDate
public Calendar getDate()
Gets the value of the date property.- Returns:
- possible object is
String
-
setDate
public void setDate(Calendar value)
Sets the value of the date property.- Parameters:
value- allowed object isString
-
getXwikiRelativeUrl
public String getXwikiRelativeUrl()
Gets the value of the xwikiRelativeUrl property.- Returns:
- possible object is
String
-
setXwikiRelativeUrl
public void setXwikiRelativeUrl(String value)
Sets the value of the xwikiRelativeUrl property.- Parameters:
value- allowed object isString
-
getXwikiAbsoluteUrl
public String getXwikiAbsoluteUrl()
Gets the value of the xwikiAbsoluteUrl property.- Returns:
- possible object is
String
-
setXwikiAbsoluteUrl
public void setXwikiAbsoluteUrl(String value)
Sets the value of the xwikiAbsoluteUrl property.- Parameters:
value- allowed object isString
-
getHierarchy
public Hierarchy getHierarchy()
Gets the value of the hierarchy property.- Returns:
- possible object is
Hierarchy
-
setHierarchy
public void setHierarchy(Hierarchy value)
Sets the value of the hierarchy property.- Parameters:
value- allowed object isHierarchy
-
withId
public Attachment withId(String value)
-
withName
public Attachment withName(String value)
-
withSize
public Attachment withSize(int value)
-
withLongSize
public Attachment withLongSize(long value)
-
withVersion
public Attachment withVersion(String value)
-
withPageId
public Attachment withPageId(String value)
-
withPageVersion
public Attachment withPageVersion(String value)
-
withMimeType
public Attachment withMimeType(String value)
-
withAuthor
public Attachment withAuthor(String value)
-
withAuthorName
public Attachment withAuthorName(String value)
-
withDate
public Attachment withDate(Calendar value)
-
withXwikiRelativeUrl
public Attachment withXwikiRelativeUrl(String value)
-
withXwikiAbsoluteUrl
public Attachment withXwikiAbsoluteUrl(String value)
-
withHierarchy
public Attachment withHierarchy(Hierarchy value)
-
withLinks
public Attachment withLinks(Link... values)
- Overrides:
withLinksin classLinkCollection
-
withLinks
public Attachment withLinks(Collection<Link> values)
- Overrides:
withLinksin classLinkCollection
-
-