Revision 11171 trunk/libraries/libGPE/src/org/gvsig/gpe/GPEDefaults.java

View differences:

GPEDefaults.java
2 2

  
3 3
import java.util.Properties;
4 4

  
5
import org.apache.xml.utils.NameSpace;
6

  
5 7
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
6 8
 *
7 9
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
......
46 48
 *
47 49
 * $Id$
48 50
 * $Log$
49
 * Revision 1.1  2007-04-12 11:39:20  jorpiell
51
 * Revision 1.2  2007-04-12 17:06:42  jorpiell
52
 * First GML writing tests
53
 *
54
 * Revision 1.1  2007/04/12 11:39:20  jorpiell
50 55
 * Add the GPEDefaults class
51 56
 *
52 57
 *
......
61 66
	public static final String DECIMAL = "decimal";
62 67
	public static final String COORDINATES_SEPARATOR = "coordinatesSeparator";
63 68
	public static final String TUPLES_SEPARATOR = "tuplesSeparator";
69
	public static final String NAMESPACE_PREFIX = "namespacePrefix";
70
	public static final String NAMESPACE_URI= "namespaceURI";
71
	public static final String XML_VERSION = "xmlVersion";
72
	public static final String XML_ENCODING = "xmlEncoding";
64 73
	
65 74
	static{
66 75
		properties.put(DECIMAL, ".");
67 76
		properties.put(COORDINATES_SEPARATOR, ",");
68
		properties.put(TUPLES_SEPARATOR, "&#x20");
77
		properties.put(TUPLES_SEPARATOR, " ");
78
		properties.put(NAMESPACE_PREFIX, "cit");
79
		properties.put(NAMESPACE_URI, "http://www.gvsig.com/cit");
80
		properties.put(XML_VERSION, "1.0");
81
		properties.put(XML_ENCODING, "UTF-8");
69 82
	}
70 83
	
71 84
	/**
......
74 87
	 * Property name
75 88
	 * @return
76 89
	 */
77
	public static Object getProperty(String key){
78
		return properties.getProperty(key);
90
	public static String getProperty(String key){
91
		Object obj = properties.getProperty(key);
92
		if (obj == null){
93
			return null;
94
		}
95
		return (String)obj;
79 96
	}
80 97
	
81 98
	/**

Also available in: Unified diff