KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > core > ProjectInfo


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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  *******************************************************************************/

11 package org.eclipse.ant.core;
12
13
14 /**
15  * Represents information about a project within an Ant build file.
16  * Clients may not instantiate or subclass this class.
17  * @since 2.1
18  */

19
20 public class ProjectInfo {
21
22     private String JavaDoc name = null;
23     private String JavaDoc description = null;
24
25     /**
26      * Create a project information
27      *
28      * @param name project name
29      * @param description a brief explanation of the project's purpose or
30      * <code>null</code> if not specified
31      */

32     /*package*/
33     ProjectInfo(String JavaDoc name, String JavaDoc description) {
34         this.name = name == null ? "" : name; //$NON-NLS-1$
35
this.description = description;
36     }
37
38     /**
39      * Returns the project name.
40      *
41      * @return the project name
42      */

43     public String JavaDoc getName() {
44         return name;
45     }
46
47     /**
48      * Returns the project description or <code>null</code> if no
49      * description is provided.
50      *
51      * @return the project description or <code>null</code> if none
52      */

53     public String JavaDoc getDescription() {
54         return description;
55     }
56 }
57
Popular Tags