org.apache.cocoon.components.treeprocessor
Class AbstractParentProcessingNodeBuilder
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.treeprocessor.AbstractProcessingNodeBuilder
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder
- All Implemented Interfaces:
- Component, Composable, Recomposable, Configurable, LogEnabled, ProcessingNodeBuilder
- Direct Known Subclasses:
- ActionSetNodeBuilder, ActNodeBuilder, CategoryNodeBuilder, ContainerNodeBuilder, FlowNodeBuilder, HandleErrorsNodeBuilder, MatchNodeBuilder, PipelineNodeBuilder, SelectNodeBuilder, SitemapNodeBuilder
public abstract class AbstractParentProcessingNodeBuilder
- extends AbstractProcessingNodeBuilder
- implements Configurable
Base class for parent ProcessingNodeBuilders
, providing services for parsing
children nodes.
- Version:
- CVS $Id: AbstractParentProcessingNodeBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Sylvain Wallez
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allowedChildren
protected Collection allowedChildren
forbiddenChildren
protected Collection forbiddenChildren
ignoredChildren
protected Collection ignoredChildren
AbstractParentProcessingNodeBuilder
public AbstractParentProcessingNodeBuilder()
configure
public void configure(Configuration config)
throws ConfigurationException
- Configure the sets of allowed, forbidden and ignored children nodes.
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
isChild
protected boolean isChild(Configuration child)
throws ConfigurationException
- Checks if a child element and is allowed, and if not throws a
ConfigurationException
.
- Parameters:
child
- the child configuration to check.
- Returns:
true
if this child should be considered or false
if it should be ignored.
- Throws:
ConfigurationException
- if this child isn't allowed.
isParameter
protected boolean isParameter(Configuration config)
throws ConfigurationException
- Throws:
ConfigurationException
buildChildNodesList
protected List buildChildNodesList(Configuration config)
throws Exception
- Create the
ProcessingNode
s for the children of a given node.
Child nodes are controlled to be actually allowed in this node.
- Throws:
Exception
buildChildNodes
protected ProcessingNode[] buildChildNodes(Configuration config)
throws Exception
- Throws:
Exception
toNodeArray
public static ProcessingNode[] toNodeArray(List list)
- Convenience function that converts a
List
of ProcessingNode
s
to an array.
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.