Changeset 5714
- Timestamp:
- 2003-10-23T10:53:39+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/msm/ElementWrapper.java
r5581 r5714 103 103 * @param object The <strong>Object</strong> to test against. 104 104 */ 105 public boolean equals(Object object) { 106 if(object instanceof ElementWrapper) { 107 String our_full_name = MSMUtils.getFullName(element, namespace); 108 String their_full_name = MSMUtils.getFullName(((ElementWrapper)object).getElement()); 109 return our_full_name.equals(their_full_name); 110 } 111 return toString().equals(object.toString()); 105 public boolean equals(Object object) { 106 if(object == null) { 107 return false; 108 } 109 if(object instanceof ElementWrapper) { 110 String our_full_name = MSMUtils.getFullName(element, namespace); 111 String their_full_name = MSMUtils.getFullName(((ElementWrapper)object).getElement()); 112 return our_full_name.equals(their_full_name); 113 } 114 return toString().equals(object.toString()); 112 115 } 113 116 /** Retrieve the attributes associated with the element this element wrapper is built around.
Note:
See TracChangeset
for help on using the changeset viewer.