Interface ITocEntryFactory<T extends TocEntryObject>
-
- All Known Implementing Classes:
AbstractTocEntryFactory,AbstractTocEntryFactory.EnumContentTocEntryFactory,AbstractTocEntryFactory.EnumXmlAdapterTocEntryFactory,AbstractTocEntryFactory.FormulaTestTocEntryFactory,AbstractTocEntryFactory.PolicyCmptTypeTocEntryFactory,AbstractTocEntryFactory.ProductCmptTocEntryFactory,AbstractTocEntryFactory.ProductCmptTypeTocEntryFactory,AbstractTocEntryFactory.TableContentTocEntryFactory,AbstractTocEntryFactory.TestCaseTocEntryFactory
public interface ITocEntryFactory<T extends TocEntryObject>AITocEntryFactoryimplementation is used to loadTocEntryObjects of a given type identified by their XML tag.To make a
ITocEntryFactoryavailable during design time, it has to be registered with theorg.faktorips.devtools.stdbuilder.tocEntryFactoryextension point.At runtime, the extension point mechanism is not available, instead the
ServiceLoaderis used. For theServiceLoaderto find the implementation, the full qualified name of the implementation class must be specified in the fileMETA-INF/services/org.faktorips.runtime.internal.toc.ITocEntryFactory.The file and the implementation class must be accessible by the
ClassLoaderprovided to theAbstractReadonlyTableOfContents's constructor.- Author:
- schwering
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TcreateFromXml(org.w3c.dom.Element entryElement)Creates aTocEntryObjectfrom it's XML representation.java.lang.StringgetXmlTag()Returns the XML tag identifying aTocEntryObjectthis factory can create.
-
-
-
Method Detail
-
createFromXml
T createFromXml(org.w3c.dom.Element entryElement)
Creates aTocEntryObjectfrom it's XML representation.- Parameters:
entryElement- the XML element representing theTocEntryObject- Returns:
- a
TocEntryObject
-
getXmlTag
java.lang.String getXmlTag()
Returns the XML tag identifying aTocEntryObjectthis factory can create.- Returns:
- the XML tag identifying a
TocEntryObjectthis factory can create
-
-