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.XmlAttribute; 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="body", namespace="http://schemas.xmlsoap.org/wsdl/soap/") 43 public class SOAPBody extends WSDLExtensibilityElement { 44 @XmlAttribute(name="parts") 45 private List <String > _parts; 46 47 @XmlAttribute(name="encodingStyle") 48 private List <String > _encodingStyle; 49 50 @XmlAttribute(name="namespace") 51 private String _namespace; 52 53 @XmlAttribute(name="use") 54 private SOAPUseChoice _use; 55 56 public void addPart(String part) 57 { 58 if (_parts == null) 59 _parts = new ArrayList <String >(); 60 61 _parts.add(part); 62 } 63 64 public List <String > getParts() 65 { 66 if (_parts == null) 67 _parts = new ArrayList <String >(); 68 69 return _parts; 70 } 71 72 public void addEncodingStyle(String encodingStyle) 73 { 74 if (_encodingStyle == null) 75 _encodingStyle = new ArrayList <String >(); 76 77 _encodingStyle.add(encodingStyle); 78 } 79 80 public List <String > getEncodingStyle() 81 { 82 if (_encodingStyle == null) 83 _encodingStyle = new ArrayList <String >(); 84 85 return _encodingStyle; 86 } 87 88 public void setNamespace(String namespace) 89 { 90 _namespace = namespace; 91 } 92 93 public String getNamespace() 94 { 95 return _namespace; 96 } 97 98 public void setUse(SOAPUseChoice use) 99 { 100 _use = use; 101 } 102 103 public SOAPUseChoice getUse() 104 { 105 return _use; 106 } 107 } 108 | Popular Tags |