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 guid of the source document. The guid is a file unique identifier, full path for local storage e.g. c:\\storage\\email.msg, relative path e.g email.msg, url e.g. http://site.com/email.msg

        Returns:
        a String object.
      • setSourceDocumentGuid

        public void setSourceDocumentGuid(String value)

        The guid of the source document. The guid is a file unique identifier, full path for local storage e.g. c:\\storage\\email.msg, relative path e.g email.msg, url e.g. http://site.com/email.msg

        Parameters:
        value - a String object.
      • getName

        public String getName()

        The attachment name.

        Returns:
        a String object.
      • setName

        public void setName(String value)

        The attachment name.

        Parameters:
        value - a String object.
      • getExtension

        public String getExtension()

        The file extension.

        Returns:
        a String object.
      • getDocumentType

        public String getDocumentType()

        The type of the document.

        Returns:
        a String object.
      • getFileType

        public String getFileType()

        The type of the file.

        Returns:
        a String object.
      • 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