public interface IChangeFactory
| Modifier and Type | Method and Description |
|---|---|
Diff |
create(Diff input)
|
void |
fillRequiredDifferences(Comparison comparison,
Diff extension)
Sets the required link of the difference extension created by the related factory.
|
Class<? extends Diff> |
getExtensionKind()
Returns the kind of extension that this factory has to create.
|
Match |
getParentMatch(Diff input)
Returns the match in which the difference will be added.
|
boolean |
handles(Diff input)
Returns true if this factory handles the given kind of Diff, i.e., if it can create an
extension. |
Class<? extends Diff> getExtensionKind()
boolean handles(Diff input)
extension.
Performance note: this method should return as quickly as possible as it will called on every
Diff of the Comparison.
input - the element to testDiff create(Diff input)
extension from the given Diff. The returned element MUST NOT
be added to its parent, it will be done by the post processor.input - The input difference element.Match getParentMatch(Diff input)
input - The input difference element.void fillRequiredDifferences(Comparison comparison, Diff extension)
comparison - The comparison.extension - The difference extension.
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.