Revision 9235 trunk/libraries/libJCRS/src/org/gvsig/crs/persistence/RecentTrsPersistence.java

View differences:

RecentTrsPersistence.java
51 51
import com.iver.utiles.XMLEntity;
52 52

  
53 53
/**
54
 * This class is used to save a list of CRSs (using the
54
 * This class is used to save a list of Transfomations (using the
55 55
 * Andami persistence model) to the plugins-persistence.xml file.
56
 * It has methods to create a set of ServerData objects  from an
57
 * xml file. It can also save a set of CRSs objects in an
56
 * It has methods to create a set of TrData objects  from an
57
 * xml file. It can also save a set of TrData objects in an
58 58
 * xml file.
59 59
 *
60 60
 * @author Diego Guerrero Sevilla diego.guerrero@uclm.es
......
118 118
	}
119 119

  
120 120
	/**
121
	 * This method saves an array of CrsData using the Anadami
121
	 * This method saves an array of TrData using the Anadami
122 122
	 * persistence model
123
	 * @param crsss
124
	 * Array of crss
123
	 * @param tr
124
	 * Array of trData to save.
125 125
	 */
126 126
	public void setArrayOfTrData(TrData[] trs){
127 127
		recentsXml.getXmlTag().removeAllXmlTag();
......
133 133
	}
134 134

  
135 135
	/**
136
	 * This method adds a CrsData using the Anadami
137
	 * persistence model. If the Crs exists just actualizes
136
	 * This method adds a TrData using the Anadami
137
	 * persistence model. If the Transformation exists just actualizes
138 138
	 * the type name and the wkt string.
139 139
	 * @param tr
140
	 * CrsData
140
	 * TrData
141 141
	 */
142 142
	public void addTrData(TrData tr){
143 143
		TrData[] trs = getArrayOfTrData();
......
156 156
		}
157 157
		
158 158
		if (!found) {
159
			if (trs.length<10){
159
			if (trs.length<10){ //L?mitie de almacenamiento: 10 Transf.
160 160
				TrData[] newTrs = new TrData[trs.length + 1];
161 161
				System.arraycopy(trs, 0, newTrs, 0, trs.length);
162 162
				newTrs[trs.length] = tr;
......
173 173

  
174 174

  
175 175
	/**
176
	 * This method returns an array of CrsData objects that
176
	 * This method returns an array of TrData objects that
177 177
	 * have been saved using the Andami persistence model.
178 178
	 * @return
179
	 * CrsData[]
179
	 * TrData[]
180 180
	 */
181 181
	public TrData[] getArrayOfTrData(){
182 182
		TrData[] trs = new TrData[recentsXml.getChildrenCount()];
......
196 196
	/**
197 197
	 * This method creates and returns a new XMLEntity.
198 198
	 * @param tr
199
	 * CrsData with all the Crs information
199
	 * TrData with all the Transformation information
200 200
	 * @return
201 201
	 * XMLEntity
202 202
	 */
......
222 222
	}
223 223

  
224 224
	/**
225
	 * This method creates a new CrsData from a XMLEntity
225
	 * This method creates a new TrData from a XMLEntity
226 226
	 * @param xmlEnt
227
	 * XMLRntity that contains the Crs information
227
	 * XMLRntity that contains the Tr information
228 228
	 * @return
229
	 * CrsData
229
	 * TrData
230 230
	 */
231 231
	public TrData xmlToTrData(XMLEntity xmlEnt){
232 232
		String authority = "";

Also available in: Unified diff