Changeset 5984 for trunk/gli/src


Ignore:
Timestamp:
2003-11-25T16:12:20+13:00 (21 years ago)
Author:
jmt12
Message:

Added methodto determine if Phind classifier has been assigned

File:
1 edited

Legend:

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

    r5863 r5984  
    5555import org.greenstone.gatherer.msm.MSMListener;
    5656import org.greenstone.gatherer.msm.MSMUtils;
     57import org.greenstone.gatherer.util.StaticStrings;
    5758import org.greenstone.gatherer.util.Utility;
    5859import org.w3c.dom.*;
     
    161162    }
    162163    return controls;
     164    }
     165
     166    /** Determine if the Phind classifier has been assigned.
     167     * @return true if it has, false otherwise
     168     */
     169    public boolean isPhindClassifierAssigned() {
     170    for(int i = 0; i < getSize(); i++) {
     171        Classifier classifier = (Classifier) getElementAt(i);
     172        if(classifier.getName().equalsIgnoreCase(StaticStrings.PHIND_CLASSIFIER)) {
     173        return true;
     174        }
     175        classifier = null;
     176    }
     177    return false;
    163178    }
    164179
Note: See TracChangeset for help on using the changeset viewer.