org.dawb.workbench.ui.editors.internal
Class ExpressionObject
java.lang.Object
org.dawb.workbench.ui.editors.internal.ExpressionObject
public class ExpressionObject
- extends java.lang.Object
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ExpressionObject
public ExpressionObject(IDatasetProvider provider)
ExpressionObject
public ExpressionObject(IDatasetProvider provider,
java.lang.String expression,
java.lang.String mementoKey)
isExpressionKey
public static boolean isExpressionKey(java.lang.String key)
getExpression
public java.lang.String getExpression()
- Returns:
- Returns the expression.
setExpression
public void setExpression(java.lang.String expression)
- Parameters:
expression
- The expression to set.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isValid
public boolean isValid(org.eclipse.core.runtime.IProgressMonitor monitor)
getSize
public int getSize(org.eclipse.core.runtime.IProgressMonitor monitor)
- Returns the size of the expression in the current environment.
- Returns:
- the size
getDataSet
public uk.ac.diamond.scisoft.analysis.dataset.AbstractDataset getDataSet(org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.lang.Exception
- Throws:
java.lang.Exception
getProvider
public IDatasetProvider getProvider()
- Returns:
- Returns the provider.
setProvider
public void setProvider(IDatasetProvider provider)
- Parameters:
provider
- The provider to set.
getMementoKey
public java.lang.String getMementoKey()
- Returns:
- Returns the mementoKey.
setMementoKey
public void setMementoKey(java.lang.String mementoKey)
- Parameters:
mementoKey
- The mementoKey to set.
clear
public void clear()
- Clears the current calculated data set from memory.
Does not