comparison WebServiceToolWorkflow/lib/SAWADLParser/src/Parser.java @ 0:d5cd409b8a18 default tip

Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
author ganjoo
date Tue, 07 Jun 2011 18:00:50 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d5cd409b8a18
1 import java.util.HashMap;
2 import java.util.List;
3 import java.util.Map;
4 import java.util.Vector;
5
6 import javax.wadls.Application;
7 import javax.wadls.Method;
8 import javax.wadls.Param;
9 import javax.wadls.Request;
10 import javax.wadls.Resource;
11 import javax.wadls.WADLSException;
12 import javax.wadls.factory.WADLFactory;
13 import javax.wadls.xml.WADLReader;
14 import javax.xml.namespace.QName;
15
16 import edu.uga.cs.lsdis.meteors.wadls.Constants;
17 import edu.uga.cs.lsdis.meteors.wadls.ParamImpl;
18 import edu.uga.cs.lsdis.meteors.wadls.SAWADLParserDriver;
19
20
21 public class Parser {
22
23
24 public static void main(String[] args){
25
26 // //String consumerWADLS="http://localhost:9090/testcase2/Template.sawadl";
27 // String consumerWADLS="/home/ganjoo/parser/SAWADLParser/Files/Template.sawadl";
28 // WADLReader wadlReader;
29 // try {
30 // wadlReader = WADLFactory.newInstance().newWADLReader();
31 // wadlReader.setFeature(Constants.FEATURE_PARSE_SAWADL,true);
32 // //wadlReader.setExtensionRegistry(new PopulatedExtensionRegistry());
33 // Application app = wadlReader.readWADL(consumerWADLS);
34 //
35 SAWADLParserDriver spd = new SAWADLParserDriver();
36 //String fileURL = "/home/ganjoo/parser/SAWADLParser/Files/sample.wadl";
37 String fileURL = "/home/ganjoo/parser/SAWADLParser/euPathWADL/GenesByMolecularWeight.sawadl";
38 try {
39 spd.parse(fileURL);
40 } catch (Exception e) {
41 // TODO Auto-generated catch block
42 e.printStackTrace();
43 }
44
45
46 }
47 }