tomp.xtcl.filter
Class AdaptiveFilterImpl

java.lang.Object
  extended bytomp.xtcl.filter.XTFilterImpl
      extended bytomp.xtcl.filter.DynamicFilterImpl
          extended bytomp.xtcl.filter.AdaptiveFilterImpl
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, DynamicFilter, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, HasOutputProperties, org.xml.sax.ext.LexicalHandler, Parametrized, org.xml.sax.XMLFilter, org.xml.sax.XMLReader, XTFilter
Direct Known Subclasses:
AdaptiveXIncludeFilter

public class AdaptiveFilterImpl
extends DynamicFilterImpl


Field Summary
protected  Type targetType
           
protected  TypeDetectorFilter typeDetectorFilter
           
protected  Variant variant
           
 
Fields inherited from class tomp.xtcl.filter.DynamicFilterImpl
filter, isContentHandler, isDTDHandler, isEntityResolver, isErrorHandler, isLexicalHandler, outputPropertiesListener
 
Fields inherited from class tomp.xtcl.filter.XTFilterImpl
contentHandler, dtdHandler, entityResolver, errorHandler, lexicalHandler, locator, parent
 
Constructor Summary
AdaptiveFilterImpl()
           
AdaptiveFilterImpl(org.xml.sax.XMLReader p)
          Construct an XML filter with the specified parent.
 
Method Summary
 Type getSourceType()
           
 Type getSourceTypeForCurrentContext()
           
 Type getTargetType()
           
 TypeDatabase getTypeDatabase()
           
 Variant getVariant()
           
 void setParameter(java.lang.String k, java.lang.Object v)
           
 void setParent(org.xml.sax.XMLReader parent)
          Set the parent reader.
 void setTargetType(java.lang.String identification)
           
 void setTargetType(Type t)
           
 void setTypeDatabase(TypeDatabase td)
           
 void setVariant(Variant t)
           
 void startDocument()
          Filter method startDocument finds and activate the filter for the transformation
 
Methods inherited from class tomp.xtcl.filter.DynamicFilterImpl
comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getFilter, getLexicalHandler, getOutputProperties, getProperty, characters, ignorableWhitespace, notationDecl, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setFilter, setLexicalHandler, setOutputProperties, setOutputPropertiesListener, setProperty, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class tomp.xtcl.filter.XTFilterImpl
getParent, parse, setupParse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.XMLFilter
getParent
 
Methods inherited from interface org.xml.sax.XMLReader
parse
 

Field Detail

typeDetectorFilter

protected TypeDetectorFilter typeDetectorFilter

targetType

protected Type targetType

variant

protected Variant variant
Constructor Detail

AdaptiveFilterImpl

public AdaptiveFilterImpl()

AdaptiveFilterImpl

public AdaptiveFilterImpl(org.xml.sax.XMLReader p)
Construct an XML filter with the specified parent.

See Also:
setParent(org.xml.sax.XMLReader), XTFilterImpl.getParent()
Method Detail

getTypeDatabase

public TypeDatabase getTypeDatabase()

setTypeDatabase

public void setTypeDatabase(TypeDatabase td)

getSourceType

public Type getSourceType()

getSourceTypeForCurrentContext

public Type getSourceTypeForCurrentContext()

getTargetType

public Type getTargetType()

setTargetType

public void setTargetType(Type t)

getVariant

public Variant getVariant()

setVariant

public void setVariant(Variant t)

setTargetType

public void setTargetType(java.lang.String identification)

setParameter

public void setParameter(java.lang.String k,
                         java.lang.Object v)
Specified by:
setParameter in interface Parametrized
Overrides:
setParameter in class XTFilterImpl

setParent

public void setParent(org.xml.sax.XMLReader parent)
Description copied from class: DynamicFilterImpl
Set the parent reader.

This is the XMLReader from which this filter will obtain its events and to which it will pass its configuration requests. The parent may itself be another filter.

If there is no parent reader set, any attempt to parse or to set or get a feature or property will fail.

Specified by:
setParent in interface org.xml.sax.XMLFilter
Overrides:
setParent in class DynamicFilterImpl
Parameters:
parent - The parent XML reader.
See Also:
XTFilterImpl.getParent()

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Filter method startDocument finds and activate the filter for the transformation

Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class DynamicFilterImpl
Throws:
org.xml.sax.SAXException - The client may throw an exception during processing.