1 16 17 package org.apache.jetspeed.om.registry.base; 18 19 import org.apache.jetspeed.om.registry.ToolDescriptor; 20 21 27 public class BaseToolDescriptor implements ToolDescriptor, java.io.Serializable 28 { 29 private String name = null; 30 private String scope = null; 31 private String classname = null; 32 33 37 public boolean equals(Object object) 38 { 39 if (object==null) 40 { 41 return false; 42 } 43 44 BaseToolDescriptor obj = (BaseToolDescriptor)object; 45 46 if (name!=null) 47 { 48 if (!name.equals(obj.getName())) 49 { 50 return false; 51 } 52 } 53 else 54 { 55 if (obj.getName()!=null) 56 { 57 return false; 58 } 59 } 60 61 if (scope!=null) 62 { 63 if(!scope.equals(obj.getScope())) 64 { 65 return false; 66 } 67 } 68 else 69 { 70 if (obj.getScope()!=null) 71 { 72 return false; 73 } 74 } 75 76 if (classname!=null) 77 { 78 if(!classname.equals(obj.getClassname())) 79 { 80 return false; 81 } 82 } 83 else 84 { 85 if (obj.getClassname()!=null) 86 { 87 return false; 88 } 89 } 90 91 return true; 92 } 93 94 95 public String getName() 96 { 97 return this.name; 98 } 99 100 103 public void setName( String name ) 104 { 105 this.name = name; 106 } 107 108 109 public String getScope() 110 { 111 return this.scope; 112 } 113 114 118 public void setScope( String scope ) 119 { 120 this.scope = scope; 121 } 122 123 124 public String getClassname() 125 { 126 return this.classname; 127 } 128 129 132 public void setClassname( String classname ) 133 { 134 this.classname = classname; 135 } 136 } 137 | Popular Tags |