ch.elca.el4j.services.xmlmerge.factory
Class AttributeOperationFactory
java.lang.Object
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
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 |
AttributeOperationFactory
public AttributeOperationFactory(Operation defaultOperation,
OperationResolver resolver,
String keyword,
String namespace)
- Creates a new AttributeOperationFactory.
- Parameters:
defaultOperation
- The factory's default operationresolver
- The factory's operation resolverkeyword
- The name of the attribute representing the factory's operationnamespace
- The namespace describing the operations to apply
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 elementmodifiedElement
- 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.