Package org.ajax4jsf.templatecompiler.elements

Examples of org.ajax4jsf.templatecompiler.elements.TemplateElement


   * @see org.ajax4jsf.templatecompiler.builder.CompilationContext#getProcessor(org.w3c.dom.Node)
   */
  public TemplateElement getProcessor(Node nodeElement) throws CompilationException {
    for (Iterator<ElementsFactory> iter = elementFactories.listIterator(); iter.hasNext();) {
      ElementsFactory   factory = iter.next();
      TemplateElement processor = factory.getProcessor(nodeElement, this);
      if(null != processor){
        return processor;
      }
    }
    return null;
View Full Code Here


   * @return
   * @throws CompilationException
   */
  private TemplateElement parseElement(Node element,
      CompilationContext context) throws CompilationException {
    TemplateElement templateElement = null;
    templateElement = context.getProcessor(element);

    if (templateElement == null) {
      return null;
    }


    if (!templateElement.isSkipBody()) {
      NodeList subNodes = element.getChildNodes();

      for (int iElement = 0; iElement != subNodes.getLength(); iElement++) {
        Node subElement = subNodes.item(iElement);
        templateElement.addSubElement(parseElement(subElement,
              context));
      } // for
    }// if
    return templateElement;

View Full Code Here

          TemplateCompiler templateCompiler = new TemplateCompiler();
          InputStream templateStream = new FileInputStream(template);
          templateCompiler.processing(templateStream,
              compilationContext);

          TemplateElement root = compilationContext.getTree();

          String classname = renderer.getClassname();
          String packageName;
          int idx = classname.lastIndexOf('.');
          if (idx != -1) {
View Full Code Here

TOP

Related Classes of org.ajax4jsf.templatecompiler.elements.TemplateElement

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.