Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2308 mtayler 1
/*
2
 * Created on 31/03/2005
3
 */
4
package DMS;
5
 
6
import org.w3c.dom.Node;
7
 
8
/**
9
 * @author mtayler
10
 */
11
public class projectItem {
12
 
13
	private String FProjectName;
14
	private String FProjectLogo;
15
	private templateList templates;
16
 
17
	public projectItem(Node root) {
18
		FProjectName = XMLParser.findNodeValue(root,"project-name");
19
 
20
		FProjectLogo = DMSUtils.NVL(XMLParser.findNodeValue(root,"project-logo"),"default.gif");
21
 
22
		Node templateNode = XMLParser.findNode(root,"template-list");
23
 
24
		templates = new templateList(templateNode);
25
	}
26
 
27
	/**
28
	 * @return Returns the fProjectName.
29
	 */
30
	public String getName() {
31
		return FProjectName;
32
	}
33
 
34
	/**
35
	 * @return Returns the templates.
36
	 */
37
	public templateList getTemplates() {
38
		return templates;
39
	}
40
 
41
	/**
42
	 * @return Returns the templates by name.
43
	 */
44
	public templateItem getTemplateByName(String name) {
45
		return templates.getTemplateByName(name);
46
	}
47
 
48
	/**
49
	 * @return Returns the template names.
50
	 */
51
	public String[] getTemplateNames() {
52
		return templates.getTemplateNames();
53
	}	
54
 
55
	/**
56
	 * @return Returns the fProjectLogo.
57
	 */
58
	public String getProjectLogo() {
59
		return FProjectLogo;
60
	}
61
}