Package org.faktorips.runtime.internal
Class AbstractXmlInputStreamRepository
java.lang.Object
org.faktorips.runtime.internal.AbstractRuntimeRepository
org.faktorips.runtime.internal.AbstractCachingRuntimeRepository
org.faktorips.runtime.internal.AbstractTocBasedRuntimeRepository
org.faktorips.runtime.internal.AbstractXmlInputStreamRepository
- All Implemented Interfaces:
IRuntimeRepository
- Direct Known Subclasses:
AbstractClassLoadingRuntimeRepository
An abstract repository that handles loading Faktor-IPS runtime information from XML as
InputStreams. The concrete runtime repositories provide these streams, for
example the ClassloaderRuntimeRepository uses
ClassLoader.getResourceAsStream(String) to load the XML resources.-
Constructor Summary
ConstructorsConstructorDescriptionAbstractXmlInputStreamRepository(String name, ICacheFactory cacheFactory, ClassLoader cl) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TcreateCustomObject(CustomTocEntryObject<T> tocEntry) protected <T> IpsEnum<T>createEnumValues(EnumContentTocEntry tocEntry, Class<T> enumClass) protected IProductComponentcreateProductCmpt(ProductCmptTocEntry tocEntry) protected IProductComponentGenerationcreateProductCmptGeneration(GenerationTocEntry generationTocEntry) protected ProductComponentGenerationcreateProductComponentGenerationInstance(GenerationTocEntry tocEntry, ProductComponent productCmpt) protected ProductComponentcreateProductComponentInstance(String implementationClassName, String ipsObjectId, String kindId, String versionId) protected ITable<?>createTable(TableContentTocEntry tocEntry) Creates the table object for the given toc entry.protected IpsTestCaseBasecreateTestCase(TestCaseTocEntry tocEntry, IRuntimeRepository runtimeRepository) Creates the test case object for the given toc entry.protected <T> ElementgetDocumentElement(CustomTocEntryObject<T> tocEntry) This method returns the xml element of the ips object identified by the tocEntryprotected ElementgetDocumentElement(GenerationTocEntry tocEntry) This method returns the xml element of the product component generation identified by the tocEntryprotected ElementgetDocumentElement(ProductCmptTocEntry tocEntry) This method returns the xml element of the product component identified by the tocEntryprotected ElementgetDocumentElement(TestCaseTocEntry tocEntry) This method returns the xml element of the test case identified by the tocEntryprotected ProductVariantRuntimeHelperprotected abstract InputStreamgetXmlAsStream(EnumContentTocEntry tocEntry) Returns the XML data for the specifiedEnumContentTocEntryasInputStreamprotected abstract InputStreamgetXmlAsStream(TableContentTocEntry tocEntry) Returns the XML data for the specifiedTableContentTocEntryasInputStreamprotected abstract InputStreamgetXmlAsStream(TocEntry tocEntry) Returns the XML data for the specifiedTocEntryasInputStreamMethods inherited from class org.faktorips.runtime.internal.AbstractTocBasedRuntimeRepository
createEnumXmlAdapter, getAllEnumClasses, getAllIpsTestCases, getAllModelTypeImplementationClasses, getAllProductComponentIds, getAllProductComponents, getAllProductComponents, getAllTables, getClass, getIpsTestCaseInternal, getIpsTestCasesStartingWith, getLatestProductComponentGenerationInternal, getNextProductComponentGenerationInternal, getNotCachedCustomObject, getNotCachedEnumValues, getNotCachedEnumXmlAdapter, getNotCachedProductComponent, getNotCachedProductComponentGeneration, getNotCachedTable, getNumberOfProductComponentGenerationsInternal, getPreviousProductComponentGenerationInternal, getProductComponentGenerationInternal, getProductComponentGenerations, getProductComponentInternal, getTableInternal, getTableOfContents, initialize, loadTableOfContentsMethods inherited from class org.faktorips.runtime.internal.AbstractCachingRuntimeRepository
getAllInternalEnumXmlAdapters, getCustomRuntimeObjectInternal, getEnumDescription, getEnumValuesInternal, getProductComponentGenerationInternal, getProductComponentInternal, getTableInternal, initCachesMethods inherited from class org.faktorips.runtime.internal.AbstractRuntimeRepository
addAllEnumXmlAdapters, addDirectlyReferencedRepository, addEnumValueLookupService, getAllEnumClasses, getAllIpsTestCases, getAllModelTypeImplementationClasses, getAllProductComponentIds, getAllProductComponents, getAllProductComponents, getAllProductComponents, getAllProductComponentsInternal, getAllReferencedRepositories, getAllTables, getClassLoader, getCustomRuntimeObject, getDirectlyReferencedRepositories, getEnumValue, getEnumValue, getEnumValueLookupService, getEnumValues, getEnumValuesDefinedInType, getExistingEnumValue, getExistingProductComponent, getExistingProductComponentGeneration, getFormulaEvaluatorFactory, getIpsTest, getIpsTest, getIpsTestCase, getIpsTestCase, getIpsTestCasesStartingWith, getIpsTestSuite, getIpsTestSuite, getLatestProductComponentGeneration, getModelType, getModelType, getModelType, getName, getNextProductComponentGeneration, getNumberOfProductComponentGenerations, getPreviousProductComponentGeneration, getProductComponent, getProductComponent, getProductComponentGeneration, getProductComponentGenerations, getRuntimeRepositoryLookup, getTable, getTable, newJAXBContext, newJAXBContext, removeEnumValueLookupService, setFormulaEvaluatorFactory, setRuntimeRepositoryLookup, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.faktorips.runtime.IRuntimeRepository
isModifiable
-
Constructor Details
-
AbstractXmlInputStreamRepository
-
-
Method Details
-
getXmlAsStream
Returns the XML data for the specifiedEnumContentTocEntryasInputStream- Parameters:
tocEntry- Specifying the requested EnumContent- Returns:
- An InputStream containing the XML data - should not return null!
- Throws:
RuntimeException- in case of any exception do not return null but an accurateRuntimeException
-
getXmlAsStream
Returns the XML data for the specifiedTableContentTocEntryasInputStream- Parameters:
tocEntry- Specifying the requested TableContent- Returns:
- An InputStream containing the XML data - should not return null!
- Throws:
RuntimeException- in case of any exception do not return null but an accurateRuntimeException
-
getXmlAsStream
Returns the XML data for the specifiedTocEntryasInputStream- Parameters:
tocEntry- Specifying the requested ips object- Returns:
- An InputStream containing the XML data - should not return null!
- Throws:
RuntimeException- in case of any exception do not return null but an accurateRuntimeException
-
getProductVariantHelper
-
createEnumValues
- Specified by:
createEnumValuesin classAbstractTocBasedRuntimeRepository
-
createProductCmpt
- Specified by:
createProductCmptin classAbstractTocBasedRuntimeRepository
-
createProductCmptGeneration
protected IProductComponentGeneration createProductCmptGeneration(GenerationTocEntry generationTocEntry) - Specified by:
createProductCmptGenerationin classAbstractTocBasedRuntimeRepository
-
createTable
Description copied from class:AbstractTocBasedRuntimeRepositoryCreates the table object for the given toc entry.- Specified by:
createTablein classAbstractTocBasedRuntimeRepository
-
createTestCase
protected IpsTestCaseBase createTestCase(TestCaseTocEntry tocEntry, IRuntimeRepository runtimeRepository) Description copied from class:AbstractTocBasedRuntimeRepositoryCreates the test case object for the given toc entry.- Specified by:
createTestCasein classAbstractTocBasedRuntimeRepository
-
createCustomObject
- Specified by:
createCustomObjectin classAbstractTocBasedRuntimeRepository
-
getDocumentElement
This method returns the xml element of the product component generation identified by the tocEntry -
getDocumentElement
This method returns the xml element of the product component identified by the tocEntry -
getDocumentElement
This method returns the xml element of the test case identified by the tocEntry -
getDocumentElement
This method returns the xml element of the ips object identified by the tocEntry -
createProductComponentGenerationInstance
protected ProductComponentGeneration createProductComponentGenerationInstance(GenerationTocEntry tocEntry, ProductComponent productCmpt) -
createProductComponentInstance
protected ProductComponent createProductComponentInstance(String implementationClassName, String ipsObjectId, String kindId, String versionId)
-