KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > dictionary > M2Property


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.repo.dictionary;
18
19
20 /**
21  * Property Definition
22  *
23  * @author David Caruana
24  *
25  */

26 public class M2Property
27 {
28     private String JavaDoc name = null;
29     private String JavaDoc title = null;
30     private String JavaDoc description = null;
31     private String JavaDoc propertyType = null;
32     private boolean isProtected = false;
33     private boolean isMandatory = false;
34     private boolean isMultiValued = false;
35     private String JavaDoc defaultValue = null;
36     private boolean isIndexed = true;
37     private boolean isIndexedAtomically = true;
38     private boolean isStoredInIndex = false;
39     private boolean isTokenisedInIndex = true;
40     
41
42     /*package*/ M2Property()
43     {
44     }
45
46     
47     /*package*/ M2Property(String JavaDoc name)
48     {
49         this.name = name;
50     }
51     
52     
53     public String JavaDoc getName()
54     {
55         return name;
56     }
57
58     
59     public void setName(String JavaDoc name)
60     {
61         this.name = name;
62     }
63
64     
65     public String JavaDoc getTitle()
66     {
67         return title;
68     }
69     
70     
71     public void setTitle(String JavaDoc title)
72     {
73         this.title = title;
74     }
75
76     
77     public String JavaDoc getDescription()
78     {
79         return description;
80     }
81     
82     
83     public void setDescription(String JavaDoc description)
84     {
85         this.description = description;
86     }
87     
88     
89     public String JavaDoc getType()
90     {
91         return propertyType;
92     }
93     
94     
95     public void setType(String JavaDoc type)
96     {
97         this.propertyType = type;
98     }
99     
100     
101     public boolean isProtected()
102     {
103         return isProtected;
104     }
105     
106     
107     public void setProtected(boolean isProtected)
108     {
109         this.isProtected = isProtected;
110     }
111     
112     
113     public boolean isMandatory()
114     {
115         return isMandatory;
116     }
117     
118     
119     public void setMandatory(boolean isMandatory)
120     {
121         this.isMandatory = isMandatory;
122     }
123     
124     
125     public boolean isMultiValued()
126     {
127         return isMultiValued;
128     }
129     
130     
131     public void setMultiValued(boolean isMultiValued)
132     {
133         this.isMultiValued = isMultiValued;
134     }
135     
136     
137     public String JavaDoc getDefaultValue()
138     {
139         return defaultValue;
140     }
141     
142     
143     public void setDefaultValue(String JavaDoc defaultValue)
144     {
145         this.defaultValue = defaultValue;
146     }
147     
148     
149     public boolean isIndexed()
150     {
151         return isIndexed;
152     }
153     
154     
155     public void setIndexed(boolean isIndexed)
156     {
157         this.isIndexed = isIndexed;
158     }
159     
160     
161     public boolean isStoredInIndex()
162     {
163         return isStoredInIndex;
164     }
165     
166     
167     public void setStoredInIndex(boolean isStoredInIndex)
168     {
169         this.isStoredInIndex = isStoredInIndex;
170     }
171
172     
173     public boolean isIndexedAtomically()
174     {
175         return isIndexedAtomically;
176     }
177     
178     
179     public void setIndexedAtomically(boolean isIndexedAtomically)
180     {
181         this.isIndexedAtomically = isIndexedAtomically;
182     }
183     
184
185     public boolean isTokenisedInIndex()
186     {
187         return isTokenisedInIndex;
188     }
189     
190     
191     public void setTokenisedInIndex(boolean isTokenisedInIndex)
192     {
193         this.isTokenisedInIndex = isTokenisedInIndex;
194     }
195     
196 }
197
Popular Tags