1 16 17 package org.apache.jetspeed.om.registry.base; 18 19 import org.apache.jetspeed.om.registry.*; 20 21 29 public class BaseParameter extends BaseRegistryEntry 30 implements Parameter, java.io.Serializable 31 { 32 33 private String value = null; 34 private String type = null; 35 36 40 public boolean equals(Object object) 41 { 42 if (object==null) 43 { 44 return false; 45 } 46 47 BaseParameter obj = (BaseParameter)object; 48 49 if (value!=null) 50 { 51 if (!value.equals(obj.getValue())) 52 { 53 return false; 54 } 55 } 56 else 57 { 58 if (obj.getValue()!=null) 59 { 60 return false; 61 } 62 } 63 64 if (type!=null) 65 { 66 if(!type.equals(obj.getType())) 67 { 68 return false; 69 } 70 } 71 else 72 { 73 if (obj.getType()!=null) 74 { 75 return false; 76 } 77 } 78 79 return super.equals(object); 80 } 81 82 83 public String getValue() 84 { 85 return this.value; 86 } 87 88 92 public void setValue(String value) 93 { 94 this.value = value; 95 } 96 97 98 public String getType() 99 { 100 return this.type; 101 } 102 103 107 public void setType(String type) 108 { 109 this.type = type; 110 } 111 } 112 | Popular Tags |