|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faktorips.runtime.internal.toc.AbstractReadonlyTableOfContents
public abstract class AbstractReadonlyTableOfContents
A table of contents for the runtime repository.
The table of contents contains a list of toc entries that contain the information needed to identify and load the objects stored in the repository.
The table of contents can be extended to read toc entries for new object types by implementing
and registering a ITocEntryFactory.
| Field Summary | |
|---|---|
static String |
PRODUCT_DATA_VERSION_XML_ELEMENT
|
static String |
TOC_XML_ELEMENT
|
| Constructor Summary | |
|---|---|
AbstractReadonlyTableOfContents(ClassLoader classLoader)
Creates a new TOC that uses the given ClassLoader to find ITocEntryFactory
implementations via ServiceLoader. |
|
| Method Summary | ||
|---|---|---|
abstract EnumContentTocEntry |
getEnumContentTocEntry(String className)
Returns the toc entry representing enum contents for the specified implementation class. |
|
abstract Set<EnumXmlAdapterTocEntry> |
getEnumXmlAdapterTocEntries()
Returns all toc entries that link to an enumeration xml adapter. |
|
abstract Set<ModelTypeTocEntry> |
getModelTypeTocEntries()
Returns all toc's entries representing model types. |
|
abstract List<ProductCmptTocEntry> |
getProductCmptTocEntries()
Returns all toc's entries representing product components. |
|
abstract List<ProductCmptTocEntry> |
getProductCmptTocEntries(String kindId)
Returns all toc's entries representing product components that belong to the indicated product component kind. |
|
abstract ProductCmptTocEntry |
getProductCmptTocEntry(String id)
Returns the toc entry representing a product component for the given id or null if no entry exists for the given id. |
|
abstract ProductCmptTocEntry |
getProductCmptTocEntry(String kindId,
String versionId)
Returns the toc entry representing a product component for the given product component kind id and versionId or null if no such entry exists. |
|
String |
getProductDataVersion()
Return the version of the product data in this table of content. |
|
abstract List<TableContentTocEntry> |
getTableTocEntries()
Returns all toc's entries representing tables. |
|
abstract TableContentTocEntry |
getTableTocEntryByClassname(String implementationClass)
Returns a toc entry representing a table for the table's class object. |
|
abstract TableContentTocEntry |
getTableTocEntryByQualifiedTableName(String qualifiedTableName)
Returns a toc entry representing a table for this table's qualified table name. |
|
abstract List<TestCaseTocEntry> |
getTestCaseTocEntries()
Returns all toc's entries representing test cases. |
|
abstract TestCaseTocEntry |
getTestCaseTocEntryByQName(String qName)
Returns a toc entry representing a test case for the given qualified name. |
|
abstract
|
getTypedTocEntries(Class<T> type)
|
|
void |
initFromXml(Element tocElement)
Initializes the table of contents with data stored in the xml element. |
|
protected abstract void |
internalAddEntry(TocEntryObject entry)
Adds the entry to the table of contents. |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.faktorips.runtime.internal.toc.IReadonlyTableOfContents |
|---|
getCustomTocEntry, getEnumContentTocEntries |
| Field Detail |
|---|
public static final String TOC_XML_ELEMENT
public static final String PRODUCT_DATA_VERSION_XML_ELEMENT
| Constructor Detail |
|---|
public AbstractReadonlyTableOfContents(ClassLoader classLoader)
ClassLoader to find ITocEntryFactory
implementations via ServiceLoader.
classLoader - the ClassLoader used to find ITocEntryFactory
implementations| Method Detail |
|---|
public void initFromXml(Element tocElement)
protected abstract void internalAddEntry(TocEntryObject entry)
public abstract ProductCmptTocEntry getProductCmptTocEntry(String id)
getProductCmptTocEntry in interface IReadonlyTableOfContents
public abstract ProductCmptTocEntry getProductCmptTocEntry(String kindId,
String versionId)
getProductCmptTocEntry in interface IReadonlyTableOfContentspublic abstract List<ProductCmptTocEntry> getProductCmptTocEntries()
getProductCmptTocEntries in interface IReadonlyTableOfContentspublic abstract List<ProductCmptTocEntry> getProductCmptTocEntries(String kindId)
getProductCmptTocEntries in interface IReadonlyTableOfContentspublic abstract List<TableContentTocEntry> getTableTocEntries()
getTableTocEntries in interface IReadonlyTableOfContentspublic abstract List<TestCaseTocEntry> getTestCaseTocEntries()
getTestCaseTocEntries in interface IReadonlyTableOfContentspublic abstract TestCaseTocEntry getTestCaseTocEntryByQName(String qName)
getTestCaseTocEntryByQName in interface IReadonlyTableOfContentspublic abstract TableContentTocEntry getTableTocEntryByClassname(String implementationClass)
getTableTocEntryByClassname in interface IReadonlyTableOfContentspublic abstract TableContentTocEntry getTableTocEntryByQualifiedTableName(String qualifiedTableName)
getTableTocEntryByQualifiedTableName in interface IReadonlyTableOfContentspublic abstract Set<ModelTypeTocEntry> getModelTypeTocEntries()
getModelTypeTocEntries in interface IReadonlyTableOfContentspublic abstract EnumContentTocEntry getEnumContentTocEntry(String className)
getEnumContentTocEntry in interface IReadonlyTableOfContentspublic abstract Set<EnumXmlAdapterTocEntry> getEnumXmlAdapterTocEntries()
getEnumXmlAdapterTocEntries in interface IReadonlyTableOfContentspublic String getProductDataVersion()
IReadonlyTableOfContents
getProductDataVersion in interface IReadonlyTableOfContentspublic String toString()
toString in class Objectpublic abstract <T extends IRuntimeObject> List<CustomTocEntryObject<T>> getTypedTocEntries(Class<T> type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||