public class

Category.AtomHandler

extends XmlParser.ElementHandler
java.lang.Object
   ↳ com.google.gdata.util.XmlParser.ElementHandler
     ↳ com.google.gdata.data.Category.AtomHandler

Class Overview

<atom:category> parser.

Summary

Fields
Kind.Adaptable adaptable
Set<Category> categorySet
ExtensionProfile extProfile
[Expand]
Inherited Fields
From class com.google.gdata.util.XmlParser.ElementHandler
Public Constructors
Category.AtomHandler()
Category.AtomHandler(ExtensionProfile extProfile, Set<Category> categorySet, Kind.Adaptable adaptable)
Constructor used when parsing a Category for a source or entry
Public Methods
XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs)
Determines a handler for a child element.
void processAttribute(String namespace, String localName, String value)
Called to process an attribute.
void processEndElement()
Called to process this element when the closing tag is encountered.
[Expand]
Inherited Methods
From class com.google.gdata.util.XmlParser.ElementHandler
From class java.lang.Object

Fields

Kind.Adaptable adaptable

Set<Category> categorySet

ExtensionProfile extProfile

Public Constructors

public Category.AtomHandler ()

public Category.AtomHandler (ExtensionProfile extProfile, Set<Category> categorySet, Kind.Adaptable adaptable)

Constructor used when parsing a Category for a source or entry

Parameters
extProfile
categorySet
adaptable

Public Methods

public XmlParser.ElementHandler getChildHandler (String namespace, String localName, Attributes attrs)

Determines a handler for a child element.

The default implementation doesn't recognize anything. The result is a schema error unless the parent handler accepts unrecognized XML. XmlParser. localname/namespace.

Parameters
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 processAttribute(String, String, 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.
Returns
  • Child element handler, or null if the child is unrecognized.

public void processAttribute (String namespace, String localName, String value)

Called to process an attribute. Designed to be overridden by derived classes.

Parameters
namespace Attribute namespace URI.
localName Attribute name.
value Attribute value.

public void processEndElement ()

Called to process this element when the closing tag is encountered. The default implementation refuses to accept text() content, unless the handler is configured to accept unrecognized XML with mixed content.