package eu.dnetlib.common.ws.harv.parser;

import java.util.HashMap;
import java.util.Map;

/**
 * Content parser context. Holds properties required by 
 * target content parser module.
 * @author mhorst
 *
 */
public class ContentParserContext {

	public static final String KEY_XSLT_LOCATION = "KEY_XSLT_LOCATION";
	
	public static final String KEY_FULLTEXT_FIELDS = "KEY_FULLTEXT_FIELDS";
	
	public static final String KEY_FULLTEXT_FLAG = "KEY_FULLTEXT_FLAG";
	
	private Map<String, Object> props = new HashMap<String, Object>();
	
	/**
	 * Returns property for given key.
	 * @param key
	 * @return property for given key
	 */
	public Object getProperty(String key) {
		return props.get(key);
	}
	
	/**
	 * Sets property value for given key.
	 * @param key
	 * @param value
	 */
	public void setProperty(String key, Object value) {
		props.put(key, value);
	}
}
