KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > model > config > ModelMapping


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

15
16 package com.jdon.model.config;
17
18 import com.jdon.model.handler.HandlerMetaDef;
19
20 /**
21  * Model meta mapping of xml configuration: jdonframework.xml
22  *
23  * @author banq
24  *
25  */

26 public class ModelMapping implements java.io.Serializable JavaDoc {
27
28     private String JavaDoc formName; //actionForm Name
29

30     private String JavaDoc keyName; //ID
31

32     private Class JavaDoc keyClassType; //ID class type
33

34     private String JavaDoc className; //Model Class Name
35

36     private String JavaDoc handler; //ModelHandle
37

38     private HandlerMetaDef handlerMetaDef; //ModelHandle's configuration implemention
39

40     public String JavaDoc getFormName() {
41         return formName;
42     }
43
44     public void setFormName(String JavaDoc formName) {
45         this.formName = formName;
46     }
47
48     public String JavaDoc getKeyName() {
49         return keyName;
50     }
51
52     public void setKeyName(String JavaDoc keyName) {
53         this.keyName = keyName;
54     }
55
56     public String JavaDoc getClassName() {
57         return className;
58     }
59
60     public void setClassName(String JavaDoc className) {
61         this.className = className;
62     }
63
64     public String JavaDoc getHandler() {
65         return handler;
66     }
67
68     public HandlerMetaDef getHandlerMetaDef() {
69         return handlerMetaDef;
70     }
71
72     public void setHandler(String JavaDoc handler) {
73         this.handler = handler;
74     }
75
76     public void setHandlerMetaDef(HandlerMetaDef handlerMetaDef) {
77         this.handlerMetaDef = handlerMetaDef;
78     }
79
80     public Class JavaDoc getKeyClassType() {
81         return keyClassType;
82     }
83
84     public void setKeyClassType(Class JavaDoc keyClassType) {
85         this.keyClassType = keyClassType;
86     }
87     
88     
89
90 }
91
Popular Tags