Class Document

  • All Implemented Interfaces:
    Serializable

    public class Document
    extends ContentMap
    implements Serializable
    Represents the contents of a document and the describing entry.

    All members of this class are allowed to be null.

    Author:
    Jens Riemschneider, Stefan Ivanov, Dmytro Rud
    See Also:
    Serialized Form
    • Constructor Detail

      • Document

        public Document()
      • Document

        public Document​(DocumentEntry documentEntry,
                        javax.activation.DataHandler dataHandler)
        Constructs a document.
        Parameters:
        documentEntry - the document entry describing the meta data of the document.
        dataHandler - the data handler allowing access to the contents of the document.
    • Method Detail

      • getDocumentEntry

        public DocumentEntry getDocumentEntry()
        Returns:
        the document entry describing the meta data of the document.
      • setDocumentEntry

        public void setDocumentEntry​(DocumentEntry documentEntry)
        Parameters:
        documentEntry - the document entry describing the meta data of the document.
      • getDataHandler

        public javax.activation.DataHandler getDataHandler()
        Same as getContent(DataHandler.class).
        Returns:
        the data handler allowing access to the contents of the document.
      • setDataHandler

        public void setDataHandler​(javax.activation.DataHandler dataHandler)
        Same as setContent(DataHandler.class, DataHandler dataHandler).
        Parameters:
        dataHandler - the data handler allowing access to the contents of the document.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object