Examples of TemplateParser


Examples of org.apache.tapestry.parse.TemplateParser

        char[] templateData,
        IResourceLocation location,
        IComponent component)
    {
        if (_parser == null)
            _parser = new TemplateParser();

        ITemplateParserDelegate delegate = new ParserDelegate(component, cycle);

        TemplateToken[] tokens;
View Full Code Here

Examples of org.apache.tapestry.parse.TemplateParser

        char[] templateData,
        IResourceLocation location,
        IComponent component)
    {
        if (_parser == null)
            _parser = new TemplateParser();

        ITemplateParserDelegate delegate = new TemplateParserDelegateImpl(component, cycle);

        TemplateToken[] tokens;
View Full Code Here

Examples of org.cruxframework.crux.core.declarativeui.template.TemplateParser

    this.destDir = destDir;
    this.destDir.mkdirs();
    this.enumTypes = new HashMap<String, Class<?>>();
    this.namespacesForCatalog = new HashMap<String, File>();
    this.subTagTypes = new Stack<Class<? extends WidgetChildProcessor<?>>>();
    this.templateParser = new TemplateParser();
    this.schemaMessages = MessagesFactory.getMessages(SchemaMessages.class);

    initializeSchemaGenerator(projectBaseDir, webDir);
  }
View Full Code Here

Examples of org.jostraca.TemplateParser

    Template    template   = pTemplate;
    PropertySet tmps       = pTemplate.getMergedPropertySet();
    SectionSet  sectionSet = new SectionSet();

    String src = template.getSource();
    TemplateParser templateParser = getTemplateParser( tmps );
    templateParser.setPropertySet( tmps );
    templateParser.setSectionSet( sectionSet );
    templateParser.setSourceText( src );

    iUserMessageHandler.debug( UserText.get(UserText.TXT_parsing), src.length()+" characters" );

    // FIX: how about .parse(template) and remove sets above?
    templateParser.parse();

    sectionSet = templateParser.getSectionSet();
    template.setSectionSet( sectionSet );

    // FIX: do we need a way to stop processing?
    boolean displaytmdoc = displayTemplateDocumentation( tmps, sectionSet, iUserMessageHandler );
    if( displaytmdoc ) {
View Full Code Here

Examples of org.jostraca.TemplateParser

  protected TemplateParser getTemplateParser( PropertySet pPropertySet ) {
    String tmpp = Property.main_TemplateParser;
    if( pPropertySet.has( tmpp ) ) {
      String templateParserClassName = pPropertySet.get( Property.main_TemplateParser );
      TemplateParser tp = (TemplateParser) iTemplateParserIM.getInstance( templateParserClassName );
      return tp;
    }
    else {
      throw ProcessException.CODE_prop_missing( "propname", tmpp );
    }
View Full Code Here

Examples of org.jostraca.TemplateParser

    Template    template   = pTemplate;
    PropertySet tmps       = pTemplate.getMergedPropertySet();
    SectionSet  sectionSet = new SectionSet();

    String src = template.getSource();
    TemplateParser templateParser = getTemplateParser( tmps );
    templateParser.setPropertySet( tmps );
    templateParser.setSectionSet( sectionSet );
    templateParser.setSourceText( src );
    templateParser.setTemplate( template );

    mUserMessageHandler.debug( UserText.get(UserText.TXT_parsing), src.length()+" characters" );

    // FIX: how about .parse(template) and remove sets above?
    templateParser.parse();

    sectionSet = templateParser.getSectionSet();
    template.setSectionSet( sectionSet );

    // FIX: do we need a way to stop processing?
    boolean displaytmdoc = displayTemplateDocumentation( tmps, sectionSet, mUserMessageHandler );
    if( displaytmdoc ) {
View Full Code Here

Examples of org.jostraca.TemplateParser

  protected TemplateParser getTemplateParser( PropertySet pPropertySet ) {
    String tmpp = Property.main_TemplateParser;
    if( pPropertySet.has( tmpp ) ) {
      String templateParserClassName = pPropertySet.get( Property.main_TemplateParser );
      TemplateParser tp = (TemplateParser) iTemplateParserIM.getInstance( templateParserClassName );
      return tp;
    }
    else {
      throw ProcessException.CODE_prop_missing( "propname", tmpp );
    }
View Full Code Here

Examples of org.mule.util.TemplateParser

        if (event.getFlowConstruct() != null)
        {
            properties.put("serviceName", event.getFlowConstruct().getName());
        }

        TemplateParser tp = TemplateParser.createMuleStyleParser();
        soapAction = tp.parse(properties, soapAction);

        if (logger.isDebugEnabled())
        {
            logger.debug("SoapAction for this call is: " + soapAction);
        }
View Full Code Here

Examples of org.mule.util.TemplateParser

        if (event.getFlowConstruct() != null)
        {
            properties.put("serviceName", event.getFlowConstruct().getName());
        }

        TemplateParser tp = TemplateParser.createMuleStyleParser();
        soapAction = tp.parse(properties, soapAction);

        if (logger.isDebugEnabled())
        {
            logger.debug("SoapAction for this call is: " + soapAction);
        }
View Full Code Here

Examples of org.openstreetmap.josm.tools.template_engine.TemplateParser

        this.types = TaggingPresetItems.getType(types);
    }

    public void setName_template(String pattern) throws SAXException {
        try {
            this.nameTemplate = new TemplateParser(pattern).parse();
        } catch (ParseError e) {
            Main.error("Error while parsing " + pattern + ": " + e.getMessage());
            throw new SAXException(e);
        }
    }
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.