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 RMSunQName { 31 ORDERED(createRMSunQName("Ordered")); 33 public static final String RMSUN_NS_URI = "http://sun.com/2006/03/rm"; public static final String RMSUN_NS_PREFIX = "sunrm"; 36 public static QName createRMSunQName(String localName){ 37 return new QName (RMSUN_NS_URI, localName, RMSUN_NS_PREFIX); 38 } 39 40 RMSunQName(QName name) { 41 qName = name; 42 } 43 44 public QName getQName(){ 45 return qName; 46 } 47 private static Set <QName > qnames = null; 48 public static Set <QName > getQNames() { 49 if (qnames == null) { 50 qnames = new HashSet <QName >(); 51 for (RMSunQName wq : values()) { 52 qnames.add(wq.getQName()); 53 } 54 } 55 return qnames; 56 } 57 private final QName qName; 58 59 } 60 | Popular Tags |