Changeset 6879 for trunk/gli/src/org/greenstone/gatherer/msm
- Timestamp:
- 2004-02-24T13:09:55+13:00 (20 years ago)
- 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 182 182 element_ew = null; 183 183 } 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 ( GDMDocumentwould 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) 185 185 else { 186 186 // Retrieve the parent node … … 257 257 changed = true; 258 258 } 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 up259 // 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 260 260 else { 261 261 // 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 86 86 private ExistingMetadataLoader loader = null; 87 87 /** 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; 89 89 /** A list of classes who are interested in changes to the loaded metadata sets. */ 90 90 private Vector listeners = null; … … 92 92 /** Constructor. */ 93 93 public MetadataSetManager() { 94 this.gdm_parser = new GDMParser();94 this.gdm_parser = new MetadataXMLFileParser(); 95 95 this.listeners = new Vector(); 96 96 this.loader = new ExistingMetadataLoader(); … … 1088 1088 1089 1089 /** 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). 1091 1091 * @param id a long unique identifier shared by all actions caused by the same gesture. 1092 1092 * @param record the FileNode we are adding the metadata to.
Note:
See TracChangeset
for help on using the changeset viewer.