Changeset 7529
- Timestamp:
- 2004-06-02T11:15:58+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/valuetree/GValueNode.java
r6085 r7529 208 208 } 209 209 210 public GValueNode getValue(String value) { 211 ///ystem.err.println("GValueNode.getValue(" + value + ")"); 212 if(default_value != null) { 213 return this; 214 } 215 if(children == null) { 216 map(); 217 } 218 for(int i = 0; i < children.size(); i++) { 219 GValueNode child = (GValueNode) children.get(i); 220 ///ystem.err.println("Comparing value and '" + child.toString(GValueNode.DOM)); 221 if(child.toString(GValueNode.DOM).equalsIgnoreCase(value)) { 222 return child; 223 } 224 } 225 return null; 226 } 210 211 public GValueNode getValue(String value) 212 { 213 ///ystem.err.println("GValueNode.getValue(" + value + ")"); 214 if (default_value != null) { 215 return this; 216 } 217 218 if (children == null) { 219 map(); 220 } 221 222 for (int i = 0; i < children.size(); i++) { 223 GValueNode child = (GValueNode) children.get(i); 224 // System.err.println("Comparing " + value + " and " + child.toString(GValueNode.DOM)); 225 if (value.equals(child.toString(GValueNode.DOM))) { 226 return child; 227 } 228 } 229 230 return null; 231 } 232 227 233 228 234 /** Adds <I>child</I> to the receiever at <I>index</I>. <I>child</I> will
Note:
See TracChangeset
for help on using the changeset viewer.