1 16 package org.apache.cocoon.components.treeprocessor; 17 18 import org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode; 19 import org.apache.cocoon.components.treeprocessor.ProcessingNode; 20 21 import org.apache.cocoon.environment.Environment; 22 23 27 public abstract class SimpleParentProcessingNode extends AbstractParentProcessingNode { 28 29 30 protected ProcessingNode[] children; 31 32 public void setChildren(ProcessingNode[] children) { 33 this.children = children; 34 } 35 36 42 public boolean hasChildren() { 43 return this.children != null && this.children.length > 0; 44 } 45 46 49 public boolean invoke(Environment env, InvokeContext context) throws Exception { 50 if (context.pipelineIsSet() && hasChildren()) { 53 context.getProcessingPipeline().informBranchPoint(); 54 } 55 56 return false; 58 } 59 } 60 | Popular Tags |