org.teleal.cling.support.contentdirectory
Class DIDLParser.DescMetaHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.teleal.common.xml.SAXParser.Handler<DescMeta>
org.teleal.cling.support.contentdirectory.DIDLParser.DescMetaHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- Enclosing class:
- DIDLParser
public class DIDLParser.DescMetaHandler
- extends org.teleal.common.xml.SAXParser.Handler<DescMeta>
Extracts an org.w3c.Document
from the nested elements in the <desc>
element.
The root element of this document is a wrapper in the namespace
DIDLContent.DESC_WRAPPER_NAMESPACE_URI
.
Fields inherited from class org.teleal.common.xml.SAXParser.Handler |
attributes, characters, instance, parent, parser |
Methods inherited from class org.teleal.common.xml.SAXParser.Handler |
characters, getAttributes, getCharacters, getParent, getParser, switchToParent |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
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 |
current
protected Element current
DIDLParser.DescMetaHandler
public DIDLParser.DescMetaHandler(DescMeta instance,
org.teleal.common.xml.SAXParser.Handler parent)
getInstance
public DescMeta<Document> getInstance()
- Overrides:
getInstance
in class org.teleal.common.xml.SAXParser.Handler<DescMeta>
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class org.teleal.common.xml.SAXParser.Handler<DescMeta>
- Throws:
SAXException
endElement
public void endElement(String uri,
String localName,
String qName)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class org.teleal.common.xml.SAXParser.Handler<DescMeta>
- Throws:
SAXException
isLastElement
protected boolean isLastElement(String uri,
String localName,
String qName)
- Overrides:
isLastElement
in class org.teleal.common.xml.SAXParser.Handler<DescMeta>
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.