au.org.intersect.exsite9.xml
Class SIPXMLBuilder

java.lang.Object
  extended by au.org.intersect.exsite9.xml.BaseXMLBuilder
      extended by au.org.intersect.exsite9.xml.SIPXMLBuilder

public class SIPXMLBuilder
extends BaseXMLBuilder

Creates the XML that will be contained in a SubmissionPackage


Constructor Summary
SIPXMLBuilder()
           
 
Method Summary
static java.lang.String buildXML(Project project, java.util.List<Group> selectedGroups, SubmissionPackage submissionPackage, boolean useGroupPaths)
          Builds XML for a SIP for the provided SubmissionPackage.
 
Methods inherited from class au.org.intersect.exsite9.xml.BaseXMLBuilder
appendMetadataAssociation, appendResearchFile, appendResearchFile, createElementWithTextContent, createNewDocument, createProjectInfo, transformDocumentToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SIPXMLBuilder

public SIPXMLBuilder()
Method Detail

buildXML

public static java.lang.String buildXML(Project project,
                                        java.util.List<Group> selectedGroups,
                                        SubmissionPackage submissionPackage,
                                        boolean useGroupPaths)
Builds XML for a SIP for the provided SubmissionPackage.

Parameters:
project - The Project the submission package is contained within.
selectedGroups - The Groups that contain files are in the SubmissionPackage.
submissionPackage - The submission package.
useGroupPaths - true to use the path of a file relative to its group. false to use the absolute path of a file.
Returns:
The XML.