Changeset 36262


Ignore:
Timestamp:
2022-06-20T12:50:46+12:00 (22 months ago)
Author:
kjdon
Message:

put the plugout string into static strings

Location:
main/trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfigXMLReadWrite.java

    r36259 r36262  
    5353public class CollectionConfigXMLReadWrite
    5454{
    55 
    56     static final private String PLUGOUT_ELEMENT = "plugout";//used by building flax collections
    5755
    5856    // a list of all known top level elements
     
    20242022
    20252023        //do the plugout element (used by building flax collections)
    2026         Node plugout = XMLTools.getChildByTagNameIndexed(from.getDocumentElement(), PLUGOUT_ELEMENT, 0);
     2024        Node plugout = XMLTools.getChildByTagNameIndexed(from.getDocumentElement(), StaticStrings.PLUGOUT_ELEMENT, 0);
    20272025        if (plugout != null)
    20282026        {
     
    33433341
    33443342            //do the plugout element (used by building flax collections)
    3345             Node plugout = XMLTools.getChildByTagNameIndexed((Element) importNode, PLUGOUT_ELEMENT, 0);
     3343            Node plugout = XMLTools.getChildByTagNameIndexed((Element) importNode, StaticStrings.PLUGOUT_ELEMENT, 0);
    33463344            if (plugout != null)
    33473345            {
  • main/trunk/gli/src/org/greenstone/gatherer/util/StaticStrings.java

    r36240 r36262  
    230230    static final public String PLUGIN_STR = "plugin";
    231231    static final public String PLUGINLIST_STR = "pluginList";
     232    static final public String PLUGOUT_ELEMENT = "Plugout";
    232233    static final public String PREDEFINED_METADATA_ATTRIBUTE = "predefined";
    233234    static final public String RANK_STR = "rank";
Note: See TracChangeset for help on using the changeset viewer.