Examples of buildNode()


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

                        default:
                            throw new ConfigurationException("Unknown handle-errors type (" + type + ") at " + handler.getLocation());
                    }
                } else {
                    // Regular builder
                    children.add(builder.buildNode(childConfig));
                }
            }
        }

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

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

        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

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

                        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

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

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

        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

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

            if (isChild(childConfig)) {

                ProcessingNodeBuilder builder = this.treeBuilder.createNodeBuilder(childConfig);
                if (builder instanceof HandleErrorsNodeBuilder) {
                    // Error handler : check type
                    HandleErrorsNode handler = (HandleErrorsNode)builder.buildNode(childConfig);
                    int status = handler.getStatusCode();

                    switch(status) {
                        case -1: // main handler (needs generator)
                            if (mainHandler != null) {
View Full Code Here

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

                        default:
                            throw new ConfigurationException("Unknown handle-errors type (" + type + ") at " + handler.getLocation());
                    }
                } else {
                    // Regular builder
                    children.add(builder.buildNode(childConfig));
                }
            }
        }

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

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

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

        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

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

        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
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.