Changeset 3898
- Timestamp:
- 2003-03-18T15:04:04+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/util/OID.java
r3449 r3898 27 27 28 28 /** returns the parent of oid (everything up to last dot) 29 returns ""if oid has no parent */29 returns oid if oid has no parent */ 30 30 public static String getParent(String oid) { 31 31 int pos = oid.lastIndexOf('.'); 32 32 if (pos == -1) { 33 return "";33 return oid; 34 34 } 35 35 return oid.substring(0, pos);
Note:
See TracChangeset
for help on using the changeset viewer.