Revision 26911

View differences:

branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultFeatureAttributeDescriptor.java
31 31
	protected boolean readOnly;
32 32
	protected IProjection SRS;
33 33
	protected int geometryType;
34

  
34
	protected int geometrySubType;
35
	
35 36
    private static final Class TYPE_CLASS[] = new Class[] {
36 37
    	null,
37 38
    	Boolean.class,
......
69 70
		this.readOnly = false;
70 71
		this.SRS = null;
71 72
		this.geometryType = Geometry.TYPES.NULL;
73
		this.geometrySubType = Geometry.SUBTYPES.UNKNOWN;
72 74
	}
73 75

  
74 76
	protected DefaultFeatureAttributeDescriptor(
......
89 91
		this.readOnly = other.readOnly;
90 92
		this.SRS = other.SRS;
91 93
		this.geometryType = other.geometryType;
94
		this.geometrySubType = other.geometrySubType;
92 95
	}
93 96

  
94 97
	public String getDataTypeName() {
......
123 126
		return this.geometryType;
124 127
	}
125 128

  
129
	public int getGeometrySubType() {
130
		return this.geometrySubType;
131
	}
132

  
126 133
	public int getIndex() {
127 134
		return this.index;
128 135
	}
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/FeatureAttributeDescriptor.java
145 145
	 * 		One of {@link Geometry.TYPES}
146 146
	 */
147 147
	public int getGeometryType();
148
	
149
	/**
150
	 * If this attribute is a {@link Geometry}, this method returns the specific geometry subtype,
151
	 * as defined in {@link Geometry.SUBTYPES}.
152
	 * 
153
	 * @return
154
	 * 		One of {@link Geometry.SUBTYPES}
155
	 */
156
	public int getGeometrySubType();
148 157

  
149 158
	/**
150 159
	 * Returns this attribute default value, or null if no

Also available in: Unified diff