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 RMMSQName { 31 MAXRECEIVEBUFFERSIZE(createRMMSQName("MaxReceiveBufferSize")), RMFLOWCONTROL(createRMMSQName("RmFlowControl")); 34 public static final String RMMS_NS_URI = "http://schemas.microsoft.com/net/2005/02/rm/policy"; public static final String RMMS_NS_PREFIX = "net"; 37 public static QName createRMMSQName(String localName){ 38 return new QName (RMMS_NS_URI, localName, RMMS_NS_PREFIX); 39 } 40 41 RMMSQName(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 (RMMSQName wq : values()) { 53 qnames.add(wq.getQName()); 54 } 55 } 56 return qnames; 57 } 58 private final QName qName; 59 60 } 61 | Popular Tags |