Package org.faktorips.runtime
Interface IModifiableRuntimeRepository
- All Superinterfaces:
IRuntimeRepository
- All Known Implementing Classes:
InMemoryRuntimeRepository
An extension of the
IRuntimeRepository that allows to put files in the repository.- Since:
- 24.1
-
Method Summary
Modifier and TypeMethodDescription<T extends IRuntimeObject>
voidputCustomRuntimeObject(Class<T> type, String ipsObjectQualifiedName, T runtimeObject) Puts the runtimeObject into the repository.default <T> voidputEnumValues(Class<T> enumTypeClass, List<T> enumValues) Puts the given enum values in the repository replacing all existing values for the given enumType, removing any description.<T> voidputEnumValues(Class<T> enumTypeClass, List<T> enumValues, org.faktorips.values.InternationalString description) Puts the given enum values and description in the repository replacing all existing values for the given enumType.voidPuts the test case into the repository.voidputProductCmptGeneration(IProductComponentGeneration generation) Puts the product component generation and its product component into the repository.voidputProductComponent(IProductComponent productCmpt) Puts the product component into the repository.voidPuts the table into the repository.Methods inherited from interface org.faktorips.runtime.IRuntimeRepository
addDirectlyReferencedRepository, addEnumValueLookupService, getAllEnumClasses, getAllIpsTestCases, getAllModelTypeImplementationClasses, getAllProductComponentIds, getAllProductComponents, getAllProductComponents, getAllProductComponents, getAllReferencedRepositories, getAllTables, getClassLoader, getCustomRuntimeObject, getDirectlyReferencedRepositories, getEnumDescription, getEnumValue, getEnumValue, getEnumValueLookupService, getEnumValues, 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, isModifiable, newJAXBContext, removeEnumValueLookupService, setRuntimeRepositoryLookup
-
Method Details
-
putCustomRuntimeObject
<T extends IRuntimeObject> void putCustomRuntimeObject(Class<T> type, String ipsObjectQualifiedName, T runtimeObject) Puts the runtimeObject into the repository. -
putEnumValues
<T> void putEnumValues(Class<T> enumTypeClass, List<T> enumValues, org.faktorips.values.InternationalString description) Puts the given enum values and description in the repository replacing all existing values for the given enumType.- Parameters:
enumTypeClass- the Java class representing the enumeration typeenumValues- the value of the enumeration type as listdescription- the description of the enumeration
-
putEnumValues
Puts the given enum values in the repository replacing all existing values for the given enumType, removing any description.- Parameters:
enumTypeClass- The Java class representing the enumeration type.enumValues- The value of the enumeration type as list.- See Also:
-
putIpsTestCase
Puts the test case into the repository. -
putProductCmptGeneration
Puts the product component generation and its product component into the repository. If the repository already contains a generation with the same id, the new component replaces the old one. The same applies for the product component.- Throws:
IllegalRepositoryModificationException- if this repository does not allows to modify its contents.NullPointerException- if generation isnull- See Also:
-
putProductComponent
Puts the product component into the repository. If the repository already contains a component with the same id, the new component replaces the old one.- Throws:
NullPointerException- if productCmpt isnull.- See Also:
-
putTable
Puts the table into the repository. Replaces any table instance of the same class or any of its superclasses. The latter check is needed to replace tables with mock implementations.- Throws:
NullPointerException- if table isnullor has noname.
-