The tool is not implemented yet...

Mar 16, 2016 at 6:32 PM
Edited Mar 16, 2016 at 6:34 PM
The comment says all about it "//TODO: Implement the parsing logic for every type."
namespace Axis.WADL
{
    class Program
    {
        static void Main(string[] args)
        {
            string filename = "";

            if (args.Length <= 0)
                Console.WriteLine(About.AboutWADL);
            else
                filename = ParseArgs(args);

            filename = Environment.CurrentDirectory + "\\" + filename;

            FileProcessor wadlProcess = new FileProcessor(filename);

        }

        //TODO: Implement the method
        static string ParseArgs(string[] args)
        {
            return args[0];
        }
    }
}

namespace Axis.WADL
{
    class FileProcessor
    {
        public FileProcessor(string fileName)
        {
            XDocument xmlDoc = XDocument.Load(fileName);

            var wadlBody = from application in xmlDoc.Descendants("application")
                                         select new
                                         {
                                             Types = application.Element("types").Value,
                                             Resources = application.Element("resources").Value,
                                             Operation = application.Element("operation").Value,
                                         };

            //TODO: Implement the parsing logic for every type.
        }

    
    } //Ends class
} //Ends Namespace