public class

ExtensionPoint.ExtensionHandler

extends AbstractExtension.AttributesHandler
java.lang.Object
   ↳ com.google.gdata.util.XmlParser.ElementHandler
     ↳ com.google.gdata.data.AbstractExtension.AttributesHandler
       ↳ com.google.gdata.data.ExtensionPoint.ExtensionHandler
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

ElementHandler implementation for handlers associated with an ExtensionPoint class. Provides common initialization and code for looking up handlers defined within the ExtensionProfile associated with the ExtensionPoint.

Summary

Fields
protected ExtensionManifest extManifest
protected ExtensionProfile extProfile
protected Class<? extends ExtensionPoint> extendedClass
protected boolean hasExtensions
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension.AttributesHandler
From class com.google.gdata.util.XmlParser.ElementHandler
Public Constructors
ExtensionPoint.ExtensionHandler(ExtensionProfile profile, Class<? extends ExtensionPoint> extendedClass)
Constructs a new Handler instance that process extensions on a class associated with the ExtensionPoint.
ExtensionPoint.ExtensionHandler(ExtensionProfile profile, Class<? extends ExtensionPoint> extendedClass, Attributes attrs)
Constructs a new Handler instance that process extensions on a class associated with the ExtensionPoint, and consumes the attributes.
Public Methods
XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs)
Determines a handler for a child element.
void processEndElement()
Called to process this element when the closing tag is encountered.
[Expand]
Inherited Methods
From class com.google.gdata.data.AbstractExtension.AttributesHandler
From class com.google.gdata.util.XmlParser.ElementHandler
From class java.lang.Object

Fields

protected ExtensionManifest extManifest

protected ExtensionProfile extProfile

protected Class<? extends ExtensionPoint> extendedClass

protected boolean hasExtensions

Public Constructors

public ExtensionPoint.ExtensionHandler (ExtensionProfile profile, Class<? extends ExtensionPoint> extendedClass)

Constructs a new Handler instance that process extensions on a class associated with the ExtensionPoint. e

Parameters
profile The extension profile associatd with the Handler.
extendedClass The extended class within the profile for this handler

public ExtensionPoint.ExtensionHandler (ExtensionProfile profile, Class<? extends ExtensionPoint> extendedClass, Attributes attrs)

Constructs a new Handler instance that process extensions on a class associated with the ExtensionPoint, and consumes the attributes.

Parameters
profile The extension profile associatd with the Handler.
extendedClass The extended class within the profile for this handler
attrs XML attributes or null to suppress the use of AttributeHelper

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.
Throws
ParseException
IOException

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.