buf.append(bean.getClassName());
buf.append(']');
}
}
else if (element instanceof IStateTransition) {
IStateTransition state = (IStateTransition) element;
if (state.getToStateId() != null) {
buf.append("To: " + state.getToStateId());
}
if (state.getToStateId() != null) {
buf.append("\nOn: " + state.getOn());
}
}
else {
buf.append(super.getText(element));
}
if (showAdditionalInfo) {
if (element instanceof IViewState) {
IViewState state = (IViewState) element;
if (state.getView() != null) {
buf.append("\nView: " + state.getView());
}
}
if (element instanceof ISubflowState) {
ISubflowState state = (ISubflowState) element;
if (WebflowModelXmlUtils.isVersion1Flow(state)) {
if (state.getFlow() != null) {
buf.append("\nFlow: " + state.getFlow());
}
}
else {
if (state.getFlow() != null) {
buf.append("\nSubflow: " + state.getFlow());
}
}
}
if (element instanceof IEndState) {
IEndState state = (IEndState) element;
if (state.getView() != null) {
buf.append("\nView: " + state.getView());
}
}
if (element instanceof IStateTransition) {
IStateTransition state = (IStateTransition) element;
if (state.getOnException() != null) {
buf.append("\nOn-exception: " + state.getOnException());
}
}
}
if (showElementType) {