package gov.nih.nci.cbiit.cmts.function;

import java.util.Map;

import gov.nih.nci.cbiit.cmts.core.FunctionType;

public class ConstantFunction {

	public String retrieveValue(FunctionType functionType, Map paramters)
	{
		StringBuffer rtnBf=new StringBuffer();
		rtnBf.append(functionType.getData().get(0).getValue());
		return rtnBf.toString();
	}
}

package gov.nih.nci.cbiit.cmts.function;

import java.util.Map;

import gov.nih.nci.cbiit.cmts.core.FunctionType;

public class ConstantFunction {
/**
 * Returns the xml query statement of retrieving a constant value
 * @param functionType
 * @param paramters
 * @return
 */
	public String retrieveValue(FunctionType functionType, Map<String, String> paramters)
	{
		StringBuffer rtnBf=new StringBuffer();
		rtnBf.append(functionType.getData().get(0).getValue());
		return "string(\""+rtnBf.toString()+"\")";
	}
}

enable functions: temporarily remove dateTime.changeFormat, math.subtraction, math.multiplication, math.division