1 16 package web.security.impl; 17 18 import java.io.Serializable ; 19 20 import web.security.Range; 21 22 26 public class RangeImpl implements Range, Serializable { 27 28 protected String name; 29 protected String desc; 30 31 public RangeImpl(){ 32 } 33 34 public RangeImpl(String name){ 35 this.name = name; 36 } 37 38 public RangeImpl(String name, String desc){ 39 this.name = name; 40 this.desc = desc; 41 } 42 45 public boolean equals(Range range) { 46 boolean be = false; 47 if(name!=null && range!=null) 48 be = name.equals(range.getName()); 49 return be; 50 } 51 54 public String getName() { 55 return name; 56 } 57 58 public void setName(String name) { 59 this.name = name; 60 } 61 public String getDesc() { 62 return desc; 63 } 64 public void setDesc(String desc) { 65 this.desc = desc; 66 } 67 public String toString() { 68 return "RANGE["+getClass().getName()+"]:("+name+','+desc+')'; 69 } 70 } 71 | Popular Tags |