Package org.faktorips.runtime
Interface ITable<R>
- Type Parameters:
R- the class representing a row of this table
- All Known Implementing Classes:
Table
public interface ITable<R>
Base interface for table contents
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns all rows of this table.getName()Returns the qualified name of this table.voidsetDescription(Locale locale, String newDescriptionText, IRuntimeRepository repository) Sets or updates the description for the givenLocale.voidsetDescription(org.faktorips.values.InternationalString newDescription, IRuntimeRepository repository) Replaces the current multi-language description with the givenInternationalString.Creates an XMLElementthat represents this table's data.
-
Field Details
-
TAG_NAME
- See Also:
-
-
Method Details
-
getName
String getName()Returns the qualified name of this table. -
getAllRows
Returns all rows of this table. -
toXml
Creates an XMLElementthat represents this table's data.Throws an
UnsupportedOperationExceptionif the support for toXml ("Generate toXml Support") is not activated in the Faktor-IPS standard builder.- Parameters:
document- a document, that can be used to create XML elements.
-
setDescription
void setDescription(@NonNull Locale locale, @NonNull String newDescriptionText, @NonNull IRuntimeRepository repository) Sets or updates the description for the givenLocale.If the description for the locale already exists, it will be replaced. If no description exists, a new localized description entry will be added. If the table belongs to a read-only
IRuntimeRepository, this method will throw anIllegalRepositoryModificationException.- Parameters:
locale- the locale for which the description is to be set (must not benull)newDescriptionText- the new description text for the given locale (must not benull)repository- the runtime repository containing the table (must not benull)- Throws:
NullPointerException- if either parameter isnullIllegalRepositoryModificationException- if the table is part of a read-only repository- Since:
- 25.7
-
setDescription
void setDescription(@NonNull org.faktorips.values.InternationalString newDescription, @NonNull IRuntimeRepository repository) Replaces the current multi-language description with the givenInternationalString.This method will overwrite all existing localized descriptions. If the table belongs to a read-only
IRuntimeRepository, this method will throw anIllegalRepositoryModificationException.- Parameters:
newDescription- the new internationalized description to set (must not benull)repository- the runtime repository containing the table (must not benull)- Throws:
NullPointerException- ifnewDescriptionisnullIllegalRepositoryModificationException- if the table is part of a read-only repository- Since:
- 25.7
-