|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.generator.configuration.SaxHelper
public final class SaxHelper
Helper methods for SAX handlers.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Boolean getBooleanAttribute(String attributeName, Attributes attributes, String elementDescription) throws SAXException
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}"
SAXException
- if the attribute contains content
other than "true", "1" , "false" or "0".public static String getUnqualifiedName(String localName, String qName)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |