Project

General

Profile

1
/**
2
 * 
3
 */
4
package eu.dnetlib.data.collective.transformation.engine.functions;
5

    
6
import java.util.List;
7

    
8
import eu.dnetlib.data.collective.transformation.TransformationException;
9

    
10
/**
11
 * @author jochen
12
 *
13
 */
14
public class Extract extends AbstractTransformationFunction {
15

    
16
	public static final String paramNameFeature = "feature";
17
	private IFeatureExtraction featureExtraction;
18
	
19
	/* (non-Javadoc)
20
	 * @see eu.dnetlib.data.collective.transformation.engine.functions.AbstractTransformationFunction#execute()
21
	 */
22
	@Override
23
	String execute() throws ProcessingException {
24
		// TODO Auto-generated method stub
25
		return null;
26
	}
27
	
28
	public List<String> execute(List<String> aObjectRecords, String aFeature) throws ProcessingException{
29
		try {
30
			return featureExtraction.execute(aObjectRecords, aFeature);
31
		} catch (TransformationException e) {
32
			throw new ProcessingException(e);
33
		}
34
	}
35

    
36
	/**
37
	 * @param featureExtraction the featureExtraction to set
38
	 */
39
	public void setFeatureExtraction(IFeatureExtraction featureExtraction) {
40
		this.featureExtraction = featureExtraction;
41
	}
42

    
43
	/**
44
	 * @return the featureExtraction
45
	 */
46
	public IFeatureExtraction getFeatureExtraction() {
47
		return featureExtraction;
48
	}
49
	
50
}
(5-5/17)