Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexFixWFragmentJSP.jsp')
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexFixWFragmentJSP.jsp120
1 files changed, 0 insertions, 120 deletions
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexFixWFragmentJSP.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexFixWFragmentJSP.jsp
deleted file mode 100644
index dcf7310be..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexFixWFragmentJSP.jsp
+++ /dev/null
@@ -1,120 +0,0 @@
-<%
-/*******************************************************************************
- * 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.*" %>
-
-<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/>
-<jsp:useBean id="fragID" class="java.lang.StringBuffer" scope="request"/>
-<jsp:useBean id="nodeID" class="java.lang.StringBuffer" scope="request"/>
-<jsp:useBean id="elementID" class="java.lang.StringBuffer" scope="request"/>
-<jsp:useBean id="attribute" class="java.lang.StringBuffer" scope="request"/>
-
-<%
-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();
-%>
-<table width="95%" border=0 cellpadding=3 cellspacing=0>
- <tr>
- <td height=25 valign="bottom" align="left" nowrap width=11>
- <a href="javascript:twist('<%=tableContainerID%>','<%=twistImageName%>')"><img name="<%=twistImageName%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_OPENED")%>" class="twist"></a>
- </td>
- <td class="labels" height=25 valign="bottom" align="left" nowrap>
- <a href="javascript:openXSDInfoDialog('<%=response.encodeURL(controller.getPathWithContext(OpenXSDInfoDialogAction.getActionLink(session.getId(),selectedNode.getNodeId(),fragID.toString())))%>')"><%=frag.getName()%></a>
- </td>
-
- <%
- if(elementFragment != null && elementFragment.isNillable()){
- if(elementFragment.isNil()){
- %>
- <td width=10><input type="checkbox" name="<%=((IXSDElementFragment)elementFragment).getNilID()%>" value="<%=IXSDElementFragment.NIL_VALUE%>" checked><%=wsdlPerspective.getMessage("ALT_NIL")%></td>
- <%
- }
- else{
- %>
- <td width=10><input type="checkbox" name="<%=((IXSDElementFragment)elementFragment).getNilID()%>" value="<%=IXSDElementFragment.NIL_VALUE%>" ><%=wsdlPerspective.getMessage("ALT_NIL")%></td>
- <%
- }
- }
- %>
- <td nowrap width="90%">&nbsp;</td>
- </tr>
-</table>
-<span id="<%=tableContainerID%>">
-<table cellpadding=0 cellspacing=0 class="<%=(xsdConfig.getIsWSDLPart() ? "fixfragtable" : "innerfixfragtable")%>">
- <%
- IXSDFragment[] childFrags = frag.getAllFragments();
- for (int i = 0; i < xsdConfig.getMaxOccurs(); 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);
- attribute.delete(0, attribute.length());
- attribute.append("false");
- %>
- <tr>
- <td width=16>
- <img width=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>">
- </td>
- <td>
- <input type="hidden" name="<%=frag.getID()%>" value="<%=childFragID%>">
- <jsp:include page="<%=childFrag.getWriteFragment()%>" flush="true"/>
- </td>
- </tr>
- <%
- }
-
- IXSDAttributeFragment[] attributeFragments = frag.getAllAttributeFragments();
- IXSDAttributeFragment attributeFragment;
- for(int j = 0; j < attributeFragments.length; j++){
- attributeFragment = attributeFragments[j];
- IXSDFragment delegationFragment = attributeFragment.getXSDDelegationFragment();
- fragID.delete(0, fragID.length());
- fragID.append(delegationFragment.getID());
- attribute.delete(0, attribute.length());
- attribute.append("true");
- %>
- <tr>
- <td width=16>
- <img width=16 src="<%=response.encodeURL(controller.getPathWithContext("images/space.gif"))%>">
- </td>
- <td>
- <input type="hidden" name="<%=frag.getID()%>" value="<%=attributeFragment.getID()%>">
- <jsp:include page="<%=delegationFragment.getWriteFragment()%>" flush="true"/>
- </td>
- </tr>
-
- <%
-
-
- }
- %>
-</table>
-</span>

Back to the top