You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by st...@apache.org on 2015/06/11 18:35:36 UTC

[17/31] incubator-taverna-language git commit: conversion tools

conversion tools

Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/commit/db163a65
Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/tree/db163a65
Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/diff/db163a65

Branch: refs/heads/master
Commit: db163a65a0c35ffea0ffcf09351972d7ca4cd93d
Parents: 33a3d5f
Author: menaka121 <me...@gmail.com>
Authored: Wed Jun 10 04:23:38 2015 +0530
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Thu Jun 11 17:33:29 2015 +0100

----------------------------------------------------------------------
 .../apache/tavlang/commandline/tools/Tools.java | 89 ++++++++++++++++++++
 1 file changed, 89 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/blob/db163a65/taverna-language-commandline/src/main/java/org/apache/tavlang/commandline/tools/Tools.java
----------------------------------------------------------------------
diff --git a/taverna-language-commandline/src/main/java/org/apache/tavlang/commandline/tools/Tools.java b/taverna-language-commandline/src/main/java/org/apache/tavlang/commandline/tools/Tools.java
new file mode 100644
index 0000000..c5ba1b3
--- /dev/null
+++ b/taverna-language-commandline/src/main/java/org/apache/tavlang/commandline/tools/Tools.java
@@ -0,0 +1,89 @@
+package org.apache.tavlang.commandline.tools;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+import javax.print.attribute.standard.Media;
+
+public class Tools {
+	
+	public static enum ConvertionTools {
+		wfbundle{
+			public String mediaType = "application/vnd.taverna.scufl2.workflow-bundle";
+			
+
+			@Override
+			public String getMediaType(ConvertionTools t) {
+				// TODO Auto-generated method stub
+				System.out.println(mediaType);
+				return this.mediaType;
+			}
+		},
+		json{
+			public String mediaType = "application/json";
+
+
+			@Override
+			public String getMediaType(ConvertionTools t) {
+				// TODO Auto-generated method stub
+				System.out.println(mediaType);
+				return mediaType;
+			}
+		},
+		wfdesc{
+			public String mediaType = "text/vnd.wf4ever.wfdesc+turtle";
+
+
+			@Override
+			public String getMediaType(ConvertionTools t) {
+				// TODO Auto-generated method stub
+				System.out.println(mediaType);
+				return mediaType;
+			}
+		},
+		robundle{
+
+			@Override
+			public String getMediaType(ConvertionTools t) {
+				// TODO Auto-generated method stub
+				return null;
+			}
+		
+		},
+		structure{
+			public String mediaType = "text/vnd.taverna.scufl2.structure";
+			
+			@Override
+			public String getMediaType(ConvertionTools t) {
+				// TODO Auto-generated method stub
+				System.out.println(mediaType);
+				return mediaType;
+			}
+
+			
+		};
+		
+		ConvertionTools(){}
+		
+		public abstract String getMediaType(ConvertionTools t);
+		
+	}
+	
+}