KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > jmx > export > metadata > ManagedOperationParameter


1 /*
2  * Copyright 2002-2005 the original author or authors.
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.springframework.jmx.export.metadata;
18
19 /**
20  * Metadata about JMX operation parameters.
21  * Used in conjuction with a ManagedOperation attribute.
22  *
23  * @author Rob Harrop
24  * @since 1.2
25  * @see ManagedOperation
26  */

27 public class ManagedOperationParameter {
28
29     private int index = 0;
30
31     private String JavaDoc name = "";
32
33     private String JavaDoc description = "";
34
35
36     /**
37      * Set the index of the parameter in the operation signature.
38      */

39     public void setIndex(int index) {
40         this.index = index;
41     }
42
43     /**
44      * Return the index of the parameter in the operation signature.
45      */

46     public int getIndex() {
47         return index;
48     }
49
50     /**
51      * Set the name of the parameter in the operation signature.
52      */

53     public void setName(String JavaDoc name) {
54         this.name = name;
55     }
56
57     /**
58      * Return the name of the parameter in the operation signature.
59      */

60     public String JavaDoc getName() {
61         return this.name;
62     }
63
64     public void setDescription(String JavaDoc description) {
65         this.description = description;
66     }
67
68     public String JavaDoc getDescription() {
69         return description;
70     }
71
72 }
73
Popular Tags