Package org.apache.cocoon.components.treeprocessor

Examples of org.apache.cocoon.components.treeprocessor.ProcessingNodeBuilder.buildNode()


      Configuration childConfig = childConfigs[i];
      if (isChild(childConfig)) {

        ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
        if (builder instanceof HandleErrorsNodeBuilder) {
          handler = (HandleErrorsNode)builder.buildNode(childConfig);
        } else {
          // Regular builder
          children.add(builder.buildNode(childConfig));
        }
      }
View Full Code Here


        ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
        if (builder instanceof HandleErrorsNodeBuilder) {
          handler = (HandleErrorsNode)builder.buildNode(childConfig);
        } else {
          // Regular builder
          children.add(builder.buildNode(childConfig));
        }
      }
    }
        if (children.size() == 0) {
            String msg = "There must be at least one pipeline at " + config.getLocation();
View Full Code Here

                    if (handler != null) {
                        throw new ConfigurationException("Duplicate <handle-errors> at " + handler.getLocation());
                    }

                    // Error handler : check type
                    handler = (HandleErrorsNode) builder.buildNode(childConfig);
                } else {
                    // Regular builder
                    children.add(builder.buildNode(childConfig));
                }
            }
View Full Code Here

                    // Error handler : check type
                    handler = (HandleErrorsNode) builder.buildNode(childConfig);
                } else {
                    // Regular builder
                    children.add(builder.buildNode(childConfig));
                }
            }
        }

        node.setChildren(toNodeArray(children));
View Full Code Here

            Configuration childConfig = childConfigs[i];
            if (isChild(childConfig)) {

                ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
                if (builder instanceof HandleErrorsNodeBuilder) {
                    handler = (HandleErrorsNode)builder.buildNode(childConfig);
                } else {
                    // Regular builder
                    children.add(builder.buildNode(childConfig));
                }
            }
View Full Code Here

                ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
                if (builder instanceof HandleErrorsNodeBuilder) {
                    handler = (HandleErrorsNode)builder.buildNode(childConfig);
                } else {
                    // Regular builder
                    children.add(builder.buildNode(childConfig));
                }
            }
        }

        if (children.size() == 0) {
View Full Code Here

    protected ProcessingNode createTree(Configuration tree) throws Exception {
        // Create a node builder from the top-level element
        ProcessingNodeBuilder rootBuilder = createNodeBuilder(tree);

        // Build the whole tree (with an empty buildModel)
        return rootBuilder.buildNode(tree);
    }

    /**
     * Resolve links : call <code>linkNode()</code> on all
     * <code>LinkedProcessingNodeBuilder</code>s. Can be overriden by
View Full Code Here

        for (int i = 0; i < orderedNames.length; i++) {
            Configuration childConfig = config.getChild(orderedNames[i], false);
            if (childConfig != null) {
                ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
                // Don't build them since "pipelines" is not present in this list
                builder.buildNode(childConfig);
            }
        }
       
        ProcessingNode pipelines = null;
View Full Code Here

                        continue loop;
                    }
                }
               
                ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
                ProcessingNode node = builder.buildNode(childConfig);
                if (node instanceof PipelinesNode) {
                    if (pipelines != null) {
                        String msg = "Only one 'pipelines' is allowed, at " + childConfig.getLocation();
                        throw new ConfigurationException(msg);
                    }
View Full Code Here

      Configuration childConfig = childConfigs[i];
      if (isChild(childConfig)) {

        ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
        if (builder instanceof HandleErrorsNodeBuilder) {
          handler = (HandleErrorsNode)builder.buildNode(childConfig);
        } else {
          // Regular builder
          children.add(builder.buildNode(childConfig));
        }
      }
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.