children.addAll(properties.getAttributes());
}
}
if (getModel() instanceof IState
&& !(getModel() instanceof IWebflowState)) {
IState state = (IState) getModel();
if (state.getEntryActions() != null) {
children.addAll((state.getEntryActions().getEntryActions()));
}
}
if (getModel() instanceof IActionState) {
if (((IActionState) getState()).getActions() != null) {
children.addAll(((IActionState) getState()).getActions());
}
}
if (getModel() instanceof IViewState) {
if (((IViewState) getState()).getRenderActions() != null) {
children.addAll(((IViewState) getState()).getRenderActions()
.getRenderActions());
}
}
else if (getModel() instanceof ISubflowState) {
if (((ISubflowState) getModel()).getAttributeMapper() != null)
children.add(((ISubflowState) getModel()).getAttributeMapper());
}
else if (getModel() instanceof IInlineFlowState) {
children.addAll(((IInlineFlowState) getModel()).getWebFlowState()
.getStates());
children.addAll(((IInlineFlowState) getModel()).getWebFlowState()
.getInlineFlowStates());
}
else if (getModel() instanceof IWebflowState) {
if (((IWebflowState) getState()).getStates() != null
&& ((IWebflowState) getState()).getInlineFlowStates() != null) {
children.addAll(((IWebflowState) getState()).getStates());
children.addAll(((IWebflowState) getState())
.getInlineFlowStates());
}
}
else if (getModel() instanceof IDecisionState) {
if (((IDecisionState) getModel()).getIfs() != null) {
children.addAll(((IDecisionState) getModel()).getIfs());
}
}
if (getModel() instanceof IState
&& !(getModel() instanceof IWebflowState)) {
IState state = (IState) getModel();
if (state.getExitActions() != null) {
children.addAll((state.getExitActions().getExitActions()));
}
if (state.getExceptionHandlers() != null) {
children.addAll((state.getExceptionHandlers()));
}
}
return children;
}