1 19 20 package org.netbeans.modules.websvc.wsitmodelext.rm; 21 22 import javax.xml.namespace.QName ; 23 import java.util.HashSet ; 24 import java.util.Set ; 25 26 30 public enum RMSunClientQName { 31 ACKREQUESTINTERVAL(createRMSunClientQName("AckRequestInterval")), CLOSETIMEOUT(createRMSunClientQName("CloseTimeout")), RESENDINTERVAL(createRMSunClientQName("ResendInterval")); 35 public static final String RMSUNCLIENT_NS_URI = "http://sun.com/2006/03/rm/client"; public static final String RMSUNCLIENT_NS_PREFIX = "sunrmc"; 38 public static QName createRMSunClientQName(String localName){ 39 return new QName (RMSUNCLIENT_NS_URI, localName, RMSUNCLIENT_NS_PREFIX); 40 } 41 42 RMSunClientQName(QName name) { 43 qName = name; 44 } 45 46 public QName getQName(){ 47 return qName; 48 } 49 private static Set <QName > qnames = null; 50 public static Set <QName > getQNames() { 51 if (qnames == null) { 52 qnames = new HashSet <QName >(); 53 for (RMSunClientQName wq : values()) { 54 qnames.add(wq.getQName()); 55 } 56 } 57 return qnames; 58 } 59 private final QName qName; 60 61 } 62 | Popular Tags |