public interface ExtensionFactory
Extension Factories are used to provide a means of dynamically resolving builders for namespaced extension elements
There are four ways of supporting extension elements.
Registering an Extension Factory requires generally nothing more than implementing ExtensionFactory and then creating a file called META-INF/services/org.apache.abdera.factory.ExtensionFactory and listing the class names of each ExtensionFactory you wish to register.
ExtensionFactory implementations are assumed to be threadsafe
Modifier and Type | Method and Description |
---|---|
<T extends Element> |
getElementWrapper(Element internal)
Abdera's support for static extensions is based on a simple delegation
model.
|
<T extends Base> |
getMimeType(T base)
Retrieve the mime type for the element
|
java.lang.String[] |
getNamespaces()
Returns the Namespace URIs handled by this Extension Factory
|
boolean |
handlesNamespace(java.lang.String namespace)
Returns true if this extension factory handles the specified namespace
|
boolean handlesNamespace(java.lang.String namespace)
namespace
- The XML namespace of the extensionjava.lang.String[] getNamespaces()
<T extends Element> T getElementWrapper(Element internal)
internal
- The Abdera element that needs to be wrapped<T extends Base> java.lang.String getMimeType(T base)
base
- An Abdera objectCopyright © 2010 - 2020 Adobe. All Rights Reserved