Package org.apache.cocoon.treeprocessor

Examples of org.apache.cocoon.treeprocessor.SimpleSelectorProcessingNode


        boolean preparable =
            PreparableMatcher.class.isAssignableFrom(clazz) &&
            !MapStackResolver.needsResolve(pattern);
       
        // Instanciate appropriate node
        SimpleSelectorProcessingNode node;
       
        if (preparable) {
            node = new PreparableMatchNode(type, pattern);
        } else {
            node = new MatchNode(type, pattern);
        }
       
        this.treeBuilder.setupNode(node, config);
       
        // Get all children
        ProcessingNode[] children = buildChildNodes(config);
       
        if (children.length == 0) {
            String msg = "There must be at least one child in match at " + config.getLocation();
            getLogger().error(msg);
            throw new ConfigurationException(msg);
        }
      
        node.setChildren(children);
       
        return node;
    }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.treeprocessor.SimpleSelectorProcessingNode

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.