[New] Added ParameterBagContainer.getParameterBag(String, boolean)

This commit is contained in:
Robert von Burg 2017-10-18 13:10:16 +02:00
parent 959977a32b
commit f2b0666ece
1 changed files with 31 additions and 19 deletions

View File

@ -77,6 +77,18 @@ public interface ParameterBagContainer extends StrolchElement {
*/
public ParameterBag getParameterBag(String key);
/**
* Returns the {@link ParameterBag} with the given key, or null if it does not exist
*
* @param key
* the key of the {@link ParameterBag} to return
* @param assertExists
* if set to true, and the parameter bag does not exist, a {@link StrolchModelException} is thrown
*
* @return the {@link ParameterBag} with the given key, or null if it does not exist
*/
public ParameterBag getParameterBag(String key, boolean assertExists);
/**
* Adds the given {@link ParameterBag} to this {@link GroupedParameterizedElement}
*