All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.anysoft.selector.impl.Constants Maven / Gradle / Ivy

There is a newer version: 1.6.17
Show newest version
package com.anysoft.selector.impl;

import org.w3c.dom.Element;

import com.anysoft.formula.DataProvider;
import com.anysoft.util.BaseException;
import com.anysoft.util.Properties;
import com.anysoft.util.PropertiesConstants;
import com.anysoft.selector.Selector;

/**
 * 常量选择器
 * 
 * @author duanyy
 * @since 1.5.2
 * 
 */
public class Constants extends Selector {

	
	public void onConfigure(Element _e, Properties _p) throws BaseException {
		value = PropertiesConstants.getString(_p, "selector-value", value,true);
	}

	
	public String onSelect(DataProvider _dataProvider) {
		return value;
	}

	protected String value = "0";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy