Revision 28113 branches/v2_0_0_prep/libraries/libGPE/src/org/gvsig/gpe/GPEProperties.java

View differences:

GPEProperties.java
31 31

  
32 32
/**
33 33
 * This class contains the generic properties for all the 
34
 * GPE parsers and writers. This class has been registered using
35
 * the SPI (Service Provider Interface) and the values of their
36
 * properties can be configured using {@link GPEDefaults}.
34
 * GPE parsers and writers. 
37 35
 */
38
public class GPEProperties implements IGPEProperties{
39
	private Properties properties = null;
40
	private static GPEProperties instance = null;
41
	
42
	private GPEProperties(){
43
		super();
44
		properties = new Properties();
45
		properties.put(DECIMAL_DIGITS, DECIMAL_DIGITS_VALUE);		
46
	}
47
	
48
	public static IGPEProperties getInstance(){
49
		if (instance == null){
50
			instance = new GPEProperties();
51
		}
52
		return instance;
53
	}
54
	
55
	
56
	/**
57
	 * Number of decimal digits that both the parser and the writer
58
	 * have to manage.
59
	 */
36
public class GPEProperties {
60 37
	public static final String DECIMAL_DIGITS = "decimalDigits";
61
	private static final Integer DECIMAL_DIGITS_VALUE = new Integer(20);	
62
	
63
	/*
64
	 * (non-Javadoc)
65
	 * @see org.gvsig.gpe.IGPEProperties#getProperties()
66
	 */
67
	public Properties getProperties() {
68
		return properties;
69
	}
70

  
71 38
}
72 39

  
73 40

  

Also available in: Unified diff