com.smallx.xml.component.standard
Class Sequence

java.lang.Object
  extended bycom.smallx.xml.component.ComponentBase
      extended bycom.smallx.xml.component.standard.Sequence
All Implemented Interfaces:
Component, ComponentSequence, ItemDestination
Direct Known Subclasses:
SubtreeView

public class Sequence
extends ComponentBase
implements ComponentSequence


Nested Class Summary
static class Sequence.Instantiator
           
 
Field Summary
 
Fields inherited from class com.smallx.xml.component.ComponentBase
context, flushLevel, name, output
 
Constructor Summary
Sequence()
          Creates a new instance of SubtreeFilterComponent
Sequence(Name nm, java.lang.String version)
           
 
Method Summary
 void append(Component sub, ComponentInitializer initializer)
           
 void attach(ItemDestination dest)
           
 ComponentInitializer getInitializer()
           
 void init(ComponentContext context)
           
static ComponentInstance parse(Element spec, ComponentRegistry registry, java.util.Map sequences)
           
static void parseChildren(ComponentSequence parent, java.util.Iterator children, ComponentRegistry registry, java.util.Map sequences)
           
 void send(Item item)
          Called when a infoset item is generated by a source.
 
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

Sequence

public Sequence()
Creates a new instance of SubtreeFilterComponent


Sequence

public Sequence(Name nm,
                java.lang.String version)
Method Detail

parse

public static ComponentInstance parse(Element spec,
                                      ComponentRegistry registry,
                                      java.util.Map sequences)
                               throws XMLException
Throws:
XMLException

parseChildren

public static void parseChildren(ComponentSequence parent,
                                 java.util.Iterator children,
                                 ComponentRegistry registry,
                                 java.util.Map sequences)
                          throws XMLException
Throws:
XMLException

append

public void append(Component sub,
                   ComponentInitializer initializer)
            throws XMLException
Specified by:
append in interface ComponentSequence
Throws:
XMLException

attach

public void attach(ItemDestination dest)
            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.

Specified by:
send in interface ItemDestination
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

init

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

getInitializer

public ComponentInitializer getInitializer()