org.yasl.xmlobjects.impl
Class BaseContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.yasl.xmlobjects.impl.BaseContentHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- Direct Known Subclasses:
- YASLConfigContentHandler, YASLMenuConfigContentHandler
- public abstract class BaseContentHandler
- extends DefaultHandler
- Version:
- 1.0
- Author:
- not attributable
Method Summary |
void |
endElement(String namespaceURI,
String localName,
String qName)
Receive notification of the end of an element. |
protected String |
getTagName(String localName,
String qName)
Depending on whether namespace processing is being performed,
the tag name will be contained in localName or qName. |
protected void |
setTagHandlerMap(Map tagHandlerMap)
Sets the tag handler map to use for mapping a tag
name to an element handler. |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Receive notification of the beginning of an element. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseContentHandler
public BaseContentHandler(Logger logger)
setTagHandlerMap
protected void setTagHandlerMap(Map tagHandlerMap)
- Sets the tag handler map to use for mapping a tag
name to an element handler.
- Parameters:
tagHandlerMap
- Map
getTagName
protected String getTagName(String localName,
String qName)
- Depending on whether namespace processing is being performed,
the tag name will be contained in localName or qName.
- Parameters:
localName
- StringqName
- String
- Returns:
- String
endElement
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
- Receive notification of the end of an element.
- Parameters:
namespaceURI
- The Namespace URI, 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 XML 1.0 name (with prefix), or the empty
string if qualified names are not available.
- Throws:
SAXException
- Any SAX exception, possibly wrapping another
exception.
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
- Receive notification of the beginning of an element.
- Parameters:
namespaceURI
- The Namespace URI, 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), or the empty string if
qualified names are not available.atts
- The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
- Throws:
SAXException
- Any SAX exception, possibly wrapping another
exception.