1 19 20 package org.netbeans.modules.websvc.wsitmodelext.rm.impl; 21 22 import org.netbeans.modules.xml.xam.dom.Attribute; 23 24 28 public enum RMAttribute implements Attribute { 29 ID("ID"), 30 MILLISECONDS("Milliseconds"), 31 URI("URI"), 32 DIGEST("Digest"), 33 DIGESTALGORITHM("DigestAlgorithm"); 34 35 private String name; 36 private Class type; 37 private Class subtype; 38 39 42 RMAttribute(String name) { 43 this(name, String .class); 44 } 45 RMAttribute(String name, Class type) { 46 this(name, type, null); 47 } 48 RMAttribute(String name, Class type, Class subtype) { 49 this.name = name; 50 this.type = type; 51 this.subtype = subtype; 52 } 53 54 @Override 55 public String toString() { return name; } 56 57 public Class getType() { 58 return type; 59 } 60 61 public String getName() { return name; } 62 63 public Class getMemberType() { return subtype; } 64 } 65 | Popular Tags |