1 19 20 21 package org.netbeans.modules.websvc.wsitmodelext.security; 22 23 import javax.xml.namespace.QName ; 24 import java.util.HashSet ; 25 import java.util.Set ; 26 27 31 public enum SecurityQName { 32 SECPOLID(createSecurityQName("Id")); 34 public static final String SECURITY_UTILITY = 35 "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; public static final String SECURITY_UTILITY_NS_PREFIX = "wsu"; 38 public static QName createSecurityQName(String localName){ 39 return new QName (SECURITY_UTILITY, localName, SECURITY_UTILITY_NS_PREFIX); 40 } 41 42 SecurityQName(QName name) { 43 qName = name; 44 } 45 46 public QName getQName(){ 47 return qName; 48 } 49 private static Set <QName > qnames = null; 50 public static Set <QName > getQNames() { 51 if (qnames == null) { 52 qnames = new HashSet <QName >(); 53 for (SecurityQName wq : values()) { 54 qnames.add(wq.getQName()); 55 } 56 } 57 return qnames; 58 } 59 private final QName qName; 60 61 } 62 | Popular Tags |