Changeset 11125


Ignore:
Timestamp:
2006-01-27T09:47:43+13:00 (18 years ago)
Author:
kjdon
Message:

removed some unnecessary functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gems/ElementWrapper.java

    r11006 r11125  
    170170    return toString().compareTo(object.toString());
    171171    }
    172     /** Decrement the number of occurances of this metadata element.
    173      * @see org.greenstone.gatherer.msm.MSMUtils
    174      */
    175     public void dec() {
    176     MSMUtils.setOccurance(element, -1);
    177     }
     172
    178173    /** Test if two ElementWrappers are equal.
    179174     * @param object The <strong>Object</strong> to test against.
     
    226221     */
    227222    public String getName() {
    228         return MSMUtils.getFullName(element, namespace);
     223    return MSMUtils.getFullName(element, namespace);
    229224    }
    230225
     
    247242    }
    248243    }
    249     /** Look for the occurances 'field' of the element and return it if found.
    250      * @return An <i>int</i> which matches the number in the occurances attribute of the element, or 0 if no such attribute.
    251      * @see org.greenstone.gatherer.msm.MSMUtils
    252      */
    253     public int getOccurances() {
    254     return MSMUtils.getOccurances(element);
    255     }
     244
    256245    /** This method is essentially the same as getDescription() in that it does indeed return this metaelements description. However this method uses the Utility function formatHTMLWidth() to ensure the String can be displayed in a tool-tip window using html markup.
    257246     * @return A String containing the HTML formatted versions of definition and content (comment).
     
    264253    }
    265254
    266     /** Increment the number of occurances of this metadata element.
    267      * @see org.greenstone.gatherer.msm.MSMUtils
    268      */
    269     public void inc() {
    270     MSMUtils.setOccurance(element, 1);
    271     }
    272255
    273256    /** Removes an Attribute node from the element. */
Note: See TracChangeset for help on using the changeset viewer.