Changeset 5899


Ignore:
Timestamp:
2003-11-19T15:09:33+13:00 (20 years ago)
Author:
jmt12
Message:

Added a new constructor for 'dummy' collection metadata - ie that metadata which is used as a placeholder in managers such as the TranslationView but haven't actually been added to the collection configuration model

File:
1 edited

Legend:

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

    r5590 r5899  
    5252    static final public boolean GREENSTONE = false;
    5353
     54    private boolean dummy = false;
    5455    private Element element;
    5556    private String text;
     
    7475    element.setAttribute(StaticStrings.NAME_ATTRIBUTE, name);
    7576    element.setAttribute(StaticStrings.LANGUAGE_ATTRIBUTE, language);
     77    }
     78
     79    /** Constructor to create a new piece of metadata given its name. */
     80    public CollectionMeta(String name, String language, boolean dummy) {
     81    this(name, language);
     82    this.dummy = dummy;
    7683    }
    7784
     
    134141    }
    135142
     143    public boolean isDummy() {
     144    return dummy;
     145    }
     146
    136147    /** Determine if this metadata is one of the four special pieces of metadata.
    137148     * @return true if this metadata is special, false otherwise.
Note: See TracChangeset for help on using the changeset viewer.