org.inria.ns.reflex.processor.xcl
Class ChannelFunction.Channel

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by org.inria.ns.reflex.xml.sax.SAXFilter
          extended by org.inria.ns.reflex.xml.sax.StandaloneProducer.Impl
              extended by org.inria.ns.reflex.processor.xcl.ChannelFunction.Channel
All Implemented Interfaces:
Localizable, StandaloneProducer, ContentHandler, DTDHandler, EntityResolver, ErrorHandler, DeclHandler, LexicalHandler, XMLFilter, XMLReader
Enclosing class:
ChannelFunction

public class ChannelFunction.Channel
extends StandaloneProducer.Impl

A Channel is a SAX filter that must be connected to a consumer (directly or indirectly through other filters) otherwise the events that it will reveive will be ignored.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.xml.sax.StandaloneProducer
StandaloneProducer.Impl
 
Constructor Summary
ChannelFunction.Channel(QName name)
          Create a new channel.
 
Method Summary
 QName getName()
          Return the name of the channel.
 boolean isConnected()
          Indicates whether this channel is connected or not.
 void parse()
          Connect this channel to an output.
 
Methods inherited from class org.inria.ns.reflex.xml.sax.StandaloneProducer.Impl
parse, parse
 
Methods inherited from class org.inria.ns.reflex.xml.sax.SAXFilter
attributeDecl, comment, elementDecl, endCDATA, endDocument, endDTD, endEntity, externalEntityDecl, getDeclHandler, getLexicalHandler, getLocation, getProperty, internalEntityDecl, isLocalizable, setDeclHandler, setLexicalHandler, setLocation, setProperty, startCDATA, startDocument, startDTD, startEntity
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.XMLReader
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
 
Methods inherited from interface org.xml.sax.DTDHandler
notationDecl, unparsedEntityDecl
 

Constructor Detail

ChannelFunction.Channel

public ChannelFunction.Channel(QName name)
Create a new channel.

Parameters:
name - The name of the channel.
Method Detail

getName

public QName getName()
Return the name of the channel.

Returns:
The name of the channel.

isConnected

public boolean isConnected()
Indicates whether this channel is connected or not.

Returns:
true if this channel is connected, false otherwise.

parse

public void parse()
           throws SAXException
Connect this channel to an output.

Throws:
SAXException - For compatibility.
See Also:
StandaloneProducer.parse()