Changeset 3770


Ignore:
Timestamp:
02/26/03 10:44:00 (18 years ago)
Author:
mdewsnip
Message:

Changed two string values to private static constants.

File:
1 edited

Legend:

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

    r3766 r3770  
    7171    private static final String INDEX_ELEM = "index";
    7272
    73     // !! Hack !!
    74     // public static final String TERM_ELEM = "term";
     73    public static final String COUNT_ATT = "count";
     74    public static final String STEM_ATT = "stem";
    7575
    7676    private MGWrapper mg_src_ = null;
     
    342342        Element term_elem = doc_.createElement(GSXML.TERM_ELEM);
    343343        term_elem.setAttribute(GSXML.NAME_ATT, term);
    344         term_elem.setAttribute("count", "" + term_freq);
    345         term_elem.setAttribute("stem", "" + stem_method);
     344        term_elem.setAttribute(COUNT_ATT, "" + term_freq);
     345        term_elem.setAttribute(STEM_ATT, "" + stem_method);
    346346        term_list.appendChild(term_elem);
    347347    }
Note: See TracChangeset for help on using the changeset viewer.