com.smallx.xml.component.standard
Class PipelineComponent

java.lang.Object
  extended bycom.smallx.xml.component.ComponentBase
      extended bycom.smallx.xml.component.standard.PipelineComponent
All Implemented Interfaces:
Component, ItemDestination

public class PipelineComponent
extends ComponentBase


Nested Class Summary
static class PipelineComponent.Instantiator
           
 
Field Summary
 
Fields inherited from class com.smallx.xml.component.ComponentBase
context, flushLevel, name, output
 
Constructor Summary
PipelineComponent()
          Creates a new instance of Identity
 
Method Summary
 void attach(ItemDestination output)
           
 void init(ComponentContext context)
           
static ComponentInstance parse(Element spec, ComponentRegistry registry)
           
 void send(Item item)
          Called when a infoset item is generated by a source.
 void setPipeline(Pipeline pipe)
           
 
Methods inherited from class com.smallx.xml.component.ComponentBase
getContext, getName, getVersion, isFlushing, post, setFlushing, setOutputType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PipelineComponent

public PipelineComponent()
Creates a new instance of Identity

Method Detail

parse

public static ComponentInstance parse(Element spec,
                                      ComponentRegistry registry)
                               throws XMLException
Throws:
XMLException

setPipeline

public void setPipeline(Pipeline pipe)

init

public void init(ComponentContext context)
          throws XMLException
Specified by:
init in interface Component
Overrides:
init in class ComponentBase
Throws:
XMLException

attach

public void attach(ItemDestination output)
            throws XMLException
Specified by:
attach in interface Component
Overrides:
attach in class ComponentBase
Throws:
XMLException

send

public void send(Item item)
          throws XMLException
Description copied from interface: ItemDestination
Called when a infoset item is generated by a source.

Parameters:
item - The infoset item that was generated by the source.
Returns:
A boolean value indicating that addition items are wanted by the implementing object.
Throws:
XMLException