|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.util.XmlParser.ElementHandler
com.google.gdata.data.Category.AtomHandler
public class Category.AtomHandler
<atom:category>
parser.
Field Summary |
---|
Fields inherited from class com.google.gdata.util.XmlParser.ElementHandler |
---|
qName, value, xmlBase, xmlLang |
Constructor Summary | |
---|---|
Category.AtomHandler()
|
|
Category.AtomHandler(ExtensionProfile extProfile,
java.util.Set<Category> categorySet,
Kind.Adaptable adaptable)
Constructor used when parsing a Category for a source or entry |
Method Summary | |
---|---|
XmlParser.ElementHandler |
getChildHandler(java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Determines a handler for a child element. |
void |
processAttribute(java.lang.String namespace,
java.lang.String localName,
java.lang.String value)
Called to process an attribute. |
void |
processEndElement()
Called to process this element when the closing tag is encountered. |
Methods inherited from class com.google.gdata.util.XmlParser.ElementHandler |
---|
getAbsoluteUri, getBooleanAttribute, getChildHandler, initializeXmlBlob, parseBooleanValue, processAttribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Category.AtomHandler()
public Category.AtomHandler(ExtensionProfile extProfile, java.util.Set<Category> categorySet, Kind.Adaptable adaptable)
Method Detail |
---|
public void processAttribute(java.lang.String namespace, java.lang.String localName, java.lang.String value)
XmlParser.ElementHandler
processAttribute
in class XmlParser.ElementHandler
namespace
- Attribute namespace URI.localName
- Attribute name.value
- Attribute value.public XmlParser.ElementHandler getChildHandler(java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
XmlParser.ElementHandler
The default implementation doesn't recognize anything. The result is a
schema error unless the parent handler accepts unrecognized XML.
com.google.gdata.wireformats.XmlParser
.
localname/namespace.
getChildHandler
in class XmlParser.ElementHandler
namespace
- Child element namespace URI.localName
- Child element name.attrs
- Child element attributes. These attributes will be
communicated to the child element handler through its
XmlParser.ElementHandler.processAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
method. They are passed here because
sometimes the value of some attribute determines the element's
content type, so different element handlers may be needed.
null
if the child is
unrecognized.public void processEndElement() throws ParseException
XmlParser.ElementHandler
processEndElement
in class XmlParser.ElementHandler
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |