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

java.lang.Object
  extended by ch.elca.el4j.services.xmlmerge.matcher.IdMatcher
All Implemented Interfaces:
Matcher, Operation

public class IdMatcher
extends Object
implements Matcher

Elements match if their name and 'id' attribute are the same.

Author:
Laurent Bovet (LBO), Alex Mathey (AMA)
File-location:
IdMatcher
Last check-in date:
2009-08-04 14:35:53 +0200 (Di, 04. Aug 2009) by swismer for revision 3875

Constructor Summary
IdMatcher()
           
 
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

IdMatcher

public IdMatcher()
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.