Class SpreadsheetPropertySetter
java.lang.Object
org.eclipse.epsilon.eol.execute.introspection.AbstractPropertySetter
org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertySetter
org.eclipse.epsilon.emc.spreadsheets.SpreadsheetPropertySetter
- All Implemented Interfaces:
IPropertySetter
,IReflectivePropertySetter
This class allows setting values of spreadsheet row cells.
- Author:
- Martins Francis
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
edit
(Collection<?> rows, Object value, String property, IEolContext context) void
edit
(SpreadsheetRow row, Object value, String property, IEolContext context) void
editPlainCell
(SpreadsheetRow row, SpreadsheetColumn column, Object newCellValues) void
editReferencedCell
(SpreadsheetRow row, SpreadsheetColumn column, Object value) void
editReferencingCell
(SpreadsheetRow row, SpreadsheetColumn column, Object value) void
invoke
(Object object, String property, Object value, IEolContext context) Sets a property on a given object to the specified value.void
invoke
(SpreadsheetRow row, SpreadsheetColumn column, Object value, ModuleElement ast, IEolContext context) Convenience method for editing a row and column.Methods inherited from class org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertySetter
coerce, conforms, getMethodFor
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
Methods inherited from interface org.eclipse.epsilon.eol.execute.introspection.IReflectivePropertySetter
coerce, conforms
-
Field Details
-
model
-
-
Constructor Details
-
SpreadsheetPropertySetter
-
-
Method Details
-
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.- Specified by:
invoke
in interfaceIPropertySetter
- Overrides:
invoke
in classJavaPropertySetter
- 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.
-
invoke
public void invoke(SpreadsheetRow row, SpreadsheetColumn column, Object value, ModuleElement ast, IEolContext context) throws EolRuntimeException Convenience method for editing a row and column.- Parameters:
row
-column
-value
-- Throws:
EolRuntimeException
-
edit
public void edit(Collection<?> rows, Object value, String property, IEolContext context) throws EolRuntimeException - Throws:
EolRuntimeException
-
edit
public void edit(SpreadsheetRow row, Object value, String property, IEolContext context) throws EolRuntimeException - Throws:
EolRuntimeException
-
editReferencingCell
-
editReferencedCell
-
editPlainCell
-