1 19 20 21 package org.netbeans.modules.websvc.wsitmodelext.security.proprietary; 22 23 import javax.xml.namespace.QName ; 24 import java.util.HashSet ; 25 import java.util.Set ; 26 27 31 public enum ProprietaryPolicyQName { 32 VISIBILITY(createPolicyQName("visibility")); 34 public static final String INVISIBLE="private"; 36 public static final String POLICY_UTILITY = 37 "http://java.sun.com/xml/ns/wsit/policy"; public static final String POLICY_UTILITY_NS_PREFIX = "wspp"; 40 public static QName createPolicyQName(String localName){ 41 return new QName (POLICY_UTILITY, localName, POLICY_UTILITY_NS_PREFIX); 42 } 43 44 ProprietaryPolicyQName(QName name) { 45 qName = name; 46 } 47 48 public QName getQName(){ 49 return qName; 50 } 51 private static Set <QName > qnames = null; 52 public static Set <QName > getQNames() { 53 if (qnames == null) { 54 qnames = new HashSet <QName >(); 55 for (ProprietaryPolicyQName wq : values()) { 56 qnames.add(wq.getQName()); 57 } 58 } 59 return qnames; 60 } 61 private final QName qName; 62 63 } 64 | Popular Tags |