Package org.mycore.mods.merger
Class MCRUniqueMerger
java.lang.Object
org.mycore.mods.merger.MCRMerger
org.mycore.mods.merger.MCRUniqueMerger
Merges those MODS elements that must occur only oncy at a given level.
So if the elements have the same name, they are regarded to prepresent the same information.
- Author:
- Frank Lützenkirchen
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isProbablySameAs
(MCRMerger other) Returns true, if the element wrapped by this merger probably represents the same information as the other.void
setElement
(Element element) Sets the MODS element wrapped and compared by this mergerMethods inherited from class org.mycore.mods.merger.MCRMerger
equals, getNodes, mergeAttributes, mergeElements, mergeFrom
-
Constructor Details
-
MCRUniqueMerger
public MCRUniqueMerger()
-
-
Method Details
-
setElement
Description copied from class:MCRMerger
Sets the MODS element wrapped and compared by this merger- Overrides:
setElement
in classMCRMerger
-
isProbablySameAs
Description copied from class:MCRMerger
Returns true, if the element wrapped by this merger probably represents the same information as the other. The default implementation returns false and may be overwritten by subclasses implementing logic for specific MODS elements.- Overrides:
isProbablySameAs
in classMCRMerger
-