Skip to main content
summaryrefslogtreecommitdiffstats
blob: 43b229e533c24cbc49e438834dceb5da5befea1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*******************************************************************************
 * 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
 *******************************************************************************/
package org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.impl;

import java.util.Hashtable;
import java.util.Vector;
import org.eclipse.wst.ws.internal.explorer.platform.util.MultipartFormDataException;
import org.eclipse.wst.ws.internal.explorer.platform.util.MultipartFormDataParser;
import org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.IXSDDelegationFragment;
import org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.IXSDFragment;
import org.eclipse.wst.ws.internal.explorer.platform.wsdl.fragment.XSDToFragmentConfiguration;
import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class XSDDelegationFragment extends XSDFragment implements IXSDDelegationFragment
{
  private IXSDFragment xsdFragment_;

  public XSDDelegationFragment(String id, String name, XSDToFragmentConfiguration config)
  {
    super(id, name, config);
    xsdFragment_ = null;
  }

  public void setName(String name) {
    super.setName(name);
    if (xsdFragment_ != null)
      xsdFragment_.setName(name);
  }

  public boolean processParameterValues(MultipartFormDataParser parser) throws MultipartFormDataException
  {
    return xsdFragment_.processParameterValues(parser);
  }

  public void setParameterValues(String paramKey, String[] params)
  {
    xsdFragment_.setParameterValues(paramKey, params);
  }

  public void setParameterValues(String paramKey, Vector params)
  {
    xsdFragment_.setParameterValues(paramKey, params);
  }

  public String[] getParameterValues(String paramKey)
  {
    return xsdFragment_.getParameterValues(paramKey);
  }

  public String getParameterValue(String paramKey, int paramIndex)
  {
    return xsdFragment_.getParameterValue(paramKey, paramIndex);
  }

  public boolean validateAllParameterValues()
  {
    return xsdFragment_.validateAllParameterValues();
  }

  public boolean validateParameterValues(String paramKey)
  {
    return xsdFragment_.validateParameterValues(paramKey);
  }

  public boolean validateParameterValue(String paramKey, int paramIndex)
  {
    return xsdFragment_.validateParameterValue(paramKey, paramIndex);
  }

  public boolean setParameterValuesFromInstanceDocuments(Element[] instanceDocuments)
  {
    return xsdFragment_.setParameterValuesFromInstanceDocuments(instanceDocuments);
  }

  public Element[] genInstanceDocumentsFromParameterValues(boolean genXSIType, Hashtable namespaceTable, Document doc)
  {
    return xsdFragment_.genInstanceDocumentsFromParameterValues(genXSIType, namespaceTable, doc);
  }

  public String getInformationFragment()
  {
    return "/wsdl/fragment/XSDDefaultInfoFragmentJSP.jsp";
  }

  public String getReadFragment()
  {
    return "/wsdl/fragment/XSDDelegationRFragmentJSP.jsp";
  }

  public String getWriteFragment()
  {
    return "/wsdl/fragment/XSDDelegationWFragmentJSP.jsp";
  }

  public void setXSDDelegationFragment(IXSDFragment xsdFragment)
  {
    xsdFragment_ = xsdFragment;
  }

  public IXSDFragment getXSDDelegationFragment()
  {
    return xsdFragment_;
  }
}

Back to the top