Changeset 3770

Show
Ignore:
Timestamp:
26.02.2003 10:44:00 (17 years ago)
Author:
mdewsnip
Message:

Changed two string values to private static constants.

Files:
1 modified

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    }