Changeset 12841


Ignore:
Timestamp:
2006-09-25T12:05:08+12:00 (18 years ago)
Author:
kjdon
Message:

added a method to see if we have a datelist assigned. used by format manager

File:
1 edited

Legend:

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

    r12808 r12841  
    171171    }
    172172
     173    /** Determine if a DateList classifier has been assigned
     174     * @return true if it has, false otherwise
     175     */
     176    public boolean isDateListClassifierAssigned() {
     177    for(int i = 0; i < getSize(); i++) {
     178        Classifier classifier = (Classifier) getElementAt(i);
     179        if(classifier.getName().equalsIgnoreCase(StaticStrings.DATELIST_CLASSIFIER)) {
     180        return true;
     181        }
     182        classifier = null;
     183    }
     184    return false;
     185   
     186    }
    173187    /** Method to move a classifier in the list order.
    174188     * @param classifier the Classifier you want to move.
Note: See TracChangeset for help on using the changeset viewer.