public abstract class OutletSaxHandler extends DefaultHandler
Constructor and Description |
---|
OutletSaxHandler(QualifiedName outletName,
ConfigurationProvider configurationProvider,
UnitDescriptor unitDescriptor,
ConfigurationHandlers configurationHandlers)
Creates a OutletSaxHandler.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Outlet |
createOutlet(QualifiedName outletName,
String uri,
String localName,
String rawName,
Attributes attributes) |
void |
endElement(String uri,
String localName,
String rawName) |
ConfigurationHandlers |
getConfigurationHandlers()
Returns the configuration handlers.
|
ConfigurationProvider |
getConfigurationProvider()
Returns the ConfigurationProvider.
|
Outlet |
getOutlet()
Returns the outlet being configured.
|
UnitDescriptor |
getUnitDescriptor()
Returns the description of the generation unit.
|
boolean |
isFinished()
Returns whether we are past the end of the outlet configuration XML
snippet which we are parsing.
|
protected boolean |
isProcessingMergepointTag()
Returns whether we are currently processing a mergepoint tag.
|
void |
startElement(String uri,
String localName,
String rawName,
Attributes attributes) |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public OutletSaxHandler(QualifiedName outletName, ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers)
outletName
- the name for the outlet which configuration
will be read in by the generated SaxHandlerFactory,
or null if the name of the outlet should be determined from
the parsed XML.configurationProvider
- The access object for the configuration
files, not null.unitDescriptor
- The description of the generation unit, not null.configurationHandlers
- the available configuration handlers,
not null.NullPointerException
- if an argument is null.public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String rawName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
protected abstract Outlet createOutlet(QualifiedName outletName, String uri, String localName, String rawName, Attributes attributes) throws SAXException
outletName
- the name for the outlet which configuration
will be read in by the generated SaxHandlerFactory,
or null if the name of the outlet should be determined from
the parsed xml.uri
- - The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace processing is not
being performed.localName
- - The local name (without prefix), or
the empty string if Namespace processing is not being performed.rawName
- - The qualified name (with prefix), or the empty string if
qualified names are not available.attributes
- - The attributes attached to the element.
If there are no attributes, it shall be an empty Attributes
object.SAXException
- if the outlet cannot be created.public Outlet getOutlet()
protected boolean isProcessingMergepointTag()
public boolean isFinished()
public ConfigurationProvider getConfigurationProvider()
public UnitDescriptor getUnitDescriptor()
public ConfigurationHandlers getConfigurationHandlers()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.