You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ra...@apache.org on 2011/08/15 19:30:50 UTC

svn commit: r1157919 - /incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/core/gfac/type/parameter/FileParameter.java

Author: raminder
Date: Mon Aug 15 17:30:50 2011
New Revision: 1157919

URL: http://svn.apache.org/viewvc?rev=1157919&view=rev
Log:
applied patch for  AIRAVATA-77 by Patnachai

Added:
    incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/core/gfac/type/parameter/FileParameter.java

Added: incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/core/gfac/type/parameter/FileParameter.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/core/gfac/type/parameter/FileParameter.java?rev=1157919&view=auto
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/core/gfac/type/parameter/FileParameter.java (added)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/core/gfac/type/parameter/FileParameter.java Mon Aug 15 17:30:50 2011
@@ -0,0 +1,43 @@
+/*
+ *
+ * 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.
+ *
+ */
+
+package org.apache.airavata.core.gfac.type.parameter;
+
+import java.net.URI;
+
+import org.apache.airavata.core.gfac.type.DataType;
+
+public class FileParameter extends AbstractParameter {
+
+    private URI value;
+    
+	public void parseStringVal(String val){
+	    this.value = URI.create(val);
+	}
+	
+	public String toStringVal(){
+		return this.value.toString();
+	}
+	
+	public DataType getType() {
+		return DataType.File;
+	}			
+}