diff --git a/li.strolch.model/src/main/java/li/strolch/model/activity/Activity.java b/li.strolch.model/src/main/java/li/strolch/model/activity/Activity.java index 2c5fb5014..5c8a87a4c 100644 --- a/li.strolch.model/src/main/java/li/strolch/model/activity/Activity.java +++ b/li.strolch.model/src/main/java/li/strolch/model/activity/Activity.java @@ -203,6 +203,30 @@ public class Activity extends AbstractStrolchRootElement return (T) element; } + /** + * Returns the {@link Action} with the given ID which is a direct child of this {@link Activity} + * + * @param id + * the id of the {@link Action} to return + * + * @return the {@link Action} with the given ID + */ + public Action getAction(String id) { + return getElement(id); + } + + /** + * Returns the {@link Activity} with the given ID which is a direct child of this {@link Activity} + * + * @param id + * the id of the {@link Activity} to return + * + * @return the {@link Activity} with the given ID + */ + public Activity getActivity(String id) { + return getElement(id); + } + /** * get {@code IActivityElement} by id *