KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cayenne > project > ProjectConfigInfo


1 /*****************************************************************
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  ****************************************************************/

19
20 package org.apache.cayenne.project;
21
22 import java.io.File JavaDoc;
23 import java.util.ArrayList JavaDoc;
24 import java.util.List JavaDoc;
25
26 /**
27  * Stores project information necessary to reconfigure existing projects.
28  *
29  * @author Andrus Adamchik
30  */

31 public class ProjectConfigInfo {
32     protected File JavaDoc sourceJar;
33     protected File JavaDoc destJar;
34     protected File JavaDoc altProjectFile;
35     protected List JavaDoc nodes = new ArrayList JavaDoc();
36
37     public void addToNodes(DataNodeConfigInfo nodeInfo) {
38         nodes.add(nodeInfo);
39     }
40     
41     /**
42      * Returns the altProjectFile.
43      * @return File
44      */

45     public File JavaDoc getAltProjectFile() {
46         return altProjectFile;
47     }
48
49     /**
50      * Returns the destJar.
51      * @return File
52      */

53     public File JavaDoc getDestJar() {
54         return destJar;
55     }
56
57     /**
58      * Returns the nodes.
59      * @return List
60      */

61     public List JavaDoc getNodes() {
62         return nodes;
63     }
64
65     /**
66      * Returns the sourceJar.
67      * @return File
68      */

69     public File JavaDoc getSourceJar() {
70         return sourceJar;
71     }
72
73     /**
74      * Sets the altProjectFile.
75      * @param altProjectFile The altProjectFile to set
76      */

77     public void setAltProjectFile(File JavaDoc altProjectFile) {
78         this.altProjectFile = altProjectFile;
79     }
80
81     /**
82      * Sets the destJar.
83      * @param destJar The destJar to set
84      */

85     public void setDestJar(File JavaDoc destJar) {
86         this.destJar = destJar;
87     }
88
89     /**
90      * Sets the nodes.
91      * @param nodes The nodes to set
92      */

93     public void setNodes(List JavaDoc nodes) {
94         this.nodes = nodes;
95     }
96
97     /**
98      * Sets the sourceJar.
99      * @param sourceJar The sourceJar to set
100      */

101     public void setSourceJar(File JavaDoc sourceJar) {
102         this.sourceJar = sourceJar;
103     }
104 }
105
Popular Tags