Interface IPropertySetter
- All Known Subinterfaces:
IReflectivePropertySetter
- All Known Implementing Classes:
AbstractPropertySetter
,BibtexPropertySetter
,CsvPropertySetter
,EmfPropertySetter
,ExtendedPropertySetter
,HtmlPropertySetter
,JavaPropertySetter
,JsonPropertySetter
,ModelGroup.DelegatingModelElementPropertySetter
,MuddleModelPropertySetter
,PatternMatchPropertySetter
,PlainXmlPropertySetter
,SimulinkPropertySetter
,SpreadsheetPropertySetter
,TuplePropertySetter
,XmlPropertySetter
,YamlPropertySetter
public interface IPropertySetter
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
This method is provided only for convenience.void
invoke
(Object target, String property, Object value, IEolContext context) Sets a property on a given object to the specified value.default void
Supports batch property setting through e.g.
-
Method Details
-
invoke
void invoke(Object target, String property, Object value, IEolContext context) throws EolRuntimeException Sets a property on a given object to the specified value.- Parameters:
target
- 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.- Since:
- 1.6
-
invoke
This method is provided only for convenience. Implementations should override theinvoke(Object, String, Object, IEolContext)
method instead.- Parameters:
target
-property
-value
-- Throws:
EolRuntimeException
-
invoke
default void invoke(Object target, Map<String, Object> properties, IEolContext context) throws EolRuntimeExceptionSupports batch property setting through e.g. new Person(name="John", surname="Brown")- Parameters:
target
-properties
-- Throws:
EolRuntimeException
- Since:
- 2.5
-