Ignore:
Timestamp:
2004-01-20T10:17:50+13:00 (20 years ago)
Author:
jmt12
Message:

Extended the metadata set handling code to allow for a newer style of MDS which is optimized for multilingual data. By this I mean that deferred-node-expansion is used to prevent large language-specific subtrees of the DOM model being considered when they are not of the current interface language. The old style of MDS format caused a considerable slow down when opening/closing collections which use the Dublin Core metadata set - which now contains several translations.

File:
1 edited

Legend:

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

    r5590 r6549  
    99    implements Comparable {
    1010    /** The element as the data from this object. */
    11     private Node element = null;
     11    private Element element = null;
    1212    /** Constructor.
    13      * @param element The <strong>Node</strong> this object is wrapped around.
     13     * @param node the Node this object is wrapped around
    1414     */
    15     public ElementWrapper(Node element) {
    16     this.element = element;
     15    public ElementWrapper(Node node) {
     16    this.element = (Element) node;
    1717    }
    1818    /** Compare two objects for ordering.
     
    4141     */
    4242    public String name() {
    43     return MSMUtils.getFullName((Element)element);
     43    return MSMUtils.getFullName(element);
    4444    }
    4545    /** Retrieve a textual representation of this object.
Note: See TracChangeset for help on using the changeset viewer.