public interface AddElement<T extends TransformationOperation>
TransformationOperation
subclasses that intend to modify a project by adding elements to it,
standardizing the behavior and API if the element to be added already exists.
Modifier and Type | Interface and Description |
---|---|
static class |
AddElement.IfPresent
Possible behaviors in case the element to be added already exists.
|
Modifier and Type | Method and Description |
---|---|
T |
failIfPresent()
Fail (
TOExecutionResult.Type.ERROR )
if the element to be added is already present |
T |
noOpIfPresent()
Do nothing, not add, not warn neither fail, (
TOExecutionResult.Type.NO_OP )
if the element to be added is already present |
T |
overwriteIfPresent()
Overwrite and not warn (
TOExecutionResult.Type.SUCCESS )
if the element to be added is already present |
T |
warnButAddIfPresent()
Warn, but add, (
TOExecutionResult.Type.WARNING )
if the element to be added is already present |
T |
warnNotAddIfPresent()
Warn and do not add (
TOExecutionResult.Type.WARNING )
if the element to be added is already present |
T failIfPresent()
TOExecutionResult.Type.ERROR
)
if the element to be added is already presentT warnNotAddIfPresent()
TOExecutionResult.Type.WARNING
)
if the element to be added is already presentT warnButAddIfPresent()
TOExecutionResult.Type.WARNING
)
if the element to be added is already presentT noOpIfPresent()
TOExecutionResult.Type.NO_OP
)
if the element to be added is already presentT overwriteIfPresent()
TOExecutionResult.Type.SUCCESS
)
if the element to be added is already present