|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.xd.transform.impl.DefaultXdmXdsTransformer
public class DefaultXdmXdsTransformer
This class handles the transformation of XDM to XDS.
| Constructor Summary | |
|---|---|
DefaultXdmXdsTransformer()
|
|
| Method Summary | |
|---|---|
protected File |
fileFromDataHandler(DataHandler dh)
Create a File object from the given DataHandler object. |
protected String |
getDocId(ExtrinsicObjectType extrinsicObjectType)
Get the document ID from an EntrinsicObjectType object. |
protected String |
getDocId(SubmitObjectsRequest submitObjectRequest)
Get the document ID from a SubmitObjectsRequest object. |
String |
getDocName(File file)
|
protected String |
getDocName(SubmitObjectsRequest submitObjectRequest)
|
protected String |
getSubmissionSetDirspec(String zipEntryName)
Given a full ZipEntry filespec, extracts the name of the folder (if present) under the IHE_XDM root specified by IHE XDM. |
protected boolean |
matchName(String zname,
String subsetDirspec,
String subsetFilespec)
Determine whether a filename matches the subset directory and file name. |
protected ByteArrayOutputStream |
readData(ZipFile zipFile,
ZipEntry zipEntry)
Read data the data of a zipEntry within a zipFile. |
ProvideAndRegisterDocumentSetRequestType |
transform(DataHandler dataHandler)
Transform an XDM DataHandler to a ProvideAndRegisterDocumentSetRequestType object. |
ProvideAndRegisterDocumentSetRequestType |
transform(File file)
Transform an XDM File to a ProvideAndRegisterDocumentSetRequestType object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultXdmXdsTransformer()
| Method Detail |
|---|
public ProvideAndRegisterDocumentSetRequestType transform(File file)
throws TransformationException
XdmXdsTransformer
transform in interface XdmXdsTransformerfile - The XDM File to transform.
TransformationException
public String getDocName(File file)
throws TransformationException
TransformationException
public ProvideAndRegisterDocumentSetRequestType transform(DataHandler dataHandler)
throws TransformationException
XdmXdsTransformer
transform in interface XdmXdsTransformerdataHandler - The DataHandler object to transform.
TransformationExceptionprotected String getDocId(SubmitObjectsRequest submitObjectRequest)
sor - The SubmitObjectsRequest object from which to retrieve the
document ID.
protected String getDocName(SubmitObjectsRequest submitObjectRequest)
protected String getDocId(ExtrinsicObjectType extrinsicObjectType)
eot - The EntrinsicObjectType object from which to retrieve the
document ID.
protected String getSubmissionSetDirspec(String zipEntryName)
zipEntryName - The ZIP entry name.
protected boolean matchName(String zname,
String subsetDirspec,
String subsetFilespec)
zname - The name to compare.subsetDirspec - The subset directory name.subsetFilespec - The subset file name.
protected ByteArrayOutputStream readData(ZipFile zipFile,
ZipEntry zipEntry)
throws IOException
zipFile - The ZipFile object.zipEntry - The ZipEntry object.
IOException
protected File fileFromDataHandler(DataHandler dh)
throws Exception
dh - The DataHandler object.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||