KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nextime > ion > frontoffice > bean > PropertyBean


1 /*
2  * ĻON content management system.
3  * Copyright (C) 2002 Guillaume Bort(gbort@msn.com). All rights reserved.
4  *
5  * Copyright (c) 2000 The Apache Software Foundation. All rights reserved.
6  * Copyright 2000-2002 (C) Intalio Inc. All Rights Reserved.
7  *
8  * ĻON is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * ĻON core framework, ĻON content server, ĻON backoffice, ĻON frontoffice
14  * and ĻON admin application are parts of ĻON and are distributed under
15  * same terms of licence.
16  *
17  *
18  * ĻON includes software developed by the Apache Software Foundation (http://www.apache.org/)
19  * and software developed by the Exolab Project (http://www.exolab.org).
20  *
21  * ĻON is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24  * GNU General Public License for more details.
25  */

26
27 package org.nextime.ion.frontoffice.bean;
28
29 public class PropertyBean {
30
31     private String JavaDoc label;
32     private String JavaDoc name;
33     private String JavaDoc regexp;
34     private String JavaDoc type;
35     private String JavaDoc errorMessage;
36     private String JavaDoc required;
37     
38     public void setSectionType( TypeBean type ) {
39         type.addProperty(this);
40     }
41     
42     /**
43      * Returns the errorMessage.
44      * @return String
45      */

46     public String JavaDoc getErrorMessage() {
47         return errorMessage;
48     }
49
50
51     /**
52      * Returns the label.
53      * @return String
54      */

55     public String JavaDoc getLabel() {
56         return label;
57     }
58
59
60     /**
61      * Returns the name.
62      * @return String
63      */

64     public String JavaDoc getName() {
65         return name;
66     }
67
68
69     /**
70      * Returns the regexp.
71      * @return String
72      */

73     public String JavaDoc getRegexp() {
74         return regexp;
75     }
76
77
78     /**
79      * Returns the required.
80      * @return String
81      */

82     public String JavaDoc getRequired() {
83         return required;
84     }
85
86
87     /**
88      * Returns the type.
89      * @return String
90      */

91     public String JavaDoc getType() {
92         return type;
93     }
94
95
96     /**
97      * Sets the errorMessage.
98      * @param errorMessage The errorMessage to set
99      */

100     public void setErrorMessage(String JavaDoc errorMessage) {
101         this.errorMessage = errorMessage;
102     }
103
104
105     /**
106      * Sets the label.
107      * @param label The label to set
108      */

109     public void setLabel(String JavaDoc label) {
110         this.label = label;
111     }
112
113
114     /**
115      * Sets the name.
116      * @param name The name to set
117      */

118     public void setName(String JavaDoc name) {
119         this.name = name;
120     }
121
122
123     /**
124      * Sets the regexp.
125      * @param regexp The regexp to set
126      */

127     public void setRegexp(String JavaDoc regexp) {
128         this.regexp = regexp;
129     }
130
131
132     /**
133      * Sets the required.
134      * @param required The required to set
135      */

136     public void setRequired(String JavaDoc required) {
137         this.required = required;
138     }
139
140
141     /**
142      * Sets the type.
143      * @param type The type to set
144      */

145     public void setType(String JavaDoc type) {
146         this.type = type;
147     }
148
149
150 }
151
Popular Tags