Class OptionsSaxHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.torque.generator.configuration.option.OptionsSaxHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
FileOptionsSaxHandler

public class OptionsSaxHandler extends DefaultHandler
A SAX handler for reading the options tag in the control configuration. $Id: OptionsSaxHandler.java 1917241 2024-04-21 13:29:41Z tv $
  • Constructor Details

    • OptionsSaxHandler

      public OptionsSaxHandler(OptionsConfiguration optionsConfiguration)
      Constructor.
      Parameters:
      optionsConfiguration - the OptionsConfiguration to be filled, not null.
  • Method Details

    • getOptionsConfiguration

      public OptionsConfiguration getOptionsConfiguration()
      Returns the options configuration read by this SAX handler.
      Returns:
      the options configuration, not null.
      Throws:
      IllegalStateException - if the SAX handler has not yet finished reading the configuration.
    • isFinished

      public boolean isFinished()
      Returns whether the SAX handler has finished reading the options configuration.
      Returns:
      true if whether the SAX handler has finished, false otherwise.