com.groupdocs.viewer.domain

Class AttachmentBase

    • Constructor Detail

      • AttachmentBase

        public AttachmentBase()

        File data serialization requires parameterless constructor.

      • 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

        protected AttachmentBase(String sourceDocumentGuid,
                      String attachmentID,
                      String name)

        Initializes a new instance of the AttachmentBase class.

        Parameters:
        sourceDocumentGuid - The source document GUID.
        name - The attachment name.
        attachmentID - The attachment name.
    • Method Detail

      • getDocumentType

        public String getDocumentType()

        The type of the document.

        Returns:
        a String object.
      • getDocumentTypeFormat

        public String getDocumentTypeFormat()

        Gets the document type format.

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

        public String getExtension()

        The file extension.

        Returns:
        a String object.
      • getFileType

        public String getFileType()

        The type of the file.

        Returns:
        a String object.
      • getID

        public String getID()
      • getName

        public String getName()

        The name of the attachment.

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

      • setID

        public void setID(String value)
      • setName

        public void setName(String value)

        The attachment name.

        Parameters:
        value - 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.