KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > legacy > ComponentNotNull


1 //$Id: ComponentNotNull.java,v 1.1 2004/09/26 05:18:25 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4 /**
5  * Component used to check not-null sub properties management
6  *
7  * @author Emmanuel Bernard
8  */

9 public class ComponentNotNull {
10     /*
11      * I've flatten several components in one class, this is kind of ugly but
12      * I don't have to write tons of classes
13      */

14     private String JavaDoc prop1Nullable;
15     private String JavaDoc prop2Nullable;
16     private ComponentNotNull supercomp;
17     private ComponentNotNull subcomp;
18     private String JavaDoc prop1Subcomp;
19
20     /**
21      * @return
22      */

23     public String JavaDoc getProp1Nullable() {
24         return prop1Nullable;
25     }
26
27     /**
28      * @return
29      */

30     public String JavaDoc getProp1Subcomp() {
31         return prop1Subcomp;
32     }
33
34     /**
35      * @return
36      */

37     public String JavaDoc getProp2Nullable() {
38         return prop2Nullable;
39     }
40
41     /**
42      * @return
43      */

44     public ComponentNotNull getSubcomp() {
45         return subcomp;
46     }
47
48     /**
49      * @return
50      */

51     public ComponentNotNull getSupercomp() {
52         return supercomp;
53     }
54
55     /**
56      * @param string
57      */

58     public void setProp1Nullable(String JavaDoc string) {
59         prop1Nullable = string;
60     }
61
62     /**
63      * @param string
64      */

65     public void setProp1Subcomp(String JavaDoc string) {
66         prop1Subcomp = string;
67     }
68
69     /**
70      * @param string
71      */

72     public void setProp2Nullable(String JavaDoc string) {
73         prop2Nullable = string;
74     }
75
76     /**
77      * @param null1
78      */

79     public void setSubcomp(ComponentNotNull null1) {
80         subcomp = null1;
81     }
82
83     /**
84      * @param null1
85      */

86     public void setSupercomp(ComponentNotNull null1) {
87         supercomp = null1;
88     }
89
90 }
91
Popular Tags