Revision 112 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dynobject/DynField.java

View differences:

DynField.java
2 2

  
3 3
import java.util.List;
4 4

  
5
import org.gvsig.tools.dataTypes.CoercionException;
5 6
import org.gvsig.tools.dynobject.exception.DynFieldIsNotAContainerException;
6 7
import org.gvsig.tools.dynobject.exception.DynFieldValidateException;
7 8

  
......
130 131
	 * 
131 132
	 * @param value
132 133
	 * @return new value
134
	 * @throws CoercionException 
133 135
	 */
134
	Object coerce(Object value);
136
	Object coerce(Object value) throws CoercionException;
135 137
	
136 138
	/**
137 139
	 * When a field is of type container, this method return a DynClass
138
	 * that define the type of elements.
140
	 * that define the type of elements. 
141
 	 * When the type is DYNOBJECT return the DynClass associated
142
 	 * to this.
139 143
	 * 
140
	 * Return null if the type not is a container. A container is, ARRAY,
141
	 * LIST, MAP or SET.
144
	 * Return null if the type not is a container.
142 145
	 * 
143 146
	 * @return DynClass that define the type of elements.
144 147
	 */
......
146 149

  
147 150
	/**
148 151
 	 * Set the type of items when the field is a container.
152
 	 * When the type is DYNOBJECT is the DynClass associated
153
 	 * to this.
149 154
 	 * 
150 155
	 * @param definition
151 156
	 * @return this same {@link DynField} object

Also available in: Unified diff