Klasse MergepointSaxHandler

java.lang.Object
org.apache.torque.generator.configuration.mergepoint.MergepointSaxHandler

public class MergepointSaxHandler extends Object
A SAX Handler which processes a mergepoint configuration in an outlet.
  • Konstruktordetails

    • MergepointSaxHandler

      public MergepointSaxHandler(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 - the available configuration handlers, not null.
      Löst aus:
      NullPointerException - if an argument is null.
  • Methodendetails

    • getMergepointMapping

      public MergepointMapping getMergepointMapping()
      Returns the mergepointMapping configured by this SaxHandler. If this method is called before the mergepoint tag has been processed completely, it will throw an IllegalStateException.
      Gibt zurück:
      the complete mergepointMapping, never null.
      Löst aus:
      IllegalStateException - if the mergepoint tag has not been processed completely.
    • startElement

      public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
      Callback method which is called by the SAX parser if an XML element is started. If a known element is encountered, its settings are read and applied to the mergepoint; if an unknown element is encountered, a SaxException is thrown.
      Parameter:
      uri - The namespace URI of the started element, 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.
      qName - The qualified name (with prefix, if present), or the empty string if qualified names are not available.
      attributes - The attributes attached to the element.
      Löst aus:
      SAXException - if an error occurs during parsing.
      Siehe auch:
    • endElement

      public void endElement(String uri, String localName, String qName)
      Callback method which is called by the SAX parser if an XML element is ended. If an action element is ended, the action is added to the action list for the mergepoint. If the mergepoint element is ended, the parser marks itself as finished.
      Parameter:
      uri - The namespace URI of the ended element, 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.
      qName - The qualified name (with prefix, if present), or the empty string if qualified names are not available.
      Siehe auch:
    • isFinished

      public boolean isFinished()
      Returns whether the parser has finished parsing the mergepoint tag.
      Gibt zurück:
      true if the parser has finished, false otherwise.