1 19 20 21 package org.netbeans.modules.websvc.wsitmodelext.addressing; 22 23 import javax.xml.namespace.QName ; 24 import java.util.HashSet ; 25 import java.util.Set ; 26 27 31 public enum Addressing10WsdlQName { 32 USINGADDRESSING(createAddressingWsdlQName("UsingAddressing")); 34 public static final String ADDRESSING10_WSDL_NS_URI = "http://www.w3.org/2006/05/addressing/wsdl"; public static final String ADDRESSING10_WSDL_NS_PREFIX = "wsaws"; 37 public static QName createAddressingWsdlQName(String localName){ 38 return new QName (ADDRESSING10_WSDL_NS_URI, localName, ADDRESSING10_WSDL_NS_PREFIX); 39 } 40 41 Addressing10WsdlQName(QName name) { 42 qName = name; 43 } 44 45 public QName getQName(){ 46 return qName; 47 } 48 private static Set <QName > qnames = null; 49 public static Set <QName > getQNames() { 50 if (qnames == null) { 51 qnames = new HashSet <QName >(); 52 for (Addressing10WsdlQName wq : values()) { 53 qnames.add(wq.getQName()); 54 } 55 } 56 return qnames; 57 } 58 private final QName qName; 59 60 } 61 | Popular Tags |