KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmanage > core > data > ApplicationConfigData


1 /**
2  * Copyright 2004-2005 jManage.org
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.jmanage.core.data;
17
18 import java.io.Serializable JavaDoc;
19 import java.util.List JavaDoc;
20 import java.util.Map JavaDoc;
21
22 /**
23  *
24  * date: Jan 9, 2005
25  * @author Rakesh Kalra
26  */

27 public class ApplicationConfigData implements Serializable JavaDoc {
28
29     private String JavaDoc appId;
30     private String JavaDoc name;
31     private String JavaDoc host;
32     private Integer JavaDoc port;
33     private String JavaDoc url;
34     private String JavaDoc username;
35     private String JavaDoc password;
36     private String JavaDoc type;
37     private boolean isCluster;
38     private List JavaDoc childApplications;
39     protected Map JavaDoc paramValues;
40
41     public String JavaDoc getApplicationId() {
42         return appId;
43     }
44
45     public void setApplicationId(String JavaDoc appId) {
46         this.appId = appId;
47     }
48
49     public String JavaDoc getName() {
50         return name;
51     }
52
53     public void setName(String JavaDoc name) {
54         this.name = name;
55     }
56
57     public String JavaDoc getHost() {
58         return host;
59     }
60
61     public void setHost(String JavaDoc host) {
62         this.host = host;
63     }
64
65     public Integer JavaDoc getPort() {
66         return port;
67     }
68
69     public void setPort(Integer JavaDoc port) {
70         this.port = port;
71     }
72
73     public String JavaDoc getURL() {
74         return url;
75     }
76
77     public void setURL(String JavaDoc url) {
78         this.url = url;
79     }
80
81     public String JavaDoc getUsername() {
82         return username;
83     }
84
85     public void setUsername(String JavaDoc username) {
86         this.username = username;
87     }
88
89     public String JavaDoc getPassword() {
90         return password;
91     }
92
93     public void setPassword(String JavaDoc password) {
94         this.password = password;
95     }
96
97     public String JavaDoc getType() {
98         return type;
99     }
100
101     public void setType(String JavaDoc type) {
102         this.type = type;
103     }
104
105     public Map JavaDoc getParamValues(){
106         return paramValues;
107     }
108
109     public void setParamValues(Map JavaDoc paramValues){
110         this.paramValues = paramValues;
111     }
112
113     public void setCluster(boolean isCluster){
114         this.isCluster = isCluster;
115     }
116
117     /**
118      * @return true: if its a application cluster; false: otherwise
119      */

120     public boolean isCluster(){
121         return isCluster;
122     }
123
124     public List JavaDoc getChildApplications() {
125         return childApplications;
126     }
127
128     public void setChildApplications(List JavaDoc childApplications) {
129         assert isCluster;
130         this.childApplications = childApplications;
131     }
132 }
133
Popular Tags