View Javadoc

1   package org.naftulin.configmgr;
2   
3   import java.io.Serializable;
4   
5   public class ConfigurationType implements Serializable {
6   	private static final long serialVersionUID = 1L;
7   	public static final ConfigurationType MASTER_RECORD = new ConfigurationType("Master Record");
8   	public static final ConfigurationType LOG4J_PROPS = new ConfigurationType("Log4J Properties");
9   	public static final ConfigurationType LOG4J_XML = new ConfigurationType("Log4J XML");
10  	public static final ConfigurationType PROPERTIES = new ConfigurationType("Properties");
11  	public static final ConfigurationType XML = new ConfigurationType("XML");
12  	public static final ConfigurationType EXTERNAL = new ConfigurationType("External");
13  	public static final ConfigurationType ERROR = new ConfigurationType("Error");
14  	public static final ConfigurationType DB_DIRECT = new ConfigurationType("DirectDB");
15  	public static final ConfigurationType DB_JNDI = new ConfigurationType("JndiDB");
16  	public static final ConfigurationType JNDI = new ConfigurationType("Jndi");
17  	
18  	private final String name;
19  
20  	/***
21  	 * Creates configuration type given the type name
22  	 * @param name
23  	 */
24  	protected ConfigurationType(final String name) {
25  		this.name = name;
26  	}
27  	
28  	public String getName() {
29  		return name;
30  	}
31  	
32  	public String toString() {
33  		return name + " configuration type";
34  	}
35  }