|
|||||||||
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.ExtensionPoint.ExtensionHandler
public class ExtensionPoint.ExtensionHandler
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.
Field Summary |
---|
Fields inherited from class com.google.gdata.util.XmlParser.ElementHandler |
---|
qName, value, xmlBase, xmlLang |
Constructor Summary | |
---|---|
ExtensionPoint.ExtensionHandler(ExtensionProfile profile,
java.lang.Class<? extends ExtensionPoint> extendedClass)
Constructs a new Handler instance that process extensions on a class associated with the ExtensionPoint. |
|
ExtensionPoint.ExtensionHandler(ExtensionProfile profile,
java.lang.Class<? extends ExtensionPoint> extendedClass,
org.xml.sax.Attributes attrs)
Constructs a new Handler instance that process extensions on a class associated with the ExtensionPoint, and consumes the attributes. |
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 |
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, processAttribute, processAttribute |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtensionPoint.ExtensionHandler(ExtensionProfile profile, java.lang.Class<? extends ExtensionPoint> extendedClass)
profile
- The extension profile associatd with the Handler.extendedClass
- The extended class within the profile for this
handlerpublic ExtensionPoint.ExtensionHandler(ExtensionProfile profile, java.lang.Class<? extends ExtensionPoint> extendedClass, org.xml.sax.Attributes attrs)
profile
- The extension profile associatd with the Handler.extendedClass
- The extended class within the profile for this
handlerattrs
- XML attributes or null
to suppress the use of
AttributeHelper
Method Detail |
---|
public XmlParser.ElementHandler getChildHandler(java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs) throws ParseException, java.io.IOException
XmlParser.ElementHandler
The default implementation doesn't recognize anything. The result is a
schema error unless the parent handler accepts unrecognized XML.
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.
ParseException
- Invalid child element.
java.io.IOException
- Internal I/O exception (e.g., thrown by XML blob writer).public void processEndElement() throws ParseException
XmlParser.ElementHandler
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |