[New] Added Activity.getAction() and .getActivity()
This commit is contained in:
parent
a95d89aae8
commit
f102e69fe8
|
@ -203,6 +203,30 @@ public class Activity extends AbstractStrolchRootElement
|
||||||
return (T) element;
|
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
|
* get {@code IActivityElement} by id
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue