view 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
line wrap: on
line source

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Vector;

import javax.wadls.Application;
import javax.wadls.Method;
import javax.wadls.Param;
import javax.wadls.Request;
import javax.wadls.Resource;
import javax.wadls.WADLSException;
import javax.wadls.factory.WADLFactory;
import javax.wadls.xml.WADLReader;
import javax.xml.namespace.QName;

import edu.uga.cs.lsdis.meteors.wadls.Constants;
import edu.uga.cs.lsdis.meteors.wadls.ParamImpl;
import edu.uga.cs.lsdis.meteors.wadls.SAWADLParserDriver;


public class Parser {

	
	public static void main(String[] args){
		
//		//String consumerWADLS="http://localhost:9090/testcase2/Template.sawadl";
//		String consumerWADLS="/home/ganjoo/parser/SAWADLParser/Files/Template.sawadl";
//		WADLReader wadlReader;
//		try {
//			wadlReader = WADLFactory.newInstance().newWADLReader();
//			wadlReader.setFeature(Constants.FEATURE_PARSE_SAWADL,true);
//			//wadlReader.setExtensionRegistry(new PopulatedExtensionRegistry());
//			Application app  = wadlReader.readWADL(consumerWADLS);
//			
			SAWADLParserDriver spd = new SAWADLParserDriver();
			//String fileURL = "/home/ganjoo/parser/SAWADLParser/Files/sample.wadl";
			String fileURL = "/home/ganjoo/parser/SAWADLParser/euPathWADL/GenesByMolecularWeight.sawadl";
			try {
				spd.parse(fileURL);
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
			
		}
	}