Class SpreadsheetPropertyGetter
- java.lang.Object
 - 
- org.eclipse.epsilon.eol.execute.introspection.AbstractPropertyGetter
 - 
- org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertyGetter
 - 
- org.eclipse.epsilon.emc.spreadsheets.SpreadsheetPropertyGetter
 
 
 
 
- 
- All Implemented Interfaces:
 IPropertyGetter
public class SpreadsheetPropertyGetter extends JavaPropertyGetter
This class allows querying spreadsheet rows. Both individual rows and collections of rows can be queried. If a single row is queried the value stored by the column in the row is returned. If a collection of rows is queried then a list of such values is returned. When querying a referencing cell any referenced rows from the target worksheet are returned. If the reference is one-to-one then the first target row is returned, otherwise all such rows are returned.- Author:
 - Martins Francis
 
 
- 
- 
Constructor Summary
Constructors Constructor Description SpreadsheetPropertyGetter(SpreadsheetModel model) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectinvoke(java.lang.Object object, java.lang.String columnIdentifier, IEolContext context)Invokes a property on a model element.java.util.List<java.lang.Object>query(java.util.Collection<?> collection, java.lang.String column, IEolContext context)java.lang.Objectquery(SpreadsheetRow row, java.lang.String columnIdentifier)java.lang.Objectquery(SpreadsheetRow row, SpreadsheetColumn column)- 
Methods inherited from class org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertyGetter
getMethodFor, hasProperty 
- 
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.IPropertyGetter
hasProperty, invoke 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
SpreadsheetPropertyGetter
public SpreadsheetPropertyGetter(SpreadsheetModel model)
 
 - 
 
- 
Method Detail
- 
invoke
public java.lang.Object invoke(java.lang.Object object, java.lang.String columnIdentifier, IEolContext context) throws EolRuntimeExceptionDescription copied from interface:IPropertyGetterInvokes a property on a model element.- Specified by:
 invokein interfaceIPropertyGetter- Overrides:
 invokein classJavaPropertyGetter- Parameters:
 object- The model element.columnIdentifier- The property name of the model element.context- The execution context.- Returns:
 - The value of the requested property.
 - Throws:
 EolIllegalPropertyException- If the property could not be found.EolRuntimeException- If an exception occurs when querying the model for the property.
 
- 
query
public java.util.List<java.lang.Object> query(java.util.Collection<?> collection, java.lang.String column, IEolContext context) throws EolRuntimeException- Throws:
 EolRuntimeException
 
- 
query
public java.lang.Object query(SpreadsheetRow row, java.lang.String columnIdentifier) throws EolRuntimeException
- Throws:
 EolRuntimeException
 
- 
query
public java.lang.Object query(SpreadsheetRow row, SpreadsheetColumn column)
 
 - 
 
 -