~vcs-imports/xena/trunk

« back to all changes in this revision

Viewing changes to src/au/gov/naa/digipres/xena/kernel/metadatawrapper/MetaDataWrapperManager.java

  • Committer: matthewoliver
  • Date: 2009-12-10 03:18:07 UTC
  • Revision ID: vcs-imports@canonical.com-20091210031807-l086qguzdlljtkl9
Merged Xena Testing into Xena Stable for the Xena 5 release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
         * In this case, use a LinkedHashMap to ensure entries are iterated in the order they were put into the map.
117
117
         * @param wrapperMap
118
118
         */
119
 
        public void addMetaDataWrappers(Map<AbstractMetaDataWrapper, XMLFilter> wrapperMap) {
 
119
        public void addMetaDataWrappers(Map<AbstractMetaDataWrapper, AbstractMetaDataUnwrapper> wrapperMap) {
120
120
 
121
121
                for (AbstractMetaDataWrapper wrapper : wrapperMap.keySet()) {
122
122
                        MetaDataWrapperPlugin metaDataWrapperPlugin = new MetaDataWrapperPlugin();
173
173
                return metaDataWrapper;
174
174
        }
175
175
 
176
 
        public XMLFilter getUnwrapNormaliser() throws XenaException {
 
176
        public AbstractMetaDataUnwrapper getUnwrapNormaliser() throws XenaException {
177
177
                return activeWrapperPlugin.getUnwrapper();
178
178
        }
179
179
 
183
183
                                return element;
184
184
                        }
185
185
                }
 
186
 
 
187
                if (getEmptyWrapper() != null) {
 
188
                        // Return the empty unwrapper because no wrapper for the tag was found.
 
189
                        return getEmptyWrapper();
 
190
                }
 
191
 
186
192
                throw new XenaException("No Meta Data Wrapper for that tag!");
187
193
        }
188
194
 
207
213
         * @return the appropriate unwrapper.
208
214
         * @throws XenaException
209
215
         */
210
 
        public XMLFilter getUnwrapper(XenaInputSource xis) throws XenaException {
 
216
        public AbstractMetaDataUnwrapper getUnwrapper(XenaInputSource xis) throws XenaException {
211
217
                String outerTag = getTag(xis);
212
218
                return getMetaDataWrapperByTag(outerTag).getUnwrapper();
213
219
        }