1 19 package org.netbeans.modules.websvc.wsitmodelext.transport; 20 21 import javax.xml.namespace.QName ; 22 import java.util.HashSet ; 23 import java.util.Set ; 24 25 29 public enum FIQName { 30 OPTIMIZEDFASTINFOSETSERIALIZATION(createFIQName("OptimizedFastInfosetSerialization")), AUTOMATICALLYSELECTFASTINFOSET(createFIClientQName("AutomaticallySelectOptimalEncoding")); 33 public static final String FI_NS_URI = "http://java.sun.com/xml/ns/wsit/2006/09/policy/fastinfoset/service"; public static final String FI_CLIENT_NS_URI = "http://java.sun.com/xml/ns/wsit/2006/09/policy/encoding/client"; public static final String FI_NS_PREFIX = "fi"; 37 public static QName createFIQName(String localName){ 38 return new QName (FI_NS_URI, localName, FI_NS_PREFIX); 39 } 40 41 public static QName createFIClientQName(String localName){ 42 return new QName (FI_CLIENT_NS_URI, localName, FI_NS_PREFIX); 43 } 44 45 FIQName(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 (FIQName wq : values()) { 57 qnames.add(wq.getQName()); 58 } 59 } 60 return qnames; 61 } 62 private final QName qName; 63 64 } 65 | Popular Tags |