1 28 29 package com.caucho.soap.wsdl; 30 31 import javax.xml.bind.annotation.XmlAccessType; 32 import javax.xml.bind.annotation.XmlAccessorType; 33 import javax.xml.bind.annotation.XmlElement; 34 import javax.xml.bind.annotation.XmlRootElement; 35 import java.util.ArrayList ; 36 import java.util.List ; 37 38 41 @XmlAccessorType(XmlAccessType.FIELD) 42 @XmlRootElement(name="message", namespace="http://schemas.xmlsoap.org/wsdl/") 43 public class WSDLMessage extends WSDLNamedExtensibleDocumented 44 implements WSDLDefinition 45 { 46 @XmlElement(name="part", namespace="http://schemas.xmlsoap.org/wsdl/", 47 type=WSDLPart.class) 48 private List <WSDLPart> _parts; 49 50 53 public List <WSDLPart> getParts() 54 { 55 return _parts; 56 } 57 58 public void addPart(WSDLPart part) 59 { 60 if (_parts == null) 61 _parts = new ArrayList <WSDLPart>(); 62 63 _parts.add(part); 64 } 65 } 66 | Popular Tags |