com.smallx.xml.component
Class ComponentBase

java.lang.Object
  extended bycom.smallx.xml.component.ComponentBase
All Implemented Interfaces:
Component, ItemDestination
Direct Known Subclasses:
AddComponent, ApplyXSLTComponent, Delete, DocumentComponent, DocumentComponentBase, ElementUseStatistics, Escape, FileComponent, Identity, Java, Parse, PipelineComponent, RegexComponent, Rename, RouteComponent, Sequence, SetAttributeComponent, StripWhitespace, TemplateComponent, TrapComponent, Unwrap, URLComponent, Wrap

public abstract class ComponentBase
extends java.lang.Object
implements Component


Field Summary
protected  ComponentContext context
           
protected  int flushLevel
           
protected  Name name
           
protected  ItemDestination output
           
protected  java.lang.String version
           
 
Constructor Summary
protected ComponentBase(Name name, java.lang.String version)
           
 
Method Summary
 void attach(ItemDestination output)
           
 ComponentContext getContext()
           
 Name getName()
           
 java.lang.String getVersion()
           
 void init(ComponentContext context)
           
 boolean isFlushing(Item i)
           
protected  void post(Item item)
           
 void setFlushing()
           
 void setOutputType(Name name)
          This is meta-data that facilitates output serialization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.smallx.xml.infoset.ItemDestination
send
 

Field Detail

name

protected Name name

version

protected java.lang.String version

output

protected ItemDestination output

flushLevel

protected int flushLevel

context

protected ComponentContext context
Constructor Detail

ComponentBase

protected ComponentBase(Name name,
                        java.lang.String version)
Method Detail

getName

public Name getName()
Specified by:
getName in interface Component

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface Component

attach

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

setFlushing

public void setFlushing()

isFlushing

public boolean isFlushing(Item i)

post

protected void post(Item item)
             throws XMLException
Throws:
XMLException

init

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

setOutputType

public void setOutputType(Name name)
                   throws XMLException
Description copied from interface: ItemDestination
This is meta-data that facilitates output serialization. There are three "standard" names 'xml', 'text', and 'html'.

Specified by:
setOutputType in interface ItemDestination
Throws:
XMLException

getContext

public ComponentContext getContext()
Specified by:
getContext in interface Component