com.smallx.xml.component
Class ComponentBase
java.lang.Object
com.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected Name name
version
protected java.lang.String version
output
protected ItemDestination output
flushLevel
protected int flushLevel
context
protected ComponentContext context
ComponentBase
protected ComponentBase(Name name,
java.lang.String version)
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