Class Document
java.lang.Object
org.openehealth.ipf.commons.core.ContentMap
org.openehealth.ipf.commons.ihe.xds.core.metadata.Document
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionDocument()Document(DocumentEntry documentEntry, jakarta.activation.DataHandler dataHandler) Constructs a document. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjakarta.activation.DataHandlerSame asgetContent(DataHandler.class).inthashCode()voidsetDataHandler(jakarta.activation.DataHandler dataHandler) Same assetContent(DataHandler.class, DataHandler dataHandler).voidsetDocumentEntry(DocumentEntry documentEntry) toString()Methods inherited from class org.openehealth.ipf.commons.core.ContentMap
getContent, getContentsCount, getConversionService, hasContent, removeContent, setContent, setConversionService
-
Constructor Details
-
Document
public Document() -
Document
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
- Returns:
- the document entry describing the meta data of the document.
-
setDocumentEntry
- Parameters:
documentEntry- the document entry describing the meta data of the document.
-
getDataHandler
public jakarta.activation.DataHandler getDataHandler()Same asgetContent(DataHandler.class).- Returns:
- the data handler allowing access to the contents of the document.
-
setDataHandler
public void setDataHandler(jakarta.activation.DataHandler dataHandler) Same assetContent(DataHandler.class, DataHandler dataHandler).- Parameters:
dataHandler- the data handler allowing access to the contents of the document.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-