001// Copyright 2005-2006 Ferdinand Prantl <prantl@users.sourceforge.net> 002// Copyright 2001-2004 The Apache Software Foundation 003// All rights reserved. 004// 005// Licensed under the Apache License, Version 2.0 (the "License"); 006// you may not use this file except in compliance with the License. 007// You may obtain a copy of the License at 008// 009// http://www.apache.org/licenses/LICENSE-2.0 010// 011// Unless required by applicable law or agreed to in writing, software 012// distributed under the License is distributed on an "AS IS" BASIS, 013// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014// See the License for the specific language governing permissions and 015// limitations under the License. 016// 017// See http://ant-eclipse.sourceforge.net for the most recent version 018// and more information. 019 020package prantl.ant.eclipse; 021 022/** 023 * Configures contents of the file .project with the name of the project, this class 024 * specifically the root element <tt>project</tt>. 025 * 026 * @since Ant-Eclipse 1.0 027 * @author Ferdinand Prantl <prantl@users.sourceforge.net> 028 */ 029public class ProjectElement { 030 031 private String name = null; 032 033 /** 034 * Creates a new instance of the project element. 035 * 036 * @since Ant-Eclipse 1.0 037 */ 038 public ProjectElement() { 039 } 040 041 /** 042 * Returns the name of the Eclipse project or <tt>null</tt> if it has not been set 043 * and the default shoud be used. 044 * 045 * @return The name of the Eclipse project or <tt>null</tt> if not having been set. 046 */ 047 public String getName() { 048 return name; 049 } 050 051 /** 052 * Sets the name of the Eclipse project. The name of the ant build project will be 053 * used by default if not set here. 054 * 055 * @param value 056 * A valid name of the Eclipse project. 057 * @since Ant-Eclipse 1.0 058 */ 059 public void setName(String value) { 060 name = value; 061 } 062 063}