1 37 package net.sourceforge.cruisecontrol; 38 39 import java.io.Serializable ; 40 41 44 public class Attribute implements Comparable , Serializable { 45 46 private String name; 47 private Class type; 48 49 public Attribute(String name, Class type) { 50 this.name = name; 51 this.type = type; 52 } 53 54 public String getName() { 55 return name; 56 } 57 58 public Class getType() { 59 return type; 60 } 61 62 public int compareTo(Object other) { 63 return name.compareTo(((Attribute) other).name); 64 } 65 } 66 | Popular Tags |