public abstract class AbstractReadonlyTableOfContents extends Object implements IReadonlyTableOfContents
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
PRODUCT_DATA_VERSION_XML_ELEMENT |
static String |
TOC_XML_ELEMENT |
| Constructor and Description |
|---|
AbstractReadonlyTableOfContents(ClassLoader classLoader)
Creates a new TOC that uses the given
ClassLoader to find ITocEntryFactory
implementations via ServiceLoader. |
| Modifier and Type | Method and Description |
|---|---|
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 <T extends IRuntimeObject> |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCustomTocEntry, getEnumContentTocEntriespublic static final String TOC_XML_ELEMENT
public static final String PRODUCT_DATA_VERSION_XML_ELEMENT
public AbstractReadonlyTableOfContents(ClassLoader classLoader)
ClassLoader to find ITocEntryFactory
implementations via ServiceLoader.classLoader - the ClassLoader used to find ITocEntryFactory
implementationspublic void initFromXml(Element tocElement)
protected abstract void internalAddEntry(TocEntryObject entry)
public abstract ProductCmptTocEntry getProductCmptTocEntry(String id)
getProductCmptTocEntry in interface IReadonlyTableOfContentspublic 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()
IReadonlyTableOfContentsgetProductDataVersion in interface IReadonlyTableOfContentspublic abstract <T extends IRuntimeObject> List<CustomTocEntryObject<T>> getTypedTocEntries(Class<T> type)
Copyright © 2021. All rights reserved.