Class Attachment
java.lang.Object
de.hybris.platform.tuawebservicesresources.v2.dto.Attachment
Complements the description of an element (for instance a product) through video, pictures...
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionatBaseType(String atBaseType) atSchemaLocation(String atSchemaLocation) attachmentType(String attachmentType) description(String description) booleanWhen sub-classing, this defines the super-classA URI to a JSON-Schema file that defines additional attributes and relationshipsAttachment type such as video, pictureWhen sub-classing, this defines the sub-class entity nameThe actual contents of the attachment object, if embedded, encoded as base64A narrative text describing the content of the attachmentgetHref()URI for this AttachmentgetId()Unique identifier for this particular attachmentAttachment mime type such as extension file for video, picture and documentgetName()The name of the attachment@Valid QuantitygetSize()Get sizegetUrl()Uniform Resource Locator, is a web page address (a subset of URI)@Valid TimePeriodGet validForinthashCode()voidsetAtBaseType(String atBaseType) voidsetAtSchemaLocation(String atSchemaLocation) voidsetAttachmentType(String attachmentType) voidvoidsetContent(String content) voidsetDescription(String description) voidvoidvoidsetMimeType(String mimeType) voidvoidvoidvoidsetValidFor(TimePeriod validFor) toString()validFor(TimePeriod validFor)
-
Constructor Details
-
Attachment
public Attachment()
-
-
Method Details
-
id
-
getId
Unique identifier for this particular attachment- Returns:
- id
-
setId
-
href
-
getHref
URI for this Attachment- Returns:
- href
-
setHref
-
attachmentType
-
getAttachmentType
Attachment type such as video, picture- Returns:
- attachmentType
-
setAttachmentType
-
content
-
getContent
The actual contents of the attachment object, if embedded, encoded as base64- Returns:
- content
-
setContent
-
description
-
getDescription
A narrative text describing the content of the attachment- Returns:
- description
-
setDescription
-
mimeType
-
getMimeType
Attachment mime type such as extension file for video, picture and document- Returns:
- mimeType
-
setMimeType
-
name
-
getName
The name of the attachment- Returns:
- name
-
setName
-
url
-
getUrl
Uniform Resource Locator, is a web page address (a subset of URI)- Returns:
- url
-
setUrl
-
size
-
getSize
Get size- Returns:
- size
-
setSize
-
validFor
-
getValidFor
Get validFor- Returns:
- validFor
-
setValidFor
-
atBaseType
-
getAtBaseType
When sub-classing, this defines the super-class- Returns:
- atBaseType
-
setAtBaseType
-
atSchemaLocation
-
getAtSchemaLocation
A URI to a JSON-Schema file that defines additional attributes and relationships- Returns:
- atSchemaLocation
-
setAtSchemaLocation
-
atType
-
getAtType
When sub-classing, this defines the sub-class entity name- Returns:
- atType
-
setAtType
-
equals
-
hashCode
public int hashCode() -
toString
-