public class Attachment extends QTestBaseModel<Attachment>
NL, properties, RESERVED_NAME| Constructor and Description |
|---|
Attachment() |
| Modifier and Type | Method and Description |
|---|---|
protected Attachment |
clone() |
java.lang.String |
elementName() |
java.lang.String |
getContent() |
java.lang.String |
getContentType() |
java.io.InputStream |
getData() |
java.lang.Long |
getId() |
java.lang.String |
getName() |
Attachment |
setContent(java.lang.String content) |
Attachment |
setContentType(java.lang.String contentType)
Sets the attachment content type.
|
Attachment |
setData(java.io.InputStream content)
Set attachment data.
|
Attachment |
setId(java.lang.Long id)
Sets the attachment identifier.
|
Attachment |
setName(java.lang.String name)
Sets the attachment name.
|
Attachment |
withContentType(java.lang.String contentType)
Sets the attachment content type.
|
Attachment |
withData(java.io.InputStream content)
Set attachment data.
|
Attachment |
withId(java.lang.Long id)
Sets the attachment identifier.
|
Attachment |
withName(java.lang.String name)
Sets the attachment name.
|
getBinaryFromInputStream, getLinks, getWebUrl, setLinks, setWebUrl, validateInputStream, withLinks, withWebUrlappendPropertiesTo, appendPropertiesTo, asDate, asDate, asInteger, asInteger, asLong, asLong, asString, asString, getProperties, getProperty, getPropertyMap, hasProperties, hasProperty, isVisible, jsonElementName, removeProperty, setPropertiesFrom, setProperty, toJson, toStringpublic java.lang.Long getId()
public Attachment setId(java.lang.Long id)
id - the given attachment identifier.public Attachment withId(java.lang.Long id)
id - the given attachment identifier to set.Attachment object.public java.lang.String getName()
public Attachment setName(java.lang.String name)
name - the given attachment name to set.public Attachment withName(java.lang.String name)
name - the given attachment name to set.Attachment object.public java.lang.String getContentType()
public Attachment setContentType(java.lang.String contentType)
contentType - the given attachment content type.public Attachment withContentType(java.lang.String contentType)
contentType - the given attachment content type.public java.lang.String getContent()
public Attachment setContent(java.lang.String content)
public java.io.InputStream getData()
public Attachment setData(java.io.InputStream content)
content - the given attachment content to set.public Attachment withData(java.io.InputStream content)
content - the given attachment content to set.protected Attachment clone()
clone in class PropertyContainerpublic java.lang.String elementName()
elementName in class PropertyContainer