Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2308 mtayler 1
/*
2
 * Created on 24/03/2005
3
 */
4
package DMS;
5
 
6
import org.w3c.dom.Node;
7
 
8
/**
9
 * @author mtayler
10
 */
11
public class templateXML {
12
 
13
	private static String TEMPLATE_CONFIG_XML = "template-config.xml";
14
	private projectList projects;
15
 
16
 
17
	public templateXML() {
18
		//load xml data
19
 
20
		Node projNode = XMLParser.getRootNode(TEMPLATE_CONFIG_XML);
21
 
22
		projects = new projectList(projNode);
23
	}		
24
 
25
	/**
26
	 * @return Returns the projects.
27
	 */
28
	public projectItem[] getProjects() {
29
		return projects.getProjects();
30
	}
31
 
32
	/**
33
	 * @return Returns the projects names
34
	 */
35
	public String[] getProjectNames() {
36
		return projects.getProjectNames();
37
	}
38
 
39
	/**
40
	 * @return Returns the project by name.
41
	 */		
42
	public projectItem getProjectByName(String name) {
43
		return projects.getProjectByName(name);
44
	}	
45
 
46
	public static void main(String[] args) {		
47
		templateXML html = new templateXML();		
48
	}
49
 
50
 
51
}