Changeset 11125
- Timestamp:
- 2006-01-27T09:47:43+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gems/ElementWrapper.java
r11006 r11125 170 170 return toString().compareTo(object.toString()); 171 171 } 172 /** Decrement the number of occurances of this metadata element. 173 * @see org.greenstone.gatherer.msm.MSMUtils 174 */ 175 public void dec() { 176 MSMUtils.setOccurance(element, -1); 177 } 172 178 173 /** Test if two ElementWrappers are equal. 179 174 * @param object The <strong>Object</strong> to test against. … … 226 221 */ 227 222 public String getName() { 228 223 return MSMUtils.getFullName(element, namespace); 229 224 } 230 225 … … 247 242 } 248 243 } 249 /** Look for the occurances 'field' of the element and return it if found. 250 * @return An <i>int</i> which matches the number in the occurances attribute of the element, or 0 if no such attribute. 251 * @see org.greenstone.gatherer.msm.MSMUtils 252 */ 253 public int getOccurances() { 254 return MSMUtils.getOccurances(element); 255 } 244 256 245 /** This method is essentially the same as getDescription() in that it does indeed return this metaelements description. However this method uses the Utility function formatHTMLWidth() to ensure the String can be displayed in a tool-tip window using html markup. 257 246 * @return A String containing the HTML formatted versions of definition and content (comment). … … 264 253 } 265 254 266 /** Increment the number of occurances of this metadata element.267 * @see org.greenstone.gatherer.msm.MSMUtils268 */269 public void inc() {270 MSMUtils.setOccurance(element, 1);271 }272 255 273 256 /** Removes an Attribute node from the element. */
Note:
See TracChangeset
for help on using the changeset viewer.