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
ConstructorDescriptionDocument()
Document
(DocumentEntry documentEntry, javax.activation.DataHandler dataHandler) Constructs a document. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
javax.activation.DataHandler
Same asgetContent(DataHandler.class)
.int
hashCode()
void
setDataHandler
(javax.activation.DataHandler dataHandler) Same assetContent(DataHandler.class, DataHandler dataHandler)
.void
setDocumentEntry
(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 javax.activation.DataHandler getDataHandler()Same asgetContent(DataHandler.class)
.- Returns:
- the data handler allowing access to the contents of the document.
-
setDataHandler
public void setDataHandler(javax.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
-