KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > config > serverbeans > validation > GenericDesc


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.config.serverbeans.validation;
25
26
27 import com.sun.enterprise.config.ConfigContextEvent;
28 import com.sun.enterprise.config.ConfigContext;
29 import com.sun.enterprise.config.ConfigBean;
30
31 // Logging
32
import com.sun.enterprise.util.LocalStringManagerImpl;
33
34
35 public class GenericDesc {
36     Result result;
37     Object JavaDoc value;
38     String JavaDoc beanName;
39     ConfigContext context;
40     String JavaDoc name;
41     String JavaDoc choice;
42     LocalStringManagerImpl smh;
43     String JavaDoc attrName;
44     String JavaDoc primaryKeyName;
45
46     public GenericDesc(Result result, Object JavaDoc value, String JavaDoc beanName, ConfigContext context, String JavaDoc name, String JavaDoc choice, String JavaDoc primaryKeyName,LocalStringManagerImpl smh) {
47         this.result = result;
48         this.value = value;
49         this.beanName = beanName;
50         this.context = context;
51         this.name = name;
52         this.choice = choice;
53         this.smh = smh;
54         this.primaryKeyName = primaryKeyName;
55         attrName = null;
56     }
57     
58     public void setAttrName(String JavaDoc name) {
59         attrName = name;
60     }
61     
62     public String JavaDoc getPrimaryKeyName() {
63         return primaryKeyName;
64     }
65 }
Popular Tags