aboutsummaryrefslogtreecommitdiff
path: root/spss.test/src/testgenerator/Supplement.java
diff options
context:
space:
mode:
authorgregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d>2003-11-11 22:36:36 +0000
committergregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d>2003-11-11 22:36:36 +0000
commit643b4096cdd0f0ed98f21c9b5b681ed89bcb08dc (patch)
tree9e750c9103ad923b291820bc85fcbd669c2e7900 /spss.test/src/testgenerator/Supplement.java
parentbc620256eb9b4dc6a33244b1105e58773358dbe6 (diff)
downloadmoa-id-spss-643b4096cdd0f0ed98f21c9b5b681ed89bcb08dc.tar.gz
moa-id-spss-643b4096cdd0f0ed98f21c9b5b681ed89bcb08dc.tar.bz2
moa-id-spss-643b4096cdd0f0ed98f21c9b5b681ed89bcb08dc.zip
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@51 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'spss.test/src/testgenerator/Supplement.java')
-rw-r--r--spss.test/src/testgenerator/Supplement.java62
1 files changed, 62 insertions, 0 deletions
diff --git a/spss.test/src/testgenerator/Supplement.java b/spss.test/src/testgenerator/Supplement.java
new file mode 100644
index 000000000..41edd4118
--- /dev/null
+++ b/spss.test/src/testgenerator/Supplement.java
@@ -0,0 +1,62 @@
+package testgenerator;
+
+/**
+ * @author Stevie (Admin)
+ *
+ * To change this generated comment edit the template variable "typecomment":
+ * Window>Preferences>Java>Templates.
+ * To enable and disable the creation of type comments go to
+ * Window>Preferences>Java>Code Generation.
+ */
+public class Supplement {
+
+ private String supplement;
+ /**
+ * Constructor for Supplement.
+ */
+ public Supplement() {
+ supplement = " <SupplementProfile>\n";
+
+ }
+
+ public void addMetaInfo(String mimeType, String description)
+ {
+ supplement += " <MetaInfo>\n" +
+ " <MimeType>" + mimeType + "</MimeType>";
+ if (!(description==null))
+ {
+ supplement+= " <Description>" + description + "</Description>";
+ }
+
+ supplement+= " </MetaInfo>";
+ }
+
+ public void addBase64Content(String fileName, String data)
+ {
+ supplement+= " <Content Reference=\"" + fileName + "\">\n"+
+ " <Base64Content>"+data+"</Base64Content>\n" +
+ " </Content>\n";
+
+ }
+
+ public void addXMLContent(String fileName, String data)
+ {
+ supplement+= " <Content Reference=\"" + fileName + "\">\n"+
+ " <XMLContent xml:space=\"preserve\">"+data+"</XMLContent>\n" +
+ " </Content>\n";
+
+ }
+
+
+ public void closeSupplement()
+ {
+ supplement+= " </SupplementProfile>\n";
+ }
+
+ public String getSupplement()
+ {
+ return supplement;
+ }
+
+
+}