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

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

public class AttributeOperationFactory
extends Object
implements OperationFactory

Creates operations by inspecting keywords passed as attributes in patch elements.

Author:
Laurent Bovet (LBO), Alex Mathey (AMA)
File-location:
AttributeOperationFactory
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

Constructor Summary
AttributeOperationFactory(Operation defaultOperation, OperationResolver resolver, String keyword, String namespace)
          Creates a new AttributeOperationFactory.
 
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

AttributeOperationFactory

public AttributeOperationFactory(Operation defaultOperation,
                                 OperationResolver resolver,
                                 String keyword,
                                 String namespace)
Creates a new AttributeOperationFactory.

Parameters:
defaultOperation - The factory's default operation
resolver - The factory's operation resolver
keyword - The name of the attribute representing the factory's operation
namespace - The namespace describing the operations to apply
Method Detail

getOperation

public Operation getOperation(org.jdom.Element originalElement,
                              org.jdom.Element modifiedElement)
                       throws AbstractXmlMergeException
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
Throws:
AbstractXmlMergeException - If an error occurs during operation creation


Copyright © 2005-2011 ELCA. All Rights Reserved.