KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > usermanager > UserProperty


1 package org.jahia.services.usermanager;
2
3 import java.io.Serializable JavaDoc;
4
5 public class UserProperty implements Serializable JavaDoc {
6     private String JavaDoc name;
7     private String JavaDoc value;
8     private boolean readOnly;
9     public UserProperty () {
10     }
11
12     public UserProperty(String JavaDoc name, String JavaDoc value, boolean readOnly) {
13         this.name = name;
14         this.value = value;
15         this.readOnly = readOnly;
16     }
17
18     protected UserProperty(UserProperty copy) {
19         this.name = copy.name;
20         this.value = copy.value;
21         this.readOnly = copy.readOnly;
22     }
23
24     public Object JavaDoc clone() {
25         return new UserProperty(this);
26     }
27
28     public void setValue (String JavaDoc value) {
29         this.value = value;
30     }
31
32     public String JavaDoc getName () {
33         return name;
34     }
35
36     public String JavaDoc getValue () {
37         return value;
38     }
39
40     public boolean isReadOnly () {
41         return readOnly;
42     }
43
44 }
45
Popular Tags