Klasse OutletSaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.torque.generator.configuration.outlet.OutletSaxHandler
- Alle implementierten Schnittstellen:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
Handles a outlet declaration within the outlet configuration.
Base class for more specific handlers.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungOutletSaxHandler
(QualifiedName outletName, ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers) Creates a OutletSaxHandler. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract Outlet
createOutlet
(QualifiedName outletName, String uri, String localName, String rawName, Attributes attributes) void
endElement
(String uri, String localName, String rawName) Returns the configuration handlers.Returns the ConfigurationProvider.Returns the outlet being configured.Returns the description of the generation unit.boolean
Returns whether we are past the end of the outlet configuration XML snippet which we are parsing.protected boolean
Returns whether we are currently processing a mergepoint tag.void
startElement
(String uri, String localName, String rawName, Attributes attributes) Von Klasse geerbte Methoden org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.xml.sax.ContentHandler
declaration
-
Konstruktordetails
-
OutletSaxHandler
public OutletSaxHandler(QualifiedName outletName, ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers) Creates a OutletSaxHandler.- Parameter:
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.- Löst aus:
NullPointerException
- if an argument is null.
-
-
Methodendetails
-
startElement
public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException - Angegeben von:
startElement
in SchnittstelleContentHandler
- Setzt außer Kraft:
startElement
in KlasseDefaultHandler
- Löst aus:
SAXException
-
endElement
- Angegeben von:
endElement
in SchnittstelleContentHandler
- Setzt außer Kraft:
endElement
in KlasseDefaultHandler
- Löst aus:
SAXException
-
createOutlet
protected abstract Outlet createOutlet(QualifiedName outletName, String uri, String localName, String rawName, Attributes attributes) throws SAXException - Parameter:
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.- Gibt zurück:
- the outlet, not null.
- Löst aus:
SAXException
- if the outlet cannot be created.
-
getOutlet
Returns the outlet being configured.- Gibt zurück:
- the outlet, not null.
-
isProcessingMergepointTag
protected boolean isProcessingMergepointTag()Returns whether we are currently processing a mergepoint tag.- Gibt zurück:
- true if we are currently processing a mergepoint tag, false otherwise.
-
isFinished
public boolean isFinished()Returns whether we are past the end of the outlet configuration XML snippet which we are parsing.- Gibt zurück:
- true if the whole snippet has been processed, false otherwise.
-
getConfigurationProvider
Returns the ConfigurationProvider.- Gibt zurück:
- the ConfigurationProvider, not null.
-
getUnitDescriptor
Returns the description of the generation unit.- Gibt zurück:
- the description of the generation unit, not null.
-
getConfigurationHandlers
Returns the configuration handlers.- Gibt zurück:
- the configuration handlers, not null.
-