Changeset 3488
- Timestamp:
- 2002-10-25T16:28:21+13:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSXML.java
r3466 r3488 15 15 public static final String PARAM_TYPE_BOOLEAN = "boolean"; 16 16 public static final String PARAM_TYPE_ENUM = "enum"; 17 public static final String PARAM_TYPE_INPUT = "input"; 17 18 // takes a node with a resource elements inside it and extracts all the 18 19 // HASh oids - name att for resource … … 283 284 p.setAttribute("name", param_name); 284 285 p.setAttribute("type", type); 285 p.setAttribute("default", default_value); 286 287 if (type.equals(PARAM_TYPE_ENUM)) { 286 if (default_value != null) { 287 p.setAttribute("default", default_value); 288 } 289 if (type.equals(PARAM_TYPE_ENUM) && values!=null) { 288 290 for (int i=0; i<values.length; i++) { 289 291 Element e = owner.createElement("element");
Note:
See TracChangeset
for help on using the changeset viewer.