tomp.xtcl.filter
Class AdaptiveFilterImpl
java.lang.Object
tomp.xtcl.filter.XTFilterImpl
tomp.xtcl.filter.DynamicFilterImpl
tomp.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
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 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 |
typeDetectorFilter
protected TypeDetectorFilter typeDetectorFilter
targetType
protected Type targetType
variant
protected Variant variant
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()
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.