public abstract class ModelRule extends AbstractRule
| Constructor and Description |
|---|
ModelRule()
The default constructor should only be used internally by the
transformation service.
|
ModelRule(java.lang.String id,
java.lang.String name)
Constructor to create a rule.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(ITransformContext context)
When a rule is executed, it will:
determine whether a target object already exists.
|
createTarget, findTarget, isSourceConsumed, mapTarget, toString, updateTargetcanAccept, getAcceptCondition, getDescription, getId, getName, getProgressMonitor, setAcceptCondition, setDescription, setId, setNamepublic ModelRule()
public ModelRule(java.lang.String id,
java.lang.String name)
id - A unique identifier for the rule.name - The name of the rule.public java.lang.Object execute(ITransformContext context) throws java.lang.Exception
AbstractRuleexecute in class AbstractRulecontext - the current context of the transformation executionjava.lang.Exception