Revision 8445 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/fmap/layers/FLyrWFS.java

View differences:

FLyrWFS.java
7 7
import java.net.URL;
8 8
import java.util.HashMap;
9 9
import java.util.Map;
10
import java.util.Vector;
10 11

  
11 12
import javax.swing.ImageIcon;
12 13

  
14
import org.gvsig.remoteClient.gml.schemas.IXMLType;
13 15
import org.gvsig.remoteClient.gml.schemas.XMLElement;
14 16
import org.gvsig.remoteClient.wfs.WFSStatus;
15 17
import org.gvsig.remoteClient.wfs.filters.FilterEncoding;
......
71 73
 *
72 74
 * $Id$
73 75
 * $Log$
74
 * Revision 1.15  2006-10-23 07:37:04  jorpiell
76
 * Revision 1.16  2006-10-31 09:38:15  jorpiell
77
 * Se ha creado una factoria para crear la capa. De ese modo no se repite c?digo desde le panel de propiedades y desde el panel de la capa
78
 *
79
 * Revision 1.15  2006/10/23 07:37:04  jorpiell
75 80
 * Ya funciona el filterEncoding
76 81
 *
77 82
 * Revision 1.14  2006/10/10 12:55:06  jorpiell
......
323 328
	 * @return
324 329
	 */
325 330
	public String[] getFieldNames(){
326
		String[] attributes = new String[getFields().length];
331
		Vector vAttributes = new Vector();
327 332
		for (int i=0 ; i<getFields().length ; i++){
328
			attributes[i] = getFields()[i].getName();
333
			if (getFields()[i].getEntityType().getType() != IXMLType.COMPLEX){
334
				vAttributes.add(getFields()[i].getName());
335
			}
329 336
		}
337
		String[] attributes = new String[vAttributes.size()];
338
		for (int i=0 ; i<vAttributes.size() ; i++){
339
			attributes[i] = (String)vAttributes.get(i);
340
		}
330 341
		return attributes;
331 342
	}
332 343

  

Also available in: Unified diff