1 19 package org.netbeans.modules.websvc.wsitmodelext.mtom; 20 21 import javax.xml.namespace.QName ; 22 import java.util.HashSet ; 23 import java.util.Set ; 24 25 29 public enum MtomQName { 30 OPTIMIZEDMIMESERIALIZATION(createMtomQName("OptimizedMimeSerialization")); 32 public static final String MTOM_NS_URI = "http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization"; public static final String MTOM_NS_PREFIX = "wsoma"; 35 public static QName createMtomQName(String localName){ 36 return new QName (MTOM_NS_URI, localName, MTOM_NS_PREFIX); 37 } 38 39 MtomQName(QName name) { 40 qName = name; 41 } 42 43 public QName getQName(){ 44 return qName; 45 } 46 private static Set <QName > qnames = null; 47 public static Set <QName > getQNames() { 48 if (qnames == null) { 49 qnames = new HashSet <QName >(); 50 for (MtomQName wq : values()) { 51 qnames.add(wq.getQName()); 52 } 53 } 54 return qnames; 55 } 56 private final QName qName; 57 58 } 59 | Popular Tags |