Package org.mycore.mods.merger
Class MCRUniqueTypeMerger
java.lang.Object
org.mycore.mods.merger.MCRMerger
org.mycore.mods.merger.MCRUniqueTypeMerger
Merges MODS elements that must occur only once per type.
So if they have the same name and the same type attribute value,
they are regarded to represent 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
-
MCRUniqueTypeMerger
public MCRUniqueTypeMerger()
-
-
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
-