1 19 20 package org.netbeans.modules.websvc.wsitmodelext.security.proprietary.service; 21 22 import javax.xml.namespace.QName ; 23 import java.util.HashSet ; 24 import java.util.Set ; 25 26 30 public enum ProprietarySCServiceQName { 31 SCCONFIGURATION(createSCServiceQName("SCConfiguration")), LIFETIME(createSCServiceQName("LifeTime")); 34 public static final String PROPRIETARY_SC = 35 "http://schemas.sun.com/ws/2006/05/sc/server"; public static final String PROPRIETARY_SC_NS_PREFIX = "scc"; 38 public static QName createSCServiceQName(String localName){ 39 return new QName (PROPRIETARY_SC, localName, PROPRIETARY_SC_NS_PREFIX); 40 } 41 42 ProprietarySCServiceQName(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 (ProprietarySCServiceQName wq : values()) { 54 qnames.add(wq.getQName()); 55 } 56 } 57 return qnames; 58 } 59 private final QName qName; 60 61 } 62 | Popular Tags |