Changeset 12282


Ignore:
Timestamp:
2006-07-24T13:45:17+12:00 (18 years ago)
Author:
kjdon
Message:

changed the toString method to not output 'subcollection'

File:
1 edited

Legend:

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

    r9193 r12282  
    249249     */
    250250    public String toString() {
    251     if(text == null && element != null) {
    252         text = CollectionConfiguration.toString(element, true);
    253     }
     251    if(text == null) {// && element != null) {
     252
     253        StringBuffer new_text = new StringBuffer(getName());
     254        new_text.append(StaticStrings.SPACE_CHARACTER);
     255        new_text.append(StaticStrings.SPEECH_CHARACTER);
     256        if (!isInclusive()) {
     257        new_text.append(StaticStrings.EXCLAMATION_CHARACTER);
     258        }
     259        new_text.append(getSource());
     260        new_text.append(StaticStrings.SEPARATOR_CHARACTER);
     261        new_text.append(getPattern());
     262        new_text.append(StaticStrings.SEPARATOR_CHARACTER);
     263        new_text.append(getFlags());
     264        new_text.append(StaticStrings.SPEECH_CHARACTER);
     265        text =  new_text.toString();
     266    }
     267   
    254268    return text;
    255269    }
Note: See TracChangeset for help on using the changeset viewer.