cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap ContinueNodeBuilder.java
Date Mon, 25 Mar 2002 07:30:01 GMT
ovidiu      02/03/24 23:30:01

  Added:       src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap
                        ContinueNodeBuilder.java
  Log:
  Added. Creates the <map:continue> nodes.
  
  Revision  Changes    Path
  1.1                  xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ContinueNodeBuilder.java
  
  Index: ContinueNodeBuilder.java
  ===================================================================
  package org.apache.cocoon.components.treeprocessor.sitemap;
  
  import org.apache.avalon.excalibur.component.ExcaliburComponentSelector;
  import org.apache.avalon.framework.component.ComponentManager;
  import org.apache.avalon.framework.component.ComponentSelector;
  import org.apache.avalon.framework.component.Composable;
  import org.apache.avalon.framework.configuration.Configurable;
  import org.apache.avalon.framework.configuration.Configuration;
  import org.apache.avalon.framework.configuration.ConfigurationException;
  import org.apache.cocoon.components.flow.Interpreter;
  import org.apache.cocoon.components.language.generator.GeneratorSelector;
  import org.apache.cocoon.components.treeprocessor.AbstractProcessingNodeBuilder;
  import org.apache.cocoon.components.treeprocessor.CategoryNode;
  import org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder;
  import org.apache.cocoon.components.treeprocessor.LinkedProcessingNodeBuilder;
  import org.apache.cocoon.components.treeprocessor.MapStackResolver;
  import org.apache.cocoon.components.treeprocessor.ProcessingNode;
  
  public class ContinueNodeBuilder extends AbstractProcessingNodeBuilder
    implements Composable
  {
    protected ContinueNode node;
    protected ComponentManager manager;
  
    public void compose(ComponentManager manager)
    {
      this.manager = manager;
    }
  
    public ProcessingNode buildNode(Configuration config)
      throws Exception
    {
      String contId = config.getAttribute("with");
  
      this.node = new ContinueNode(contId);
      this.treeBuilder.setupNode(this.node, config);
      if (node instanceof Configurable)
        ((Configurable)this.node).configure(config);
  
      return this.node;
    }
  }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message