Package org.eclipse.epsilon.emc.muddle
Class MuddleModelPropertySetter
- java.lang.Object
-
- org.eclipse.epsilon.eol.execute.introspection.AbstractPropertySetter
-
- org.eclipse.epsilon.emc.muddle.MuddleModelPropertySetter
-
- All Implemented Interfaces:
IPropertySetter
public class MuddleModelPropertySetter extends AbstractPropertySetter
-
-
Field Summary
Fields Modifier and Type Field Description protected MuddleModel
model
-
Constructor Summary
Constructors Constructor Description MuddleModelPropertySetter(MuddleModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Feature
getFeature(MuddleElement element, String property)
protected Slot
getSlot(MuddleElement element, Feature feature)
void
invoke(Object object, String property, Object value, IEolContext context)
Sets a property on a given object to the specified value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.eol.execute.introspection.IPropertySetter
invoke, invoke
-
-
-
-
Field Detail
-
model
protected MuddleModel model
-
-
Constructor Detail
-
MuddleModelPropertySetter
public MuddleModelPropertySetter(MuddleModel model)
-
-
Method Detail
-
invoke
public void invoke(Object object, String property, Object value, IEolContext context) throws EolRuntimeException
Description copied from interface:IPropertySetter
Sets a property on a given object to the specified value.- Parameters:
object
- The model element to update.property
- The name of the property of the model element.value
- The new value of the property.context
- The execution context.- Throws:
EolRuntimeException
- If anything goes wrong in updating the value.
-
getSlot
protected Slot getSlot(MuddleElement element, Feature feature)
-
getFeature
protected Feature getFeature(MuddleElement element, String property)
-
-