Java Doc
Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/commit/c5e4ecc4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/tree/c5e4ecc4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/diff/c5e4ecc4 Branch: refs/heads/cwl-browse Commit: c5e4ecc431cd53650b976af65c6bfc4868422c3e Parents: acf9f48 Author: ThilinaManamgoda <maanafun...@gmail.com> Authored: Sun Jul 17 00:06:23 2016 +0530 Committer: ThilinaManamgoda <maanafun...@gmail.com> Committed: Sun Jul 17 00:06:23 2016 +0530 ---------------------------------------------------------------------- .../ui/serviceprovider/CwlServiceProvider.java | 13 +++++++- .../apache/taverna/cwl/CwlActivityFactory.java | 34 +++++++++----------- .../apache/taverna/cwl/utilities/CWLUtil.java | 16 +++++++++ 3 files changed, 44 insertions(+), 19 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/blob/c5e4ecc4/taverna-cwl-activity-ui/src/main/java/org/apache/taverna/cwl/ui/serviceprovider/CwlServiceProvider.java ---------------------------------------------------------------------- diff --git a/taverna-cwl-activity-ui/src/main/java/org/apache/taverna/cwl/ui/serviceprovider/CwlServiceProvider.java b/taverna-cwl-activity-ui/src/main/java/org/apache/taverna/cwl/ui/serviceprovider/CwlServiceProvider.java index db99665..ac546f0 100644 --- a/taverna-cwl-activity-ui/src/main/java/org/apache/taverna/cwl/ui/serviceprovider/CwlServiceProvider.java +++ b/taverna-cwl-activity-ui/src/main/java/org/apache/taverna/cwl/ui/serviceprovider/CwlServiceProvider.java @@ -111,7 +111,12 @@ public class CwlServiceProvider extends AbstractConfigurableServiceProvider impl private Path getPath() { return Paths.get(getConfiguration().getJsonAsObjectNode().get("path").asText()); } - + /** + * This method is creating a JsonNode object which contains Tool as a map and it's Path,Name + * @param p Path of the CWL tool + * @param cwlFile Output of the YAML reader + * @return + */ private JsonNode createJsonNode(Path p, Map cwlFile) { ObjectMapper mapper = new ObjectMapper(); JsonNode root = mapper.createObjectNode(); @@ -121,6 +126,12 @@ public class CwlServiceProvider extends AbstractConfigurableServiceProvider impl ((ObjectNode) root).put(CWL_PATH, p.toString()); return root; } + /** + * + * This method creates CwlServiceDesc which hold the configuration of the tool and the tool name + * @param node JsonnNode which holds the final configuration of the tool + * @return + */ private CwlServiceDesc createCWLDesc(JsonNode node) { CwlServiceDesc cwlServiceDesc = new CwlServiceDesc(); http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/blob/c5e4ecc4/taverna-cwl-activity/src/main/java/org/apache/taverna/cwl/CwlActivityFactory.java ---------------------------------------------------------------------- diff --git a/taverna-cwl-activity/src/main/java/org/apache/taverna/cwl/CwlActivityFactory.java b/taverna-cwl-activity/src/main/java/org/apache/taverna/cwl/CwlActivityFactory.java index c208e7f..c41fa96 100644 --- a/taverna-cwl-activity/src/main/java/org/apache/taverna/cwl/CwlActivityFactory.java +++ b/taverna-cwl-activity/src/main/java/org/apache/taverna/cwl/CwlActivityFactory.java @@ -1,21 +1,19 @@ -/* -* 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. -*/ +/******************************************************************************* + * 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.taverna.cwl; import java.io.IOException; http://git-wip-us.apache.org/repos/asf/incubator-taverna-common-activities/blob/c5e4ecc4/taverna-cwl-utilities/src/main/java/org/apache/taverna/cwl/utilities/CWLUtil.java ---------------------------------------------------------------------- diff --git a/taverna-cwl-utilities/src/main/java/org/apache/taverna/cwl/utilities/CWLUtil.java b/taverna-cwl-utilities/src/main/java/org/apache/taverna/cwl/utilities/CWLUtil.java index 8042d40..722bbf2 100644 --- a/taverna-cwl-utilities/src/main/java/org/apache/taverna/cwl/utilities/CWLUtil.java +++ b/taverna-cwl-utilities/src/main/java/org/apache/taverna/cwl/utilities/CWLUtil.java @@ -1,3 +1,19 @@ +/******************************************************************************* + * 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.taverna.cwl.utilities; import java.util.ArrayList;