View Javadoc
1   /*
2    * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3    * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4    *
5    * This code is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU General Public License version 2 only, as
7    * published by the Free Software Foundation.  Oracle designates this
8    * particular file as subject to the "Classpath" exception as provided
9    * by Oracle in the LICENSE file that accompanied this code.
10   *
11   * This code is distributed in the hope that it will be useful, but WITHOUT
12   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14   * version 2 for more details (a copy is included in the LICENSE file that
15   * accompanied this code).
16   *
17   * You should have received a copy of the GNU General Public License version
18   * 2 along with this work; if not, write to the Free Software Foundation,
19   * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20   *
21   * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22   * or visit www.oracle.com if you need additional information or have any
23   * questions.
24   */
25  
26  package com.sun.xml.internal.ws.api.model.wsdl.editable;
27  
28  import java.util.Map;
29  
30  import javax.jws.WebParam.Mode;
31  import javax.jws.soap.SOAPBinding.Style;
32  
33  import com.sun.istack.internal.NotNull;
34  import com.sun.istack.internal.Nullable;
35  import com.sun.xml.internal.ws.api.model.wsdl.WSDLBoundOperation;
36  
37  public interface EditableWSDLBoundOperation extends WSDLBoundOperation {
38  
39          @Override
40      @NotNull EditableWSDLOperation getOperation();
41  
42          @Override
43      @NotNull EditableWSDLBoundPortType getBoundPortType();
44  
45          @Override
46      @Nullable EditableWSDLPart getPart(@NotNull String partName, @NotNull Mode mode);
47  
48          @Override
49      @NotNull Map<String,? extends EditableWSDLPart> getInParts();
50  
51          @Override
52      @NotNull Map<String,? extends EditableWSDLPart> getOutParts();
53  
54          @Override
55      @NotNull Iterable<? extends EditableWSDLBoundFault> getFaults();
56  
57          /**
58           * Add Part
59           * @param part Part
60           * @param mode Mode
61           */
62      public void addPart(EditableWSDLPart part, Mode mode);
63  
64      /**
65       * Add Fault
66       * @param fault Fault
67       */
68      public void addFault(@NotNull EditableWSDLBoundFault fault);
69  
70      /**
71       * Sets the soapbinding:binding/operation/wsaw:Anonymous.
72       *
73       * @param anonymous Anonymous value of the operation
74       */
75          public void setAnonymous(ANONYMOUS anonymous);
76  
77          /**
78           * Sets input explicit body parts
79           * @param b True, if input body part is explicit
80           */
81          public void setInputExplicitBodyParts(boolean b);
82  
83          /**
84           * Sets output explicit body parts
85           * @param b True, if output body part is explicit
86           */
87          public void setOutputExplicitBodyParts(boolean b);
88  
89          /**
90           * Sets fault explicit body parts
91           * @param b True, if fault body part is explicit
92           */
93          public void setFaultExplicitBodyParts(boolean b);
94  
95          /**
96           * Set request namespace
97           * @param ns Namespace
98           */
99          public void setRequestNamespace(String ns);
100 
101         /**
102          * Set response namespace
103          * @param ns Namespace
104          */
105         public void setResponseNamespace(String ns);
106 
107         /**
108          * Set SOAP action
109          * @param soapAction SOAP action
110          */
111         public void setSoapAction(String soapAction);
112 
113         /**
114          * Set parameter style
115          * @param style Style
116          */
117         public void setStyle(Style style);
118 
119         /**
120          * Freezes WSDL model to prevent further modification
121          * @param root WSDL Model
122          */
123         public void freeze(EditableWSDLModel root);
124 }