|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elexis.text.GenericDocument
public class GenericDocument
An IDocument implementation, based on a File
Constructor Summary | |
---|---|
GenericDocument(Patient pat,
java.lang.String title,
java.lang.String category,
byte[] content,
java.lang.String date,
java.lang.String keywords,
java.lang.String mimetype)
Create a new GenericDocument from a File. |
|
GenericDocument(Patient pat,
java.lang.String title,
java.lang.String category,
java.io.File file,
java.lang.String date,
java.lang.String keywords,
java.lang.String mimetype)
Create a new GenericDocument from a File. |
Method Summary | |
---|---|
java.lang.String |
getCategory()
Category of the document. |
byte[] |
getContentsAsBytes()
A representation of the contents as byte array |
java.io.InputStream |
getContentsAsStream()
Return the contents of this document as Stream Note: The caller must ensure that the stream is closed after using it. |
java.lang.String |
getCreationDate()
Date this document was created |
java.lang.String |
getGUID()
A globally unique identifier for this document. |
java.lang.String |
getKeywords()
Arbitrary keywords for this document |
java.lang.String |
getMimeType()
Mime-Type of the contents. |
java.lang.String |
getPatientID()
The Patient this document belongs to. |
java.lang.String |
getTitle()
Title for the document. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericDocument(Patient pat, java.lang.String title, java.lang.String category, java.io.File file, java.lang.String date, java.lang.String keywords, java.lang.String mimetype) throws java.io.IOException
pat
- The patient this document belongs to. Can be nulltitle
- Title for the document. Never Null and Never emptycategory
- Category for the document. Can be null or emptyfile
- File to import in this documentdate
- date of creationkeywords
- space- or comma- separated list of keywords. May be empty or null
java.io.IOException
public GenericDocument(Patient pat, java.lang.String title, java.lang.String category, byte[] content, java.lang.String date, java.lang.String keywords, java.lang.String mimetype) throws java.io.IOException
pat
- The patient this document belongs to. Can be nulltitle
- Title for the document. Never Null and Never emptycategory
- Category for the document. Can be null or emptycontent
- Content as byte arraydate
- date of creationkeywords
- space- or comma- separated list of keywords. May be empty or null
java.io.IOException
Method Detail |
---|
public java.lang.String getTitle()
IOpaqueDocument
getTitle
in interface IOpaqueDocument
public java.lang.String getMimeType()
IOpaqueDocument
getMimeType
in interface IOpaqueDocument
public java.io.InputStream getContentsAsStream() throws ElexisException
getContentsAsStream
in interface IOpaqueDocument
ElexisException
public byte[] getContentsAsBytes() throws ElexisException
IOpaqueDocument
getContentsAsBytes
in interface IOpaqueDocument
ElexisException
public java.lang.String getKeywords()
IOpaqueDocument
getKeywords
in interface IOpaqueDocument
public java.lang.String getCategory()
IOpaqueDocument
getCategory
in interface IOpaqueDocument
public java.lang.String getCreationDate()
IOpaqueDocument
getCreationDate
in interface IOpaqueDocument
public java.lang.String getPatientID()
IOpaqueDocument
getPatientID
in interface IOpaqueDocument
public java.lang.String getGUID()
IOpaqueDocument
getGUID
in interface IOpaqueDocument
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |