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();
			}
			
			
		}
	}
