src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLMessageImpl.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
23 * questions. 23 * questions.
24 */ 24 */
25 25
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.wsdl.WSDLMessage; 28 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLMessage;
29 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLPart;
29 30
30 import javax.xml.namespace.QName; 31 import javax.xml.namespace.QName;
31 import javax.xml.stream.XMLStreamReader; 32 import javax.xml.stream.XMLStreamReader;
33
32 import java.util.ArrayList; 34 import java.util.ArrayList;
33 35
34 /** 36 /**
35 * Provides abstraction for wsdl:message 37 * Provides abstraction for wsdl:message
36 * @author Vivek Pandey 38 * @author Vivek Pandey
37 */ 39 */
38 public final class WSDLMessageImpl extends AbstractExtensibleImpl implements WSDLMessage { 40 public final class WSDLMessageImpl extends AbstractExtensibleImpl implements EditableWSDLMessage {
39 private final QName name; 41 private final QName name;
40 private final ArrayList<WSDLPartImpl> parts; 42 private final ArrayList<EditableWSDLPart> parts;
41 43
42 /** 44 /**
43 * @param name wsdl:message name attribute value 45 * @param name wsdl:message name attribute value
44 */ 46 */
45 public WSDLMessageImpl(XMLStreamReader xsr,QName name) { 47 public WSDLMessageImpl(XMLStreamReader xsr,QName name) {
46 super(xsr); 48 super(xsr);
47 this.name = name; 49 this.name = name;
48 this.parts = new ArrayList<WSDLPartImpl>(); 50 this.parts = new ArrayList<EditableWSDLPart>();
49 } 51 }
50 52
51 public QName getName() { 53 public QName getName() {
52 return name; 54 return name;
53 } 55 }
54 56
55 public void add(WSDLPartImpl part){ 57 public void add(EditableWSDLPart part){
56 parts.add(part); 58 parts.add(part);
57 } 59 }
58 60
59 public Iterable<WSDLPartImpl> parts(){ 61 public Iterable<EditableWSDLPart> parts(){
60 return parts; 62 return parts;
61 } 63 }
62 } 64 }

mercurial