org.nhindirect.xd.common
Class XdmPackage

java.lang.Object
  extended by org.nhindirect.xd.common.XdmPackage

public class XdmPackage
extends Object


Constructor Summary
XdmPackage()
           
XdmPackage(String messageId)
           
 
Method Summary
static XdmPackage fromXdmZipDataHandler(DataHandler dataHandler)
           
static XdmPackage fromXdmZipFile(File file)
           
 DirectDocuments getDocuments()
           
 String getIndex()
           
 String getReadme()
           
protected static String getSubmissionSetDirspec(String zipEntryName)
           
 String getXsl()
           
protected static boolean matchName(String zname, String subsetDirspec, String subsetFilespec)
          Given a full ZipEntry filespec, extracts the name of the folder (if present) under the IHE_XDM root specified by IHE XDM.
 void setDocuments(DirectDocuments documents)
           
 File toFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XdmPackage

public XdmPackage()

XdmPackage

public XdmPackage(String messageId)
Method Detail

setDocuments

public void setDocuments(DirectDocuments documents)

getDocuments

public DirectDocuments getDocuments()

toFile

public File toFile()

getIndex

public String getIndex()
                throws Exception
Throws:
Exception

getReadme

public String getReadme()
                 throws Exception
Throws:
Exception

getXsl

public String getXsl()
              throws Exception
Throws:
Exception

fromXdmZipDataHandler

public static XdmPackage fromXdmZipDataHandler(DataHandler dataHandler)
                                        throws Exception
Throws:
Exception

fromXdmZipFile

public static XdmPackage fromXdmZipFile(File file)
                                 throws Exception
Throws:
Exception

getSubmissionSetDirspec

protected static String getSubmissionSetDirspec(String zipEntryName)

matchName

protected static boolean matchName(String zname,
                                   String subsetDirspec,
                                   String subsetFilespec)
Given a full ZipEntry filespec, extracts the name of the folder (if present) under the IHE_XDM root specified by IHE XDM.

Parameters:
zipEntryName - The ZIP entry name.
Returns:
the name of the folder.


Copyright © 2010-2011. All Rights Reserved.