Ignore:
Timestamp:
2012-05-22T13:01:04+12:00 (12 years ago)
Author:
sjm84
Message:

Fixing Greenstone 3's use (or lack thereof) of generics, this was done automatically so we may want to change it over time. This change will also auto-format any files that have not already been formatted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/Action.java

    r25302 r25635  
    2323
    2424    /** the system set up variables */
    25     protected HashMap config_params = null;
     25    protected HashMap<String, Comparable> config_params = null;
    2626    /** container Document to create XML Nodes */
    2727    protected Document doc = null;
     
    4343
    4444    /** the config variables must be set before configure is called */
    45     public void setConfigParams(HashMap params)
     45    public void setConfigParams(HashMap<String, Comparable> params)
    4646    {
    4747        this.config_params = params;
     
    9292    }
    9393
    94     protected void getRequiredMetadataNames(Element format, HashSet meta_names)
     94    protected void getRequiredMetadataNames(Element format, HashSet<String> meta_names)
    9595    {
    9696        extractMetadataNames(format, meta_names);
     
    9898    }
    9999
    100     protected void extractMetadataNames(Element format, HashSet meta_names)
     100    protected void extractMetadataNames(Element format, HashSet<String> meta_names)
    101101    {
    102102        //NodeList nodes = format.getElementsByTagNameNS("metadata", "http://www.greenstone.org/configformat");
     
    133133    }
    134134
    135     protected void addLinkMetadataNames(Element format, HashSet meta_names)
     135    protected void addLinkMetadataNames(Element format, HashSet<String> meta_names)
    136136    {
    137137        // The XSL tranform for
     
    187187    }
    188188
    189     protected Element createMetadataParamList(HashSet metadata_names)
     189    protected Element createMetadataParamList(HashSet<String> metadata_names)
    190190    {
    191191        Element param_list = this.doc.createElement(GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER);
    192192
    193193        Element param = null;
    194         Iterator i = metadata_names.iterator();
     194        Iterator<String> i = metadata_names.iterator();
    195195        while (i.hasNext())
    196196        {
    197             String name = (String) i.next();
     197            String name = i.next();
    198198            param = this.doc.createElement(GSXML.PARAM_ELEM);
    199199            param_list.appendChild(param);
Note: See TracChangeset for help on using the changeset viewer.