Changeset 5298
- Timestamp:
- 2003-08-27T15:09:19+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionConfiguration.java
r4675 r5298 5 5 import org.greenstone.gatherer.cdm.CommandTokenizer; 6 6 import org.greenstone.gatherer.msm.MSMUtils; 7 import org.greenstone.gatherer.util.Codec; 7 8 import org.greenstone.gatherer.util.Utility; 8 9 import org.w3c.dom.*; 9 10 /** This class provides access to a collection configuration file. This version accepts either a valid xml document or a historical collect.cfg file. */ 10 public class CollectionConfiguration { 11 public class CollectionConfiguration 12 implements Comparable { 11 13 12 14 private Element creator_element; … … 80 82 } 81 83 else if(description == null) { 82 description = Utility.decodeGreenstone(temp);84 description = Codec.transform(temp, Codec.GREENSTONE_TO_TEXT); 83 85 ///ystem.err.println("Found first match: " + description); 84 86 } … … 109 111 Gatherer.printStackTrace(error); 110 112 } 113 } 114 115 public int compareTo(Object other) { 116 if(other == null) { 117 return -1; 118 } 119 return toString().compareTo(other.toString()); 120 } 121 122 public boolean equals(Object other) { 123 return (compareTo(other) == 0); 111 124 } 112 125
Note:
See TracChangeset
for help on using the changeset viewer.