ch.elca.el4j.services.xmlmerge.matcher
Class TagMatcher

java.lang.Object
  extended by ch.elca.el4j.services.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)
File-location:
TagMatcher
Last check-in date:
2009-08-04 15:48:31 +0200 (Di, 04. Aug 2009) by swismer for revision 3884

Constructor Summary
TagMatcher()
           
 
Method Summary
 boolean matches(org.jdom.Element originalElement, org.jdom.Element patchElement)
          Compares two elements to know if they correspond for merging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagMatcher

public TagMatcher()
Method Detail

matches

public boolean matches(org.jdom.Element originalElement,
                       org.jdom.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


Copyright © 2005-2011 ELCA. All Rights Reserved.