KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > pluto > om > common > ResourceRef


1 /*
2  * Copyright 2003-2005 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 package org.apache.cocoon.portal.pluto.om.common;
17
18 /**
19  *
20  * @version $Id: ResourceRef.java 326883 2005-10-20 11:01:21Z cziegeler $
21  */

22 public class ResourceRef {
23
24     private String JavaDoc description = "my description";
25     private String JavaDoc name = "name";
26     private String JavaDoc type = "type";
27     private String JavaDoc auth = "container";
28     private String JavaDoc sharing = "shareable";
29
30     /**
31      * @return description of the resource reference.
32      */

33     public String JavaDoc getDescription() {
34         return description;
35     }
36
37     /**
38      * @return name of the reference.
39      */

40     public String JavaDoc getName() {
41         return name;
42     }
43
44     /**
45      * Retrieve the type of resource referenced by this
46      * resource reference.
47      * @return the resource type.
48      */

49     public String JavaDoc getType() {
50         return type;
51     }
52
53     /**
54      *
55      * @return the authorization type of the resource.
56      */

57     public String JavaDoc getAuth() {
58         return auth;
59     }
60
61     public String JavaDoc getSharing() {
62         return sharing;
63     }
64
65     /**
66      * @param string the resource reference description.
67      */

68     public void setDescription(String JavaDoc string) {
69         description = string;
70     }
71
72     /**
73      * @param string the name of the resource reference
74      */

75     public void setName(String JavaDoc string) {
76         name = string;
77     }
78
79     public void setType(String JavaDoc string) {
80         type = string;
81     }
82
83     public void setAuth(String JavaDoc string) {
84         auth = string;
85     }
86
87     public void setSharing(String JavaDoc string) {
88         sharing = string;
89     }
90 }
91
Popular Tags