[New] Added Activity.getAction() and .getActivity()

This commit is contained in:
Robert von Burg 2020-07-30 22:40:09 +02:00
parent a95d89aae8
commit f102e69fe8
1 changed files with 24 additions and 0 deletions

View File

@ -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
*