001: /*
002: * This file is part of PFIXCORE.
003: *
004: * PFIXCORE is free software; you can redistribute it and/or modify
005: * it under the terms of the GNU Lesser General Public License as published by
006: * the Free Software Foundation; either version 2 of the License, or
007: * (at your option) any later version.
008: *
009: * PFIXCORE is distributed in the hope that it will be useful,
010: * but WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012: * GNU Lesser General Public License for more details.
013: *
014: * You should have received a copy of the GNU Lesser General Public License
015: * along with PFIXCORE; if not, write to the Free Software
016: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
017: *
018: */
019:
020: package de.schlund.pfixcore.util.basicapp.objects;
021:
022: import java.util.ArrayList;
023:
024: import org.apache.log4j.Logger;
025:
026: /**
027: * This class represents all informations for
028: * a new project
029: *
030: * @author <a href="mailto:rapude@schlund.de">Ralf Rapude</a>
031: * @version $Id: Project.java 3367 2008-02-21 13:53:07Z smarsching $
032: */
033:
034: public final class Project {
035: private static final Logger LOG = Logger.getLogger(Project.class);
036:
037: /** A String for the projectname */
038: private String projectName = null;
039: /** A String for the language */
040: private String language = null;
041: /** A String project comment */
042: private String comment = null;
043: /** A static field for the projectname */
044: private static String PRJNAME = null;
045:
046: /**
047: * An ArrayList containing the servlet properties.
048: * @see de.schlund.pfixcore.util.basicapp.objects.ServletObject
049: */
050: private ArrayList<ServletObject> servletList = new ArrayList<ServletObject>();
051:
052: // --> Start getter and setter
053: /**
054: * @return Returns the language.
055: */
056: public String getLanguage() {
057: return language;
058: }
059:
060: /**
061: * @param language The language to set.
062: */
063: public void setLanguage(String language) {
064: LOG.debug("Setting default language: " + language);
065: this .language = language;
066: }
067:
068: /**
069: * @return Returns the projectName.
070: */
071: public String getProjectName() {
072: return projectName;
073: }
074:
075: /** A getter for the static variable */
076: public static String getStaticPrjName() {
077: return PRJNAME;
078: }
079:
080: /**
081: * @param projectName The projectName to set.
082: */
083: public void setProjectName(String projectName) {
084: LOG.debug("Setting the projectname: " + projectName);
085: this .projectName = projectName;
086: PRJNAME = projectName;
087: }
088:
089: /**
090: * @return Returns the servletList.
091: */
092: public ArrayList<ServletObject> getServletList() {
093: return servletList;
094: }
095:
096: /**
097: * @return Returns the comment.
098: */
099: public String getComment() {
100: return comment;
101: }
102:
103: /**
104: * @param comment The comment to set.
105: */
106: public void setComment(String comment) {
107: this .comment = comment;
108: }
109:
110: /**
111: * @param servletList The servletList to set.
112: */
113: public void setServletList(ArrayList<ServletObject> servletList) {
114: this .servletList = servletList;
115: } //<-- End getter and setter
116: }
|