com.groupdocs.viewer.domain

Class AttachmentBase

    • Constructor Detail

      • AttachmentBase

        public AttachmentBase(String sourceDocumentGuid,
                      String name)

        Initializes a new instance of the AttachmentBase class.

        Parameters:
        sourceDocumentGuid - The source document guid.
        name - The attachment name.
      • AttachmentBase

        public AttachmentBase()

        File data serialization requires parameterless constructor.

    • Method Detail

      • getSourceDocumentGuid

        public String getSourceDocumentGuid()

        The source document GUID.

      • setSourceDocumentGuid

        public void setSourceDocumentGuid(String value)

        The source document GUID.

      • getName

        public String getName()

        The attachment name.

      • setName

        public void setName(String value)

        The attachment name.

      • getExtension

        public String getExtension()

        The file extension.

        Value: The file extension.
      • getDocumentType

        public String getDocumentType()

        The type of the document.

        Value: The type of the document.
      • getFileType

        public String getFileType()

        The type of the file.

        Value: The type of the file.
      • getDocumentTypeFormat

        public String getDocumentTypeFormat()

        The document type format.

        Returns:
        Domain.DocumentTypeFormat.PORTABLE_DOCUMENT_FORMAT, Domain.DocumentTypeFormat.MICROSOFT_WORD, Domain.DocumentTypeFormat.MICROSOFT_EXCEL, Domain.DocumentTypeFormat.MICROSOFT_POWERPOINT, Domain.DocumentTypeFormat.MICROSOFT_VISIO, Domain.DocumentTypeFormat.MICROSOFT_PROJECT, Domain.DocumentTypeFormat.MICROSOFT_OUTLOOK, Domain.DocumentTypeFormat.OPENDOCUMENT_FORMATS, Domain.DocumentTypeFormat.RICH_TEXT_FORMAT, Domain.DocumentTypeFormat.PLAIN_TEXT_FILE, Domain.DocumentTypeFormat.COMMA_SEPARATED_VALUES, Domain.DocumentTypeFormat.HYPERTEXT_MARKUP_LANGUAGE, Domain.DocumentTypeFormat.EXTENSIBLE_MARKUP_LANGUAGE, Domain.DocumentTypeFormat.XML_PAPER_SPECIFICATION, Domain.DocumentTypeFormat.IMAGE_FILES, Domain.DocumentTypeFormat.ELECTRONIC_PUBLICATION, Domain.DocumentTypeFormat.WINDOWS_ICON or Domain.DocumentTypeFormat.UNKNOWN