1 19 20 package org.netbeans.modules.websvc.wsitmodelext.security; 21 22 import org.netbeans.modules.xml.xam.dom.Attribute; 23 24 28 public enum SecurityPolicyAttribute implements Attribute { 29 ID("ID"), NAME("Name"), NAMESPACE("Namespace"), INCLUDETOKEN("IncludeToken"), REQUIRECLIENTCERTIFICATE("RequireClientCertificate"), XPATHVERSION("XPathVersion"); 36 private String name; 37 private Class type; 38 private Class subtype; 39 40 43 SecurityPolicyAttribute(String name) { 44 this(name, String .class); 45 } 46 SecurityPolicyAttribute(String name, Class type) { 47 this(name, type, null); 48 } 49 SecurityPolicyAttribute(String name, Class type, Class subtype) { 50 this.name = name; 51 this.type = type; 52 this.subtype = subtype; 53 } 54 55 @Override 56 public String toString() { return name; } 57 58 public Class getType() { 59 return type; 60 } 61 62 public String getName() { return name; } 63 64 public Class getMemberType() { return subtype; } 65 } 66 | Popular Tags |