Revision 28375 branches/v2_0_0_prep/libraries/libGeocoding/src/org/gvsig/geocoding/address/impl/DefaultRelationsComponent.java

View differences:

DefaultRelationsComponent.java
27 27

  
28 28
package org.gvsig.geocoding.address.impl;
29 29

  
30
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
31 30
import org.gvsig.geocoding.address.RelationsComponent;
32 31
import org.gvsig.tools.persistence.PersistenceException;
33 32
import org.gvsig.tools.persistence.PersistentState;
34 33

  
35 34
/**
36
 * Class DefaultRelationsComponent, relation between the keys of the extension
35
 * RelationsComponent class implementation, relation between the keys of the extension
37 36
 * (elements) and fields of the data source
38 37
 * 
39 38
 * @author <a href="mailto:jsanz@prodevelop.es"> Jorge Gaspar Sanz Salinas</a>
......
46 45
	private static final String FIELD = "field";
47 46

  
48 47
	private String element;
49
	private FeatureAttributeDescriptor field;
48
	private String field;
50 49

  
51 50
	/**
52 51
	 * RelationsComponent constructor
......
54 53
	 * @param elementy
55 54
	 * @param field
56 55
	 */
57
	public DefaultRelationsComponent(String element,
58
			FeatureAttributeDescriptor field) {
56
	public DefaultRelationsComponent(String element, String field) {
59 57
		this.element = element;
60 58
		this.field = field;
61 59
	}
......
74 72
	 * 
75 73
	 * @return
76 74
	 */
77
	public FeatureAttributeDescriptor getValue() {
75
	public String getValue() {
78 76
		return field;
79 77
	}
80 78

  
......
97 95
	 */
98 96
	public void setState(PersistentState state) throws PersistenceException {
99 97
		this.element = (String) state.get(ELEMENT);
100
		this.field = (FeatureAttributeDescriptor) state.get(FIELD);
98
		this.field = (String) state.get(FIELD);
101 99
	}
102 100

  
103 101
}

Also available in: Unified diff