1 package org.netbeans.modules.xml.xam; 2 3 import org.netbeans.modules.xml.xam.dom.Attribute; 4 5 9 public enum TestAttribute implements Attribute { 10 INDEX("index", Integer .class), 11 VALUE("value", String .class), 12 TNS("targetNamespace", String .class), 13 NAME("name", String .class), 14 REF("ref", String .class); 15 16 private String name; 17 private Class type; 18 private Class subtype; 19 20 TestAttribute(String name, Class type) { 21 this.name = name; 22 this.type = type; 23 } 24 TestAttribute(String name, Class type, Class subtype) { 25 this(name, type); 26 this.subtype = subtype; 27 } 28 29 public String getName() { return name; } 30 public Class getType() { return type; } 31 public Class getMemberType() { return subtype; } 32 public String toString() { return name; } 33 } 34 | Popular Tags |