|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 the file META-INF/services/org.apache.abdera.factory.ExtensionFactory and listing the class names of each ExtensionFactory you wish to register.
Note that at this time, ExtensionFactories are specific to the parser implementation used. That is, if you're using the default StAX-based FOMParser and FOMFactory implementation, your ExtensionFactories will need to also implement FOMExtensionFactory.
Method Summary | ||
---|---|---|
java.util.List<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 |
|
|
newExtensionElement(javax.xml.namespace.QName qname,
Base parent,
Factory factory)
Called by the Factory implementaton to create an instance of the extension element. |
Method Detail |
---|
boolean handlesNamespace(java.lang.String namespace)
java.util.List<java.lang.String> getNamespaces()
<T extends Element> T newExtensionElement(javax.xml.namespace.QName qname, Base parent, Factory factory)
qname
- the QName of the extension elementparent
- the Parent of the extension elementfactory
- the Factory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |