Class TagMatcher

java.lang.Object
ch.galinet.xml.xmlmerge.matcher.TagMatcher
All Implemented Interfaces:
Matcher, Operation

public class TagMatcher extends Object implements Matcher
Compares the qualified name of elements.
Author:
Laurent Bovet (LBO), Alex Mathey (AMA)
  • Constructor Details

    • TagMatcher

      public TagMatcher()
  • Method Details

    • matches

      public boolean matches(org.jdom2.Element originalElement, org.jdom2.Element patchElement)
      Compares two elements to know if they correspond for merging.
      Specified by:
      matches in interface Matcher
      Parameters:
      originalElement - Original element
      patchElement - Patch element
      Returns:
      True if the two elements correspond for merging