Changeset 36185


Ignore:
Timestamp:
2022-05-16T14:37:59+12:00 (2 years ago)
Author:
kjdon
Message:

we now have a new SearchMeta class, inherits from CollectionMeta. This add a type field to a collection meta, and is used for storing index, level, sortfield etc display texts. We want to keep the two lists separate now. and searchmeta need a type - index/sortfield/level etc. otherwise can't distinguish between the display text for a titles index or a titles sortfield.

Location:
main/trunk/gli/src/org/greenstone/gatherer/cdm
Files:
1 added
1 edited

Legend:

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

    r36177 r36185  
    4545    static final public boolean GREENSTONE = false;
    4646
    47     private boolean dummy = false;
    48     private Element element = null;
    49     private String text = null;
    50 
     47    protected boolean dummy = false;
     48    protected Element element = null;
     49    protected String text = null;
     50
     51    /** default no args constructor which gets called explicitly from subclass construcotrs */
     52    public CollectionMeta() {
     53    }
    5154    /** Constructor.
    5255     * @param element the Element from which we will determine metadata details
     
    97100     */
    98101    public boolean equals(Object object) {
     102      System.err.println("collmeat equals");
    99103    return (compareTo(object) == 0);
    100104    }
     
    181185    }
    182186
    183   public void setType(String type) {
    184     if(element != null) {
    185       element.setAttribute(StaticStrings.TYPE_ATTRIBUTE, type);
    186     }
    187   }
     187
    188188    /** Method to print out this class as it would appear within the collection configuration file.
    189189     * @return A <strong>String</strong> containing the text value of this class.
Note: See TracChangeset for help on using the changeset viewer.