Changeset 4024


Ignore:
Timestamp:
2003-03-28T10:09:39+12:00 (21 years ago)
Author:
kjdon
Message:

param now multi type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GATEServices.java

    r4019 r4024  
    6767    protected Corpus corpus_;
    6868
    69     protected String[] annotation_types_ = { "Address", "Date", "Location",
     69    protected String[] annotation_types_ = { "Date", "Location",
    7070                         "Organization", "Person" };
    71 
     71    // Address,
    7272
    7373    /** constructor */
     
    8383    config_info_ = info;
    8484
    85     // These entries should reflect the build config file
    86     // Some services may not be available depending on how the colleciton was built.
    8785    // set up short_service_info_ - for now just has name and type
    8886    Element tq_service = doc_.createElement(GSXML.SERVICE_ELEM);
     
    102100    // Element format = (Element) GSXML.getChildByTagName(info, GSXML.FORMAT_ELEM);
    103101    // if (format != null) {
    104     //     format_info_map_.put(TEXT_QUERY_SERVICE, doc_.importNode(format, true));
     102    //     format_info_map_.put(GATE_POS_TAG_SERVICE, doc_.importNode(format, true));
    105103    // }
    106104
     
    179177        }
    180178        else {
    181         param = GSXML.createParameter(doc_, name, GSXML.PARAM_TYPE_ENUM_SINGLE, annotation_types_[0], annotation_types_);
     179        param = GSXML.createParameter(doc_, name, GSXML.PARAM_TYPE_ENUM_MULTI, annotation_types_[0], annotation_types_);
    182180        }
    183181    }
     
    212210        // Identify the annotation types desired
    213211        if (param.getAttribute(GSXML.NAME_ATT).equals("annotationType")) {
    214         String annotationType = GSXML.getValue(param);
    215         System.out.println("Annotation type: " + annotationType);
    216         annTypes.add(annotationType);
     212        String annotation_type = GSXML.getValue(param);
     213        String [] types = annotation_type.split(",");
     214        for (int i=0; i<types.length; i++) {
     215            annTypes.add(types[i]);
     216        }
    217217        }
    218218
Note: See TracChangeset for help on using the changeset viewer.