public class ExtensionFactoryMap extends java.lang.Object implements ExtensionFactory
Constructor and Description |
---|
ExtensionFactoryMap(java.util.List<ExtensionFactory> factories) |
Modifier and Type | Method and Description |
---|---|
ExtensionFactoryMap |
addFactory(ExtensionFactory factory) |
<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
|
java.lang.String[] |
listExtensionFactories() |
public ExtensionFactoryMap(java.util.List<ExtensionFactory> factories)
public <T extends Element> T getElementWrapper(Element internal)
ExtensionFactory
getElementWrapper
in interface ExtensionFactory
internal
- The Abdera element that needs to be wrappedpublic java.lang.String[] getNamespaces()
ExtensionFactory
getNamespaces
in interface ExtensionFactory
public boolean handlesNamespace(java.lang.String namespace)
ExtensionFactory
handlesNamespace
in interface ExtensionFactory
namespace
- The XML namespace of the extensionpublic ExtensionFactoryMap addFactory(ExtensionFactory factory)
public <T extends Base> java.lang.String getMimeType(T base)
ExtensionFactory
getMimeType
in interface ExtensionFactory
base
- An Abdera objectpublic java.lang.String[] listExtensionFactories()
Copyright © 2010 - 2020 Adobe. All Rights Reserved