Klasse OutletSaxHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.torque.generator.configuration.outlet.OutletSaxHandler
Alle implementierten Schnittstellen:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public abstract class OutletSaxHandler extends DefaultHandler
Handles a outlet declaration within the outlet configuration. Base class for more specific handlers.
  • 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 Schnittstelle ContentHandler
      Setzt außer Kraft:
      startElement in Klasse DefaultHandler
      Löst aus:
      SAXException
    • endElement

      public void endElement(String uri, String localName, String rawName) throws SAXException
      Angegeben von:
      endElement in Schnittstelle ContentHandler
      Setzt außer Kraft:
      endElement in Klasse DefaultHandler
      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

      public Outlet 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

      public ConfigurationProvider getConfigurationProvider()
      Returns the ConfigurationProvider.
      Gibt zurück:
      the ConfigurationProvider, not null.
    • getUnitDescriptor

      public UnitDescriptor getUnitDescriptor()
      Returns the description of the generation unit.
      Gibt zurück:
      the description of the generation unit, not null.
    • getConfigurationHandlers

      public ConfigurationHandlers getConfigurationHandlers()
      Returns the configuration handlers.
      Gibt zurück:
      the configuration handlers, not null.