src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLPartImpl.java

changeset 408
b0610cd08440
parent 368
0989ad8c0860
child 637
9c07ef4934dd
equal deleted inserted replaced
405:cc682329886b 408:b0610cd08440
1 /* 1 /*
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 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. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 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 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
26 package com.sun.xml.internal.ws.model.wsdl; 26 package com.sun.xml.internal.ws.model.wsdl;
27 27
28 import com.sun.xml.internal.ws.api.model.ParameterBinding; 28 import com.sun.xml.internal.ws.api.model.ParameterBinding;
29 import com.sun.xml.internal.ws.api.model.wsdl.WSDLPart; 29 import com.sun.xml.internal.ws.api.model.wsdl.WSDLPart;
30 import com.sun.xml.internal.ws.api.model.wsdl.WSDLPartDescriptor; 30 import com.sun.xml.internal.ws.api.model.wsdl.WSDLPartDescriptor;
31 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLPart;
31 32
32 import javax.xml.stream.XMLStreamReader; 33 import javax.xml.stream.XMLStreamReader;
33 34
34 /** 35 /**
35 * Implementation of {@link WSDLPart} 36 * Implementation of {@link WSDLPart}
36 * 37 *
37 * @author Vivek Pandey 38 * @author Vivek Pandey
38 */ 39 */
39 public final class WSDLPartImpl extends AbstractObjectImpl implements WSDLPart { 40 public final class WSDLPartImpl extends AbstractObjectImpl implements EditableWSDLPart {
40 private final String name; 41 private final String name;
41 private ParameterBinding binding; 42 private ParameterBinding binding;
42 private int index; 43 private int index;
43 private final WSDLPartDescriptor descriptor; 44 private final WSDLPartDescriptor descriptor;
44 45
70 //need to set the index in case of rpclit to reorder the body parts 71 //need to set the index in case of rpclit to reorder the body parts
71 public void setIndex(int index){ 72 public void setIndex(int index){
72 this.index = index; 73 this.index = index;
73 } 74 }
74 75
75 boolean isBody(){
76 return binding.isBody();
77 }
78
79 public WSDLPartDescriptor getDescriptor() { 76 public WSDLPartDescriptor getDescriptor() {
80 return descriptor; 77 return descriptor;
81 } 78 }
82 } 79 }

mercurial