public class Link.AtomHandler extends ExtensionPoint.ExtensionHandler
extendedClass, extManifest, extProfile, hasExtensionsqName, value, xmlBase, xmlLang| Modifier | Constructor and Description |
|---|---|
|
Link.AtomHandler(ExtensionProfile extProfile) |
protected |
Link.AtomHandler(ExtensionProfile extProfile,
Class<? extends Link> extendedClass) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getAbsoluteUri, getBooleanAttribute, getChildHandler, initializeXmlBlob, parseBooleanValue, processAttributepublic Link.AtomHandler(ExtensionProfile extProfile)
protected Link.AtomHandler(ExtensionProfile extProfile, Class<? extends Link> extendedClass)
public void processAttribute(String namespace, String localName, String value) throws ParseException
XmlParser.ElementHandlerprocessAttribute in class XmlParser.ElementHandlernamespace - Attribute namespace URI.localName - Attribute name.value - Attribute value.ParseException - Invalid attribute.public XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs) throws ParseException, 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 ExtensionPoint.ExtensionHandlernamespace - 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.IOException - Internal I/O exception (e.g., thrown by XML blob writer).public void processEndElement()
throws ParseException
XmlParser.ElementHandlerprocessEndElement in class ExtensionPoint.ExtensionHandlerParseExceptionCopyright © 2012. All Rights Reserved.