Package org.apache.torque.generator.configuration.source

# Klasse EntityReferenceSaxHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.torque.generator.configuration.source.EntityReferenceSaxHandler

Alle implementierten Schnittstellen:
  `ContentHandler`, `DTDHandler`, `EntityResolver`, `ErrorHandler`

public class EntityReferenceSaxHandler extends DefaultHandler
Reads an entity reference from the controller configuration file.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `EntityReferenceSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor)`
  Constructor.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `String`
  `getResource()`
  Returns the parsed resource path.
  `String`
  `getSystemId()`
  `boolean`
  `isFinished()`
  Returns whether this handler has finished parsing.
  `byte[]`
  `readResource()`
  Reads the resource defined in the parsed XML .
  `void`
  `startElement(String uri, String localName, String rawName, Attributes attributes)`

  ### Von Klasse geerbte Methoden org.xml.sax.helpers.DefaultHandler

  `characters, endDocument, endElement, 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

  - ### EntityReferenceSaxHandler

    public EntityReferenceSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor)
    Constructor.
    Parameter:
      `configurationProvider` - The access object for the configuration files, not null.
      `unitDescriptor` - The description of the generation unit, 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`

  - ### getResource

    public String getResource()
    Returns the parsed resource path.
    Gibt zurück:
      the the parsed resource path, not null if a matching snippet was processed.

  - ### getSystemId

    public String getSystemId()

  - ### isFinished

    public boolean isFinished()
    Returns whether this handler has finished parsing.
    Gibt zurück:
      true if this handler is finished, false otherwise.

  - ### readResource

    public byte[] readResource() throws ConfigurationException
    Reads the resource defined in the parsed XML .
    Gibt zurück:
      the content of the resource, not null.
    Löst aus:
      `ConfigurationException` - if an error occurs while reading the resource.