|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.abdera.factory.ExtensionFactoryMap
public class ExtensionFactoryMap
A utility implementation of ExtensionFactory used internally by Abdera. It maintains the collection ExtensionFactory instances discovered on the classpath and a cache of Internal-Wrapper mappings.
Constructor Summary | |
---|---|
ExtensionFactoryMap(List<ExtensionFactory> factories)
|
Method Summary | ||
---|---|---|
ExtensionFactoryMap |
addFactory(ExtensionFactory factory)
|
|
|
getElementWrapper(Element internal)
Abdera's support for static extensions is based on a simple delegation model. |
|
|
getMimeType(T base)
Retrieve the mime type for the element |
|
String[] |
getNamespaces()
Returns the Namespace URIs handled by this Extension Factory |
|
boolean |
handlesNamespace(String namespace)
Returns true if this extension factory handles the specified namespace |
|
String[] |
listExtensionFactories()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtensionFactoryMap(List<ExtensionFactory> factories)
Method Detail |
---|
public <T extends Element> T getElementWrapper(Element internal)
ExtensionFactory
getElementWrapper
in interface ExtensionFactory
internal
- The Abdera element that needs to be wrapped
public String[] getNamespaces()
ExtensionFactory
getNamespaces
in interface ExtensionFactory
public boolean handlesNamespace(String namespace)
ExtensionFactory
handlesNamespace
in interface ExtensionFactory
namespace
- The XML namespace of the extension
public ExtensionFactoryMap addFactory(ExtensionFactory factory)
public <T extends Base> String getMimeType(T base)
ExtensionFactory
getMimeType
in interface ExtensionFactory
base
- An Abdera object
public String[] listExtensionFactories()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |