Changeset 3488


Ignore:
Timestamp:
2002-10-25T16:28:21+13:00 (22 years ago)
Author:
kjdon
Message:

small changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSXML.java

    r3466 r3488  
    1515    public static final String PARAM_TYPE_BOOLEAN = "boolean";
    1616    public static final String PARAM_TYPE_ENUM = "enum";
     17    public static final String PARAM_TYPE_INPUT = "input";
    1718  // takes a node with a resource elements inside it and extracts all the
    1819  // HASh oids - name att for resource
     
    283284    p.setAttribute("name", param_name);
    284285    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) {
    288290        for (int i=0; i<values.length; i++) {
    289291        Element e = owner.createElement("element");
Note: See TracChangeset for help on using the changeset viewer.