| 1 19 package org.sample.registry.model.impl; 20 21 import org.netbeans.modules.xml.xam.Named; 22 import org.netbeans.modules.xml.xam.dom.Attribute; 23 import org.sample.registry.model.Service; 24 25 public enum RegistryAttributes implements Attribute { 26 CAPACITY(Service.CAPACITY_PROPERTY, Integer .class), 27 NAME(Named.NAME_PROPERTY), 28 TYPE(Service.SERVICE_TYPE_PROPERTY); 29 30 private String name; 31 private Class type; 32 33 RegistryAttributes(String name) { 34 this(name, String .class); 35 } 36 37 RegistryAttributes(String name, Class type) { 38 this.name = name; 39 this.type = type; 40 } 41 42 public Class getType() { 43 return type; 44 } 45 46 public String getName() { 47 return name; 48 } 49 50 public Class getMemberType() { 51 return null; 52 } 53 } 54 | Popular Tags |