1/*******************************************************************************
2 * Copyright (c) 2000, 2006 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 *     IBM Corporation - initial API and implementation
10 *******************************************************************************/
11package org.eclipse.releng.generators;
12
13import org.w3c.dom.Element;
14import org.w3c.dom.NamedNodeMap;
15
16/**
17 * @version 	1.0
18 * @author
19 */
20public class PlatformStatus {
21
22	private String id;
23	private String name;
24	private String fileName;
25	private boolean hasErrors = false;
26
27	PlatformStatus(Element anElement) {
28		super();
29		NamedNodeMap attributes = anElement.getAttributes();
30		this.id = (String) attributes.getNamedItem("id").getNodeValue();
31		this.name = (String) attributes.getNamedItem("name").getNodeValue();
32		this.fileName = (String) attributes.getNamedItem("fileName").getNodeValue();
33
34	}
35
36	/**
37	 * Gets the id.
38	 * @return Returns a String
39	 */
40	public String getId() {
41		return id;
42	}
43
44	public String getName() {
45		return name;
46	}
47
48	public String getFileName() {
49		return fileName;
50	}
51
52	public void registerError() {
53		this.hasErrors = true;
54	}
55
56	public boolean hasErrors() {
57		return this.hasErrors;
58	}
59}
60