Package org.apache.torque.generator.configuration

# Klasse SaxHelper

java.lang.Object
org.apache.torque.generator.configuration.SaxHelper

public final class SaxHelper extends Object
Helper methods for SAX handlers.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `static Boolean`
  `getBooleanAttribute(String attributeName, Attributes attributes, String elementDescription)`
  Retrieves an attribute as boolean value.
  `static String`
  `getUnqualifiedName(String localName, String qName)`
  Retrieves the unqualified part of an XML element name name, regardless whether namespace processing is switched on or off.

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Methodendetails

  - ### getBooleanAttribute

    public static Boolean getBooleanAttribute(String attributeName, Attributes attributes, String elementDescription) throws SAXException
    Retrieves an attribute as boolean value.
    Parameter:
      `attributeName` - the name of the attribute to retrieve, not null.
      `attributes` - The attributes of the current element.
      `elementDescription` - the description of the parsed element, for producing a user-readable error message. E.g "the optionAction ${nameOfTheAction}"
    Gibt zurück:
      the value of the attribute, or null if the attribute is not set.
    Löst aus:
      `SAXException` - if the attribute contains content other than "true", "1" , "false" or "0".

  - ### getUnqualifiedName

    public static String getUnqualifiedName(String localName, String qName)
    Retrieves the unqualified part of an XML element name name, regardless whether namespace processing is switched on or off.
    Parameter:
      `localName` - The local name (without prefix), or the empty string if namespace processing is not being performed.
      `qName` - The qualified name (with prefix), or the empty string if qualified names are not available.
    Gibt zurück:
      the unqualified part of the name.