Changeset 8392
- Timestamp:
- 2004-10-20T16:49:25+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gems/MetadataSet.java
r8388 r8392 64 64 private NodeList elements = null; 65 65 66 // the nmae of the collection if this set is collection-specific 67 private String collection = null; 66 68 //I realize I should be using getters and setters, but for a quick fix 67 69 public boolean set_changed = false; … … 152 154 } 153 155 156 public void setCollection(String coll) { 157 collection = coll; 158 159 } 154 160 /** Add a mds level attribute. 155 161 * @param name The name of the attribute to add as a <Strong>String</strong>. … … 517 523 */ 518 524 public String toString() { 525 519 526 String name = getName(); 520 527 // If there is no given name, then use the namespace as there is garaunteed to be one of them. … … 528 535 } 529 536 name = name + " (" + namespace + ")"; 530 return name; 537 if (collection == null) 538 return name; 539 return "["+collection+"] "+name; 531 540 } 532 541
Note:
See TracChangeset
for help on using the changeset viewer.