Revision 21260 trunk/libraries/libTopology/src/org/gvsig/util/GFeatureParameter.java

View differences:

GFeatureParameter.java
49 49
package org.gvsig.util;
50 50

  
51 51
import java.lang.reflect.Field;
52
import java.util.List;
52 53

  
53 54
import com.iver.cit.gvsig.fmap.core.IFeature;
54

  
55
import com.iver.cit.gvsig.fmap.layers.FLyrVect;
56
/**
57
 * A parameter of type 'IFeature'.
58
 * 
59
 * It receives a list of FLyrVect where we can fetch this feature.
60
 * @author Alvaro Zabala
61
 *
62
 */
55 63
public class GFeatureParameter extends GParameter {
56 64

  
57
	public GFeatureParameter(String paramName, Class paramType,
58
			Object defaultValue, Object parentReference) {
65
	private List<FLyrVect> featureContainers;
66
	/**
67
	 * Constructor. It receives a feature container in adition to the rest of GParameter
68
	 * attributes.
69
	 * 
70
	 * @param paramName
71
	 * @param paramType
72
	 * @param defaultValue
73
	 * @param parentReference
74
	 * @param featureContainer
75
	 */
76
	public GFeatureParameter(String paramName, 
77
							 Class paramType,
78
							 Object defaultValue, 
79
							 Object parentReference,
80
							 List<FLyrVect> featureContainers) {
59 81
		super(paramName, FEATURE_PARAM_TYPES, defaultValue, parentReference);
82
		
83
		this.featureContainers = featureContainers;
60 84
	}
61 85

  
62 86
	
......
75 99
			} 
76 100
	}
77 101

  
102

  
103
	public List<FLyrVect> getFeatureContainer() {
104
		return featureContainers;
105
	}
106

  
107

  
108
	public void setFeatureContainer(List<FLyrVect> featureContainers) {
109
		this.featureContainers = featureContainers;
110
	}
111

  
78 112
}

Also available in: Unified diff