Ignore:
Timestamp:
2004-10-08T09:46:12+13:00 (20 years ago)
Author:
mdewsnip
Message:

Replaced all Gatherer.print* with DebugStream.print*.

File:
1 edited

Legend:

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

    r8015 r8236  
    2828
    2929import java.util.*;
     30import org.greenstone.gatherer.DebugStream;
    3031import org.greenstone.gatherer.Gatherer;
    3132import org.greenstone.gatherer.cdm.CollectionConfiguration;
     
    7778        Object source_object = sources.get(i);
    7879        if(source_object instanceof ElementWrapper) {
    79         ///Gatherer.println("Found ElementWrapper as source: " + ((ElementWrapper)source_object).getName());
     80        ///DebugStream.println("Found ElementWrapper as source: " + ((ElementWrapper)source_object).getName());
    8081        content_element.setAttribute(CollectionConfiguration.NAME_ATTRIBUTE, ((ElementWrapper)source_object).getName());
    8182        }
    8283        else {
    83         ///Gatherer.println("Found String as source: " + source_object.toString());
     84        ///DebugStream.println("Found String as source: " + source_object.toString());
    8485        content_element.setAttribute(CollectionConfiguration.NAME_ATTRIBUTE, source_object.toString());
    8586        }
     
    254255    }
    255256    else {
    256         Gatherer.println("Error! Called setLevel() of index other than the default.");
     257        DebugStream.println("Error! Called setLevel() of index other than the default.");
    257258    }
    258259    }
     
    271272        Object source_object = sources.get(i);
    272273        if(source_object instanceof ElementWrapper) {
    273             //Gatherer.println("Found ElementWrapper as source: " + ((ElementWrapper)source_object).getName());
     274            //DebugStream.println("Found ElementWrapper as source: " + ((ElementWrapper)source_object).getName());
    274275            String name = ((ElementWrapper)source_object).getName();
    275276            content_element.setAttribute(CollectionConfiguration.NAME_ATTRIBUTE, name);
     
    277278        }
    278279        else {
    279             //Gatherer.println("Found String as source: " + source_object.toString());
     280            //DebugStream.println("Found String as source: " + source_object.toString());
    280281            content_element.setAttribute(CollectionConfiguration.NAME_ATTRIBUTE, source_object.toString());
    281282        }
     
    288289    }
    289290    else {
    290         Gatherer.println("Error! Called setSource() of index other than the default.");
     291        DebugStream.println("Error! Called setSource() of index other than the default.");
    291292    }
    292293    }
Note: See TracChangeset for help on using the changeset viewer.