KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > pluto > portalImpl > om > servlet > impl > ResourceRef


1 /*
2  * Copyright 2003,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.pluto.portalImpl.om.servlet.impl;
18
19 public class ResourceRef {
20     
21     private String JavaDoc description = "my description";
22     private String JavaDoc name = "name";
23     private String JavaDoc type = "type";
24     private String JavaDoc auth = "container";
25     private String JavaDoc sharing = "shareable";
26     
27     /**
28      * @return description of the resource reference.
29      */

30     public String JavaDoc getDescription() {
31         return description;
32     }
33
34     /**
35      * @return name of the reference.
36      */

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

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

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

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

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