Klasse SourceSaxHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.torque.generator.configuration.source.SourceSaxHandler
Alle implementierten Schnittstellen:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Bekannte direkte Unterklassen:
FileSourceSaxHandler, JdbcMetadataSourceSaxHandler

public abstract class SourceSaxHandler extends DefaultHandler
A base class for reading source definitions from the controller configuration file.
  • Konstruktordetails

    • SourceSaxHandler

      public SourceSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers)
      Constructor.
      Parameter:
      configurationProvider - The access object for the configuration files, not null.
      unitDescriptor - The description of the generation unit, not null.
      configurationHandlers - All known 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
    • characters

      public void characters(char[] ch, int start, int length) throws SAXException
      Angegeben von:
      characters in Schnittstelle ContentHandler
      Setzt außer Kraft:
      characters in Klasse DefaultHandler
      Löst aus:
      SAXException
    • getConfigurationProvider

      public ConfigurationProvider getConfigurationProvider()
      Returns the configurationProvider to access the configuration.
      Gibt zurück:
      the configurationProvider to access the configuration, not null.
    • getConfigurationHandlers

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

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

      public boolean isFinished()
      Returns whether the matching snippet was completely parsed.
      Gibt zurück:
      true if the matching snippet was completely parsed, false otherwise.
    • finished

      protected void finished()
      Marks that the matching snippet was completely parsed.
    • getSourceProvider

      public abstract SourceProvider getSourceProvider()
      Returns the information how to read the sources.
      Gibt zurück:
      the source Provider, not null if the source snippet was processed.
    • getSourceProcessConfiguration

      public SourceProcessConfiguration getSourceProcessConfiguration()
      Returns the information how to pre-process the sources before generating.
      Gibt zurück:
      the sourceProcessConfiguration, not null if the source snippet was processed.