&& parent instanceof IActionState) {
child.setElementParent(parent);
}
else if (child.getType() == IActionElement.ACTION_TYPE.RENDER_ACTION
&& parent instanceof IRenderActions) {
IRenderActions state = (IRenderActions) parent;
IViewState viewState = (IViewState) state.getElementParent();
if (viewState.getRenderActions() == null) {
viewState.setRenderActions(state);
}
child.setElementParent(state);
}
else if (child.getType() == IActionElement.ACTION_TYPE.ENTRY_ACTION
&& parent instanceof IEntryActions) {
IEntryActions state = (IEntryActions) parent;
IState viewState = (IState) state.getElementParent();
if (viewState.getEntryActions() == null) {
viewState.setEntryActions(state);
}
child.setElementParent(state);
}
else if (child.getType() == IActionElement.ACTION_TYPE.EXIT_ACTION
&& parent instanceof IExitActions) {
IExitActions state = (IExitActions) parent;
IState viewState = (IState) state.getElementParent();
if (viewState.getExitActions() == null) {
viewState.setExitActions(state);
}
child.setElementParent(state);
}