1 19 20 21 package org.netbeans.modules.websvc.wsitmodelext.rm; 22 23 import javax.xml.namespace.QName ; 24 import java.util.HashSet ; 25 import java.util.Set ; 26 27 31 public enum RMQName { 32 RMASSERTION(createRMQName("RMAssertion")), BASERETRANSMISSIONINTERVAL(createRMQName("BaseRetransmissionInterval")), EXPONENTIALBACKOFF(createRMQName("ExponentialBackoff")), ACKNOWLEDGEMENTINTERVAL(createRMQName("AcknowledgementInterval")), INACTIVITYTIMEOUT(createRMQName("InactivityTimeout")); 38 public static final String RM_NS_URI = "http://schemas.xmlsoap.org/ws/2005/02/rm/policy"; public static final String RM_NS_PREFIX = "wsrm"; 41 public static QName createRMQName(String localName){ 42 return new QName (RM_NS_URI, localName, RM_NS_PREFIX); 43 } 44 45 RMQName(QName name) { 46 qName = name; 47 } 48 49 public QName getQName(){ 50 return qName; 51 } 52 private static Set <QName > qnames = null; 53 public static Set <QName > getQNames() { 54 if (qnames == null) { 55 qnames = new HashSet <QName >(); 56 for (RMQName wq : values()) { 57 qnames.add(wq.getQName()); 58 } 59 } 60 return qnames; 61 } 62 private final QName qName; 63 64 } 65 | Popular Tags |