Examples of parser()


Examples of fr.adrienbrault.idea.symfony2plugin.form.dict.FormTypeServiceParser.parser()

    public void testParse() throws Exception {

        File testFile = new File(this.getClass().getResource("appDevDebugProjectContainer.xml").getFile());

        FormTypeServiceParser parser = new FormTypeServiceParser();
        parser.parser(testFile);

        assertEquals("field", parser.getFormTypeMap().getMap().get("form.type.field"));
        assertEquals("locale", parser.getFormTypeMap().getMap().get("form.type.locale"));
        assertEquals("entity", parser.getFormTypeMap().getMap().get("form.type.entity"));
View Full Code Here

Examples of fr.adrienbrault.idea.symfony2plugin.templating.globals.TwigGlobalsServiceParser.parser()

    public void testParse() throws Exception {

        File testFile = new File(this.getClass().getResource("appDevDebugProjectContainer.xml").getFile());

        TwigGlobalsServiceParser parser = new TwigGlobalsServiceParser();
        parser.parser(testFile);

        assertEquals("templating.globals", parser.getTwigGlobals().get("app").getValue());
        assertEquals(TwigGlobalEnum.SERVICE, parser.getTwigGlobals().get("app").getTwigGlobalEnum());
        assertEquals("1.2", parser.getTwigGlobals().get("version").getValue());
View Full Code Here

Examples of fr.adrienbrault.idea.symfony2plugin.templating.path.TwigPathServiceParser.parser()

    public void testParse() throws Exception {

        File testFile = new File(this.getClass().getResource("appDevDebugProjectContainer.xml").getFile());

        TwigPathServiceParser parser = new TwigPathServiceParser();
        parser.parser(testFile);

        assertEquals("vendor\\symfony\\symfony\\src\\Symfony\\Bundle\\FrameworkBundle/Resources/views", parser.getTwigPathIndex().getNamespacePaths("Framework").get(0).getPath());
        assertEquals("vendor\\foo\\bar\\FooBundle/Resources/views", parser.getTwigPathIndex().getNamespacePaths("Framework").get(1).getPath());

        assertEquals("vendor\\symfony\\symfony\\src\\Symfony\\Bridge\\Twig/Resources/views/Form", parser.getTwigPathIndex().getNamespacePaths(TwigPathIndex.MAIN).get(0).getPath());
View Full Code Here

Examples of fr.adrienbrault.idea.symfony2plugin.translation.parser.DomainMappings.parser()

    @Test
    public void testParser() {
        File testFile = new File(this.getClass().getResource("appDevDebugProjectContainer.xml").getFile());

        DomainMappings bla = new DomainMappings();
        bla.parser(testFile);
        List<DomainFileMap> map = bla.getDomainFileMaps();

        assertEquals(10, map.size());

        DomainFileMap firstDomain = map.iterator().next();
View Full Code Here

Examples of freegressi.parser.Parser.parser()

      lex.yylex();
    } catch (Exception e) {
      System.err.println("Erreur du lexer!");
    }
    Parser parser = new Parser(liste);
    Noeud racine = parser.parser();
    if (racine == null) {
      return tableur.calcule(racine, index);
    }
    else {
      if (racine.getType() == Sym.ERROR){
View Full Code Here

Examples of freegressi.parser.Parser.parser()

      lex.yylex();
    } catch (Exception e) {
      System.err.println("Erreur du lexer!");
    }
    Parser parser = new Parser(liste);
    Noeud racine = parser.parser();
    if (racine == null) {
      return null;
    }
    else {
      if (racine.getType() == Sym.ERROR){
View Full Code Here

Examples of freegressi.parser.Parser.parser()

      if (nodes == null){
        System.err.println("Erreur interne du lexer!");
        return null;
      }
      Parser parser = new Parser(nodes);
      Noeud racine = parser.parser();
      checkRoot(racine, errors);
      if (nodes != null && nodes.get(0).getType() == Sym.UNIT){
        nodes.get(0).setType(Sym.PARSER_COHERENCE_ERROR);
        nodes.get(0).setTexteErreur(Sym.ERREUR_NOM_EXPRESSION);
        errors.add(Sym.ERREUR_NOM_EXPRESSION);
View Full Code Here

Examples of freegressi.parser.Parser.parser()

      lex.yylex();
    } catch (Exception e) {
      System.err.println("Erreur du lexer!");
    }
    Parser parser = new Parser(liste);
    Noeud racine = parser.parser();
    if (racine == null) {
      //System.out.println("Résultat = null : " + str);
      //return Double.NaN;
      return tableur.calcule(racine, index);
    } else {
View Full Code Here

Examples of org.auto.comet.xml.PropertiesXmlDefinitionParser.parser()

    XmlDefinitionManager xmlDefinitionManager = new XmlDefinitionManager();
    Properties properties = PropertiesLoaderUtils.loadClassPathProperties(
        xmlDefinitionMappingsLocation, null);
    PropertiesXmlDefinitionParser propertiesXmlDefinitionParser = new PropertiesXmlDefinitionParser();
    xmlDefinitionManager
        .addDefinitionMappings(propertiesXmlDefinitionParser
            .parser(properties));
    delegatingResolver.setXmlDefinitionManager(xmlDefinitionManager);
    documentLoader.setEntityResolver(delegatingResolver);

    ClassPathResource resource = new ClassPathResource(
View Full Code Here

Examples of org.bioversityinternational.model.rdf.ModelDocument.parser()

   
    Map<String,String> parts = this.parser().parseURI(descriptorURI) ;
   
    ModelDocument md = lookup(parts.get(Parser.NAMESPACE)) ;
   
    _load( details, md.parser().getPropertyValues( parts.get(Parser.URI), SKOS.prefLabel.getURI(), language,false), NAME ) ;
    _load( details, md.parser().getPropertyValues( parts.get(Parser.URI), SKOS.altLabel.getURI(), language,true), ALIAS ) ;
    _load( details, md.parser().getPropertyValues( parts.get(Parser.URI), SKOS.definition.getURI(), language,false), DEFINITION ) ;
   
    return details ;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.