View Javadoc

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 title = null;
30       
31      private String description = null;
32           
33      private String image = null;
34  
35      /*** @return the title for this entry */         
36      public String 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 title )
45      {
46          this.title = title;
47      }
48      
49      /*** @return the description for this entry */         
50      public String 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 description )
59      {
60          this.description = description;
61      }
62      
63      /*** @return the image link for this entry */         
64      public String 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 image )
73      {
74          this.image = image;
75      }
76      
77      /***
78       * Create a clone of this object
79       */
80      public Object clone()
81          throws java.lang.CloneNotSupportedException
82      {
83          Object cloned = super.clone();
84          return cloned;
85  
86      }   // clone
87  }