1 19 20 package org.netbeans.modules.xml.wsdl.model.extensions.soap.impl; 21 22 import java.util.Collection ; 23 import org.netbeans.modules.xml.wsdl.model.extensions.soap.SOAPMessageBase; 24 import org.netbeans.modules.xml.wsdl.model.extensions.soap.SOAPBinding; 25 import org.netbeans.modules.xml.xam.dom.Attribute; 26 27 31 public enum SOAPAttribute implements Attribute { 32 ENCODING_STYLE("encodingStyle", Collection .class, String .class), 33 MESSAGE("message"), 34 NAME("name"), 35 NAMESPACE("namespace"), 36 PART("part"), 37 PARTS("parts"), 38 USE("use", SOAPMessageBase.Use.class), 39 SOAP_ACTION("soapAction"), 40 STYLE("style", SOAPBinding.Style.class), 41 TRANSPORT_URI("transport"); 42 43 private String name; 44 private Class type; 45 private Class subtype; 46 47 48 SOAPAttribute(String name) { 49 this(name, String .class); 50 } 51 SOAPAttribute(String name, Class type) { 52 this(name, type, null); 53 } 54 SOAPAttribute(String name, Class type, Class subtype) { 55 this.name = name; 56 this.type = type; 57 this.subtype = subtype; 58 } 59 60 public String toString() { return name; } 61 62 public Class getType() { 63 return type; 64 } 65 66 public String getName() { return name; } 67 68 public Class getMemberType() { return subtype; } 69 } 70 | Popular Tags |