Package net.webpdf.wsclient.openapi
Class MetadataAttachment
- java.lang.Object
-
- net.webpdf.wsclient.openapi.MetadataAttachment
-
public class MetadataAttachment extends Object
This type is used to describe an attachment, that has been embedded in a PDF file. The attachment itself may have connected document information, in that case the \"document\" element will be set.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_DOCUMENT_TYPEstatic StringJSON_PROPERTY_FOLDER_IDstatic StringJSON_PROPERTY_MIME_TYPEstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_NUMBERstatic StringJSON_PROPERTY_OBJECT_KEYstatic StringJSON_PROPERTY_PAGEstatic StringJSON_PROPERTY_SIZE
-
Constructor Summary
Constructors Constructor Description MetadataAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataAttachmentdescription(String description)MetadataAttachmentdocumentType(MetadataDocument documentType)booleanequals(Object o)MetadataAttachmentfolderId(Integer folderId)@Nullable StringgetDescription()The file description of the attachment.@Nullable MetadataDocumentgetDocumentType()Get documentType@Nullable IntegergetFolderId()The numeric ID of the folder containing the attachment.@Nullable StringgetMimeType()The attachment's MIME type.@Nullable StringgetName()The file name of the attachment.@Nullable IntegergetNumber()The position number of the attachment in the embedded files of the document.@Nullable StringgetObjectKey()The object ID of the attachment.@Nullable IntegergetPage()The page (if any), the attachment is placed on.@Nullable DoublegetSize()The byte size of the attachment.inthashCode()MetadataAttachmentmimeType(String mimeType)MetadataAttachmentname(String name)MetadataAttachmentnumber(Integer number)MetadataAttachmentobjectKey(String objectKey)MetadataAttachmentpage(Integer page)voidsetDescription(String description)voidsetDocumentType(MetadataDocument documentType)voidsetFolderId(Integer folderId)voidsetMimeType(String mimeType)voidsetName(String name)voidsetNumber(Integer number)voidsetObjectKey(String objectKey)voidsetPage(Integer page)voidsetSize(Double size)MetadataAttachmentsize(Double size)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DOCUMENT_TYPE
public static final String JSON_PROPERTY_DOCUMENT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FOLDER_ID
public static final String JSON_PROPERTY_FOLDER_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MIME_TYPE
public static final String JSON_PROPERTY_MIME_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NUMBER
public static final String JSON_PROPERTY_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OBJECT_KEY
public static final String JSON_PROPERTY_OBJECT_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGE
public static final String JSON_PROPERTY_PAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIZE
public static final String JSON_PROPERTY_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public MetadataAttachment description(String description)
-
getDescription
@Nullable public @Nullable String getDescription()
The file description of the attachment.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
documentType
public MetadataAttachment documentType(MetadataDocument documentType)
-
getDocumentType
@Nullable public @Nullable MetadataDocument getDocumentType()
Get documentType- Returns:
- documentType
-
setDocumentType
public void setDocumentType(MetadataDocument documentType)
-
folderId
public MetadataAttachment folderId(Integer folderId)
-
getFolderId
@Nullable public @Nullable Integer getFolderId()
The numeric ID of the folder containing the attachment. (This is only relevant for PDF Collections/Portfolios - otherwise attachments may not be arranged in a folder tree.)- Returns:
- folderId
-
setFolderId
public void setFolderId(Integer folderId)
-
mimeType
public MetadataAttachment mimeType(String mimeType)
-
getMimeType
@Nullable public @Nullable String getMimeType()
The attachment's MIME type.- Returns:
- mimeType
-
setMimeType
public void setMimeType(String mimeType)
-
name
public MetadataAttachment name(String name)
-
getName
@Nullable public @Nullable String getName()
The file name of the attachment.- Returns:
- name
-
setName
public void setName(String name)
-
number
public MetadataAttachment number(Integer number)
-
getNumber
@Nullable public @Nullable Integer getNumber()
The position number of the attachment in the embedded files of the document. minimum: 1- Returns:
- number
-
setNumber
public void setNumber(Integer number)
-
objectKey
public MetadataAttachment objectKey(String objectKey)
-
getObjectKey
@Nullable public @Nullable String getObjectKey()
The object ID of the attachment. **Info:** A PDF objects ID consists of two number, where the first number selects the object's number and the second the \"generation\" of the object. The object ID shall always be unique within the context of the document and can be used to select a specific object.- Returns:
- objectKey
-
setObjectKey
public void setObjectKey(String objectKey)
-
page
public MetadataAttachment page(Integer page)
-
getPage
@Nullable public @Nullable Integer getPage()
The page (if any), the attachment is placed on. minimum: 0- Returns:
- page
-
setPage
public void setPage(Integer page)
-
size
public MetadataAttachment size(Double size)
-
getSize
@Nullable public @Nullable Double getSize()
The byte size of the attachment. minimum: 0- Returns:
- size
-
setSize
public void setSize(Double size)
-
-