|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ohf.ihe.xds.source.document.Document
public class Document
Manages a document to be submitted to the XDS Repository. Holds a reference to associated metadata and a document descriptor.
| Constructor Summary | |
|---|---|
Document(byte[] documentByteArray,
DocumentDescriptor descriptor)
Construct a new Document object from the contents of the byte array holding a document of type specified in the docType. |
|
Document(java.io.File file,
DocumentDescriptor descriptor)
Construct a new Document object from the given File object |
|
Document(java.lang.String source,
DocumentDescriptor descriptor)
Construct a new Document object, given path |
|
| Method Summary | |
|---|---|
boolean |
equals(Document document)
Tests if the given document holds the same document as the class instance. |
java.lang.String |
getCanonicalPath()
Get the canonical path to the document. |
DocumentDescriptor |
getDescriptor()
get the descriptor DocumentDescriptor of the document. |
java.lang.String |
getDocumentData()
return the internal document data |
java.lang.String |
getDocumentEntryUUID()
|
void |
setDocumentEntryUUID(java.lang.String documentEntryUUID)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Document(java.io.File file,
DocumentDescriptor descriptor)
throws java.io.FileNotFoundException,
java.io.IOException
file - descriptor - @see org.eclipse.ohf.ihe.xds.source.document.DocumentDescriptor
java.io.FileNotFoundException
IOEXCEPTION
java.io.IOException
public Document(java.lang.String source,
DocumentDescriptor descriptor)
throws java.io.FileNotFoundException,
java.io.IOException
source - path to file on systemdescriptor - @see org.eclipse.ohf.ihe.xds.source.document.DocumentDescriptor
java.io.FileNotFoundException
IOEXCEPTION
java.io.IOException
public Document(byte[] documentByteArray,
DocumentDescriptor descriptor)
documentByteArray - descriptor - @see org.eclipse.ohf.ihe.xds.source.document.DocumentDescriptor| Method Detail |
|---|
public java.lang.String getCanonicalPath()
File.getCanonicalPath()
public DocumentDescriptor getDescriptor()
DocumentDescriptor of the document.
public java.lang.String getDocumentData()
public java.lang.String getDocumentEntryUUID()
public void setDocumentEntryUUID(java.lang.String documentEntryUUID)
documentEntryUUID - the documentEntryUUID to setpublic boolean equals(Document document)
document -
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||