Revision 12337
branches/v10/libraries/libRemoteServices/src/org/gvsig/remoteClient/gml/factories/XMLTypesFactory.java | ||
---|---|---|
53 | 53 |
* |
54 | 54 |
* $Id$ |
55 | 55 |
* $Log$ |
56 |
* Revision 1.1.2.5 2007-01-25 16:12:59 jorpiell |
|
56 |
* Revision 1.1.2.6 2007-06-26 10:19:28 jorpiell |
|
57 |
* XS:Decimal type added |
|
58 |
* |
|
59 |
* Revision 1.1.2.5 2007/01/25 16:12:59 jorpiell |
|
57 | 60 |
* Se han sustituido las clases por las que hay en el nuevo driver de GML. |
58 | 61 |
* |
59 | 62 |
* Revision 1.8 2006/12/29 17:15:48 jorpiell |
... | ... | |
101 | 104 |
types.put(XMLSimpleType.FLOAT.toUpperCase(),new XMLSimpleType(XMLSimpleType.FLOAT)); |
102 | 105 |
types.put(XMLSimpleType.BOOLEAN.toUpperCase(),new XMLSimpleType(XMLSimpleType.BOOLEAN)); |
103 | 106 |
types.put(XMLSimpleType.LONG.toUpperCase(),new XMLSimpleType(XMLSimpleType.LONG)); |
107 |
types.put(XMLSimpleType.DECIMAL.toUpperCase(),new XMLSimpleType(XMLSimpleType.DECIMAL)); |
|
104 | 108 |
types.put(GMLGeometryType.POINT.toUpperCase(),new GMLGeometryType(GMLGeometryType.POINT)); |
105 | 109 |
types.put(GMLGeometryType.MULTIPOINT.toUpperCase(),new GMLGeometryType(GMLGeometryType.MULTIPOINT)); |
106 | 110 |
types.put(GMLGeometryType.LINE.toUpperCase(),new GMLGeometryType(GMLGeometryType.LINE)); |
branches/v10/libraries/libRemoteServices/src/org/gvsig/remoteClient/gml/types/XMLSimpleType.java | ||
---|---|---|
47 | 47 |
* |
48 | 48 |
* $Id$ |
49 | 49 |
* $Log$ |
50 |
* Revision 1.4.2.1 2007-01-25 16:12:59 jorpiell |
|
50 |
* Revision 1.4.2.2 2007-06-26 10:19:28 jorpiell |
|
51 |
* XS:Decimal type added |
|
52 |
* |
|
53 |
* Revision 1.4.2.1 2007/01/25 16:12:59 jorpiell |
|
51 | 54 |
* Se han sustituido las clases por las que hay en el nuevo driver de GML. |
52 | 55 |
* |
53 | 56 |
* Revision 1.4 2007/01/15 13:11:00 csanchez |
... | ... | |
94 | 97 |
public static final String BOOLEAN = "xs:boolean"; |
95 | 98 |
public static final String LONG = "xs:long"; |
96 | 99 |
public static final String INT = "xs:int"; |
100 |
public static final String DECIMAL = "xs:decimal"; |
|
97 | 101 |
|
98 | 102 |
private String type = null; |
99 | 103 |
private String name = null; |
... | ... | |
146 | 150 |
return new Float(value); |
147 | 151 |
}else if (type.equals(BOOLEAN)){ |
148 | 152 |
return new Boolean(value); |
153 |
}else if (type.equals(DECIMAL)){ |
|
154 |
return new Integer(value); |
|
149 | 155 |
} |
150 | 156 |
}catch (Exception e){ |
151 | 157 |
/********************************************************* |
Also available in: Unified diff