ch.elca.el4j.services.xmlmerge.factory
Class StaticOperationFactory

java.lang.Object
  extended by ch.elca.el4j.services.xmlmerge.factory.StaticOperationFactory
All Implemented Interfaces:
OperationFactory

public class StaticOperationFactory
extends Object
implements OperationFactory

An operation factory returning always the same operation whatever the specified elements.

Author:
Laurent Bovet (LBO), Alex Mathey (AMA)
File-location:
StaticOperationFactory
Last check-in date:
2009-08-04 15:48:31 +0200 (Di, 04. Aug 2009) by swismer for revision 3884

Constructor Summary
StaticOperationFactory(Operation operation)
          Creates a StaticOperationFactory returning the given operation.
 
Method Summary
 Operation getOperation(org.jdom.Element originalElement, org.jdom.Element modifiedElement)
          Creates operation (action, mapper and matcher) instances corresponding to a pair of elements from the original and patch DOMs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticOperationFactory

public StaticOperationFactory(Operation operation)
Creates a StaticOperationFactory returning the given operation.

Parameters:
operation - The operation operation returned by this factory.
Method Detail

getOperation

public Operation getOperation(org.jdom.Element originalElement,
                              org.jdom.Element modifiedElement)
Creates operation (action, mapper and matcher) instances corresponding to a pair of elements from the original and patch DOMs.

Specified by:
getOperation in interface OperationFactory
Parameters:
originalElement - Original element
modifiedElement - Modified element
Returns:
The operation (action, mapper or matcher) for the given element pair


Copyright © 2005-2011 ELCA. All Rights Reserved.