KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jetspeed > om > profile > psml > PsmlMetaInfo


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

16
17 package org.apache.jetspeed.om.profile.psml;
18
19 import org.apache.jetspeed.om.profile.*;
20
21 /**
22  * Bean like implementation of a meta-info repository
23  *
24  * @author <a HREF="mailto:raphael@apache.org">Raphaël Luta</a>
25  * @version $Id: PsmlMetaInfo.java,v 1.4 2004/02/23 03:02:54 jford Exp $
26  */

27 public class PsmlMetaInfo implements MetaInfo
28 {
29     private String JavaDoc title = null;
30      
31     private String JavaDoc description = null;
32          
33     private String JavaDoc image = null;
34
35     /** @return the title for this entry */
36     public String JavaDoc getTitle()
37     {
38         return this.title;
39     }
40                     
41     /** Sets the title for this entry
42      * @param title the new title for this entry
43      */

44     public void setTitle( String JavaDoc title )
45     {
46         this.title = title;
47     }
48     
49     /** @return the description for this entry */
50     public String JavaDoc getDescription()
51     {
52         return this.description;
53     }
54                                 
55     /** Sets the description for this entry
56      * @param description the new description for this entry
57      */

58     public void setDescription( String JavaDoc description )
59     {
60         this.description = description;
61     }
62     
63     /** @return the image link for this entry */
64     public String JavaDoc getImage()
65     {
66         return this.image;
67     }
68                                 
69     /** Sets the image URL attached to this entry
70      * @param image the image URL to link to this entry
71      */

72     public void setImage( String JavaDoc image )
73     {
74         this.image = image;
75     }
76     
77     /**
78      * Create a clone of this object
79      */

80     public Object JavaDoc clone()
81         throws java.lang.CloneNotSupportedException JavaDoc
82     {
83         Object JavaDoc cloned = super.clone();
84         return cloned;
85
86     } // clone
87
}
88
Popular Tags