1 19 27 28 package org.netbeans.modules.websvc.customization.model.impl; 29 30 import java.util.HashSet ; 31 import java.util.Set ; 32 import javax.xml.namespace.QName ; 33 34 38 public enum JAXWSQName { 39 BINDINGS(createJAXWSQName("bindings")), 40 PACKAGE(createJAXWSQName("package")), 41 CLASS(createJAXWSQName("class")), 42 ENABLEWRAPPERSTYLE(createJAXWSQName("enableWrapperStyle")), 43 ENABLEASYNCMAPPING(createJAXWSQName("enableAsyncMapping")), 44 ENABLEMIMECONTENT(createJAXWSQName("enableMIMEContent")), 45 JAVAEXCEPTION(createJAXWSQName("exception")), 46 METHOD(createJAXWSQName("method")), 47 PARAMETER(createJAXWSQName("parameter")), 48 JAVADOC(createJAXWSQName("javadoc")), 49 PROVIDER(createJAXWSQName("provider")); 50 51 public static final String JAXWS_NS_URI = "http://java.sun.com/xml/ns/jaxws"; 52 public static final String JAXWS_NS_PREFIX = "jaxws"; 53 54 public static QName createJAXWSQName(String localName){ 55 return new QName (JAXWS_NS_URI, localName, JAXWS_NS_PREFIX); 56 } 57 58 JAXWSQName(QName name) { 59 qName = name; 60 } 61 62 public QName getQName(){ 63 return qName; 64 } 65 private static Set <QName > qnames = null; 66 public static Set <QName > getQNames() { 67 if (qnames == null) { 68 qnames = new HashSet <QName >(); 69 for (JAXWSQName wq : values()) { 70 qnames.add(wq.getQName()); 71 } 72 } 73 return qnames; 74 } 75 private final QName qName; 76 77 } 78 | Popular Tags |