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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidedit(Collection<?> rows, Object value, String property, IEolContext context) voidedit(SpreadsheetRow row, Object value, String property, IEolContext context) voideditPlainCell(SpreadsheetRow row, SpreadsheetColumn column, Object newCellValues) voideditReferencedCell(SpreadsheetRow row, SpreadsheetColumn column, Object value) voideditReferencingCell(SpreadsheetRow row, SpreadsheetColumn column, Object value) voidinvoke(Object object, String property, Object value, IEolContext context) Sets a property on a given object to the specified value.voidinvoke(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, getMethodForMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.epsilon.eol.execute.introspection.IPropertySetter
invoke, invokeMethods 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:IPropertySetterSets a property on a given object to the specified value.- Specified by:
invokein interfaceIPropertySetter- Overrides:
invokein 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
-