31 lines
842 B
Java
31 lines
842 B
Java
package org.gcube.portlets.user.td.expressionwidget.shared.model.composite.text;
|
|
|
|
import org.gcube.portlets.user.td.expressionwidget.shared.model.Expression;
|
|
import org.gcube.portlets.user.td.expressionwidget.shared.model.OperatorType;
|
|
|
|
/**
|
|
*
|
|
* @author "Giancarlo Panichi" <a
|
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
*
|
|
*/
|
|
public class TextEndsWith extends Expression {
|
|
private static final long serialVersionUID = -5149428840566398839L;
|
|
protected Expression leftArgument;
|
|
protected Expression rightArgument;
|
|
|
|
public TextEndsWith(Expression leftArgument, Expression rightArgument) {
|
|
this.leftArgument = leftArgument;
|
|
this.rightArgument = rightArgument;
|
|
}
|
|
|
|
public OperatorType getOperator() {
|
|
return OperatorType.ENDS_WITH;
|
|
}
|
|
|
|
public String getReturnedDataType() {
|
|
return "Boolean";
|
|
}
|
|
|
|
}
|