Ignore:
Timestamp:
2004-02-24T13:09:55+13:00 (20 years ago)
Author:
mdewsnip
Message:

Renamed GDM* classes to MetadataXMLFile*, for our sanity.

Location:
trunk/gli/src/org/greenstone/gatherer/msm
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/msm/LegacyCollectionImporter.java

    r6770 r6879  
    182182                    element_ew = null;
    183183                }
    184                 // If the raw name is null now, we have been instructed to ignore this metadata, so we can delete it from the metadata.xml (GDMDocument would do this anyway when it tried to save)
     184                // If the raw name is null now, we have been instructed to ignore this metadata, so we can delete it from the metadata.xml (MetadataXMLFile would do this anyway when it tried to save)
    185185                else {
    186186                    // Retrieve the parent node
     
    257257                        changed = true;
    258258                    }
    259                     // Cancel only skips the current metadata.xml file - actually I'll ignore the file on a cancel, as otherwise it will bugger up GDMManager when it starts up
     259                    // Cancel only skips the current metadata.xml file - actually I'll ignore the file on a cancel, as otherwise it will bugger up MetadataXMLFileManager when it starts up
    260260                    else {
    261261                        // Confirm the cancel, informing the user that the metadata.xml will be completely ignored if they continue
  • trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java

    r6770 r6879  
    8686    private ExistingMetadataLoader loader = null;
    8787    /** Specialized parser for parsing GreenstoneDirectoryMetadata files, which not only caches entries, but also breaks up massive metadata.xml files into reasonable sizes. */
    88     private GDMParser gdm_parser = null;
     88    private MetadataXMLFileParser gdm_parser = null;
    8989    /** A list of classes who are interested in changes to the loaded metadata sets. */
    9090    private Vector listeners = null;
     
    9292    /** Constructor. */
    9393    public MetadataSetManager() {
    94     this.gdm_parser = new GDMParser();
     94    this.gdm_parser = new MetadataXMLFileParser();
    9595    this.listeners = new Vector();
    9696    this.loader = new ExistingMetadataLoader();
     
    10881088
    10891089    /** Add a reference to a piece of metadata to the given FileNode. The whole method gets a wee bit messy as we have to allow for several different commands from users such as accumulate / overwrite, skip just this file or cancel the whole batch. Cancelling is especially problematic as we need to rollback any changes (within reason).
    1090      * It is also worth mentioning that despite its name, no actual metadata is added directly by this method. Instead a call to fireMetadataChanged() is issued, which is in turn processed by the GDMManager (which, given this method may have been called from GDMManager as well, means the cycle is complete. Um, that doesn't mean theres an infinite loop... I hope).
     1090     * It is also worth mentioning that despite its name, no actual metadata is added directly by this method. Instead a call to fireMetadataChanged() is issued, which is in turn processed by the MetadataXMLFileManager (which, given this method may have been called from MetadataXMLFileManager as well, means the cycle is complete. Um, that doesn't mean theres an infinite loop... I hope).
    10911091     * @param id a long unique identifier shared by all actions caused by the same gesture.
    10921092     * @param record the FileNode we are adding the metadata to.
Note: See TracChangeset for help on using the changeset viewer.