Package com.dubture.symfony.core.parser

Examples of com.dubture.symfony.core.parser.XMLConfigParser


    indexServices(parser.getServices());
  }

  protected void loadDumpedXmlContainer(IResource resource) throws Exception {
    FileInputStream fis = new FileInputStream(file.getLocation().toFile());
    XMLConfigParser parser = new XMLConfigParser(fis);
    parser.parse();
    indexServices(parser.getServices());
    indexParameters(parser.getParameters());
  }
View Full Code Here


  }

  protected void loadXML(IResource resource) {
    try {
      FileInputStream fis = new FileInputStream(file.getLocation().toFile());
      XMLConfigParser parser = new XMLConfigParser(fis);
      parser.parse();
      if (parser.hasRoutes()) {
        indexRoutes(parser.getRoutes());
      }
    } catch (Exception e) {
      Logger.logException(e);
    }
  }
View Full Code Here

    if (!"xml".equals(file.getFileExtension())) {
      return null;
    }
   
    IScriptProject scriptProject = DLTKCore.create(resource.getProject());
    XMLConfigParser parser;
    try {
      parser = new XMLConfigParser(file.getContents());
      parser.parse();
      HashMap<String,Service> services = parser.getServices();
     
      Iterator<String> it = services.keySet().iterator();
      PhpModelAccess model = PhpModelAccess.getDefault();
      IDLTKSearchScope scope = SearchEngine.createSearchScope(scriptProject);
     
View Full Code Here

   
    try {
     
      String dir = System.getProperty("user.dir") + "/Resources/config/routing.xml";
      FileInputStream input = new FileInputStream(new File(dir));
      XMLConfigParser parser = new XMLConfigParser(input);
      parser.parse();
     
      assertTrue(parser.hasRoutes());
     
      Stack<Route> routes = parser.getRoutes();     
      assertEquals(2, routes.size());
     
      Route route = routes.pop();
     
      assertEquals(route.name, "blog_index");
View Full Code Here

    try {
   
      String dir = System.getProperty("user.dir") + "/Resources/config/services1.xml";
      FileInputStream input = new FileInputStream(new File(dir));
      XMLConfigParser parser = new XMLConfigParser(input);
      parser.parse();
     
      HashMap<String, Service>services = parser.getServices();
     
      assertTrue(services.size() == 5);
     
      String tplAnnotation = "view.template_annotation";
      String tplSomething = "view.template_something";
View Full Code Here

     
      Service service = null;
     
      String dir = System.getProperty("user.dir") + "/Resources/config/orm.xml";
      FileInputStream input = new FileInputStream(new File(dir));
      XMLConfigParser parser = new XMLConfigParser(input);
      parser.parse();
     
      HashMap<String, Service>services = parser.getServices();     
      HashMap<String, String> parameters = parser.getParameters();
     
     
      assertTrue(services.size() == 7);
      assertTrue(parameters.size() == 19);
     
View Full Code Here

TOP

Related Classes of com.dubture.symfony.core.parser.XMLConfigParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.