- Timestamp:
- 2009-04-22T15:52:31+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/collection/Collection.java
r19041 r19197 177 177 } 178 178 179 /** Retrieve the short name for this collection. 179 /** Retrieve the short name for this collection. Always qualified by the collectionGroup, if any. 180 180 * @return The name as a <strong>String</strong>. 181 181 */ 182 182 public String getName() { 183 return getGroupQualifiedName(true); 184 } 185 186 /** @return just the sub-name of the collection: without any collection group prefix */ 187 public String getCollectionSubName() { 183 188 return file.getParentFile().getName(); 184 189 } … … 186 191 /** @return just the name of the collection group if any, else returns "" */ 187 192 public String getCollectionGroupName() { 188 String groupAndColName = getGroup WithName(true);193 String groupAndColName = getGroupQualifiedName(true); 189 194 190 195 int slash = groupAndColName.indexOf('/'); … … 204 209 * @return collection-group-name/collection-name 205 210 */ 206 public String getGroup WithName(boolean url) {211 public String getGroupQualifiedName(boolean url) { 207 212 // Subtracting collect dir's path from the current collection's path 208 213 … … 216 221 // shouldn't happen, but in case it does, just return the collection name. 217 222 System.err.println("Current collection " + currentCollDir + " is not located inside collectdir " + "collectDir"); 218 groupAndCol = get Name();223 groupAndCol = getCollectionSubName(); 219 224 } 220 225
Note:
See TracChangeset
for help on using the changeset viewer.