|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SequentialUnit
A representation of the model object 'Sequential Unit'.
Sequential units apply contained transformation units (including rules)
sequentially. The application order is given by the position in the list
returned by MultiUnit.getSubUnits()
.
The default behavior is as follows: each unit is applied one after the other.
If a unit cannot be applied, the sequential units aborts, rolls back all
changes of this sequential unit and returns false
(indicates
non-successful application). Otherwise true
is returned.
This behavior can be altered slightly using attributes strict
and rollback
. The defaults are strict=true
and
rollback=true
with the semantics described above.
If strict=false
, even inapplicable rules/units will not break
the sequential application order, i.e., all containees are tried to be
applied one after the other. Consequently, unstrict sequential units
are always successful.
If rollback=false
no rollback is performed on aborts.
The following features are supported:
HenshinPackage.getSequentialUnit()
Method Summary | |
---|---|
boolean |
isRollback()
Returns the value of the 'Rollback' attribute. |
boolean |
isStrict()
Returns the value of the 'Strict' attribute. |
void |
setRollback(boolean value)
Sets the value of the ' Rollback ' attribute. |
void |
setStrict(boolean value)
Sets the value of the ' Strict ' attribute. |
Methods inherited from interface org.eclipse.emf.henshin.model.MultiUnit |
---|
getSubUnits |
Methods inherited from interface org.eclipse.emf.henshin.model.Unit |
---|
getModule, getParameter, getParameterMappings, getParameters, getSubUnits, isActivated, setActivated |
Methods inherited from interface org.eclipse.emf.henshin.model.NamedElement |
---|
getDescription, getName, setDescription, setName |
Methods inherited from interface org.eclipse.emf.henshin.model.ModelElement |
---|
getAnnotations |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
---|
boolean isStrict()
"true"
.
setStrict(boolean)
,
HenshinPackage.getSequentialUnit_Strict()
void setStrict(boolean value)
Strict
' attribute.
value
- the new value of the 'Strict' attribute.isStrict()
boolean isRollback()
"true"
.
setRollback(boolean)
,
HenshinPackage.getSequentialUnit_Rollback()
void setRollback(boolean value)
Rollback
' attribute.
value
- the new value of the 'Rollback' attribute.isRollback()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |