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>
Modifier and Type | Field and Description |
---|---|
protected String |
author |
protected String |
authorName |
protected Calendar |
date |
protected Hierarchy |
hierarchy |
protected String |
id |
protected long |
longSize |
protected String |
mimeType |
protected String |
name |
protected String |
pageId |
protected String |
pageVersion |
protected int |
size |
protected String |
version |
protected String |
xwikiAbsoluteUrl |
protected String |
xwikiRelativeUrl |
links
Constructor and Description |
---|
Attachment() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthor()
Gets the value of the author property.
|
String |
getAuthorName()
Gets the value of the authorName property.
|
Calendar |
getDate()
Gets the value of the date property.
|
Hierarchy |
getHierarchy()
Gets the value of the hierarchy property.
|
String |
getId()
Gets the value of the id property.
|
long |
getLongSize()
Gets the value of the longSize property.
|
String |
getMimeType()
Gets the value of the mimeType property.
|
String |
getName()
Gets the value of the name property.
|
String |
getPageId()
Gets the value of the pageId property.
|
String |
getPageVersion()
Gets the value of the pageVersion property.
|
int |
getSize()
Gets the value of the size property.
|
String |
getVersion()
Gets the value of the version property.
|
String |
getXwikiAbsoluteUrl()
Gets the value of the xwikiAbsoluteUrl property.
|
String |
getXwikiRelativeUrl()
Gets the value of the xwikiRelativeUrl property.
|
void |
setAuthor(String value)
Sets the value of the author property.
|
void |
setAuthorName(String value)
Sets the value of the authorName property.
|
void |
setDate(Calendar value)
Sets the value of the date property.
|
void |
setHierarchy(Hierarchy value)
Sets the value of the hierarchy property.
|
void |
setId(String value)
Sets the value of the id property.
|
void |
setLongSize(long value)
Sets the value of the longSize property.
|
void |
setMimeType(String value)
Sets the value of the mimeType property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setPageId(String value)
Sets the value of the pageId property.
|
void |
setPageVersion(String value)
Sets the value of the pageVersion property.
|
void |
setSize(int value)
Sets the value of the size property.
|
void |
setVersion(String value)
Sets the value of the version property.
|
void |
setXwikiAbsoluteUrl(String value)
Sets the value of the xwikiAbsoluteUrl property.
|
void |
setXwikiRelativeUrl(String value)
Sets the value of the xwikiRelativeUrl property.
|
Attachment |
withAuthor(String value) |
Attachment |
withAuthorName(String value) |
Attachment |
withDate(Calendar value) |
Attachment |
withHierarchy(Hierarchy value) |
Attachment |
withId(String value) |
Attachment |
withLinks(Collection<Link> values) |
Attachment |
withLinks(Link... values) |
Attachment |
withLongSize(long value) |
Attachment |
withMimeType(String value) |
Attachment |
withName(String value) |
Attachment |
withPageId(String value) |
Attachment |
withPageVersion(String value) |
Attachment |
withSize(int value) |
Attachment |
withVersion(String value) |
Attachment |
withXwikiAbsoluteUrl(String value) |
Attachment |
withXwikiRelativeUrl(String value) |
getLinks
protected String id
protected String name
protected int size
protected long longSize
protected String version
protected String pageId
protected String pageVersion
protected String mimeType
protected String author
protected String authorName
protected Calendar date
protected String xwikiRelativeUrl
protected String xwikiAbsoluteUrl
protected Hierarchy hierarchy
public void setId(String value)
value
- allowed object is
String
public String getName()
String
public void setName(String value)
value
- allowed object is
String
public int getSize()
public void setSize(int value)
public long getLongSize()
public void setLongSize(long value)
public String getVersion()
String
public void setVersion(String value)
value
- allowed object is
String
public String getPageId()
String
public void setPageId(String value)
value
- allowed object is
String
public String getPageVersion()
String
public void setPageVersion(String value)
value
- allowed object is
String
public String getMimeType()
String
public void setMimeType(String value)
value
- allowed object is
String
public String getAuthor()
String
public void setAuthor(String value)
value
- allowed object is
String
public String getAuthorName()
String
public void setAuthorName(String value)
value
- allowed object is
String
public Calendar getDate()
String
public void setDate(Calendar value)
value
- allowed object is
String
public String getXwikiRelativeUrl()
String
public void setXwikiRelativeUrl(String value)
value
- allowed object is
String
public String getXwikiAbsoluteUrl()
String
public void setXwikiAbsoluteUrl(String value)
value
- allowed object is
String
public Hierarchy getHierarchy()
Hierarchy
public void setHierarchy(Hierarchy value)
value
- allowed object is
Hierarchy
public Attachment withId(String value)
public Attachment withName(String value)
public Attachment withSize(int value)
public Attachment withLongSize(long value)
public Attachment withVersion(String value)
public Attachment withPageId(String value)
public Attachment withPageVersion(String value)
public Attachment withMimeType(String value)
public Attachment withAuthor(String value)
public Attachment withAuthorName(String value)
public Attachment withDate(Calendar value)
public Attachment withXwikiRelativeUrl(String value)
public Attachment withXwikiAbsoluteUrl(String value)
public Attachment withHierarchy(Hierarchy value)
public Attachment withLinks(Link... values)
withLinks
in class LinkCollection
public Attachment withLinks(Collection<Link> values)
withLinks
in class LinkCollection
Copyright © 2004–2021 XWiki. All rights reserved.