<% /******************************************************************************* * Copyright (c) 2002, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ %> <%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.*, org.eclipse.wst.ws.internal.explorer.platform.wsdl.datamodel.*, org.eclipse.wst.ws.internal.explorer.platform.wsdl.constants.*, org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.*, org.eclipse.wst.ws.internal.explorer.platform.wsdl.actions.*, org.eclipse.wst.ws.internal.explorer.platform.perspective.*" %> <% WSDLPerspective wsdlPerspective = controller.getWSDLPerspective(); Node selectedNode = wsdlPerspective.getNodeManager().getNode(Integer.parseInt(nodeID.toString())); WSDLOperationElement operElement = (WSDLOperationElement)selectedNode.getTreeElement(); IXSDComplexFragment frag = (IXSDComplexFragment)operElement.getFragmentByID(fragID.toString()); IXSDElementFragment elementFragment = (IXSDElementFragment)operElement.getFragmentByID(elementID.toString()); XSDToFragmentConfiguration xsdConfig = frag.getXSDToFragmentConfiguration(); String tableContainerID = (new StringBuffer(FragmentConstants.TABLE_ID)).append(frag.getID()).toString(); String twistImageName = (new StringBuffer("x")).append(tableContainerID).toString(); String nameAnchorID = (new StringBuffer(FragmentConstants.NAME_ANCHOR_ID)).append(frag.getID()).toString(); %> <% if(elementFragment != null && elementFragment.isNillable()){ if(elementFragment.isNil()){ %> <% } else{ %> <% } } %>
" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"> <%=frag.getName()%> <%=wsdlPerspective.getMessage("ALT_NIL")%><%=wsdlPerspective.getMessage("ALT_NIL")%> <%=wsdlPerspective.getMessage("FORM_LINK_ADD")%> <%=wsdlPerspective.getMessage("FORM_LINK_REMOVE")%>  
"> <% IXSDFragment[] childFrags = frag.getAllFragments(); for (int i = 0; i < childFrags.length || i < xsdConfig.getMinOccurs(); i++) { IXSDFragment childFrag; String childFragID; if (i < childFrags.length) { childFrag = childFrags[i]; childFragID = childFrag.getID(); } else { childFragID = frag.createComplexInstance(); childFrag = frag.getFragment(childFragID); } fragID.delete(0, fragID.length()); fragID.append(childFragID); %> <% IXSDAttributeFragment[] attributeFragments = frag.getAllAttributeFragments(); IXSDAttributeFragment attributeFragment; for(int j = 0; j < attributeFragments.length; j++){ attributeFragment = attributeFragments[j]; if(attributeFragment.getID().startsWith(childFragID)){ IXSDFragment delegationFragment = attributeFragment.getXSDDelegationFragment(); fragID.delete(0, fragID.length()); fragID.append(delegationFragment.getID()); attribute.delete(0, attribute.length()); attribute.append("true"); %> <% } } } %>
"> <%=wsdlPerspective.getMessage("FORM_LABEL_CONTENT")%>
">