java.lang.Object
org.openehealth.ipf.commons.core.ContentMap
org.openehealth.ipf.commons.ihe.xds.core.metadata.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:
  • Constructor Details

    • 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 Details

    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object