QpidFeature.java
01 /*
02  *
03  * Licensed to the Apache Software Foundation (ASF) under one
04  * or more contributor license agreements.  See the NOTICE file
05  * distributed with this work for additional information
06  * regarding copyright ownership.  The ASF licenses this file
07  * to you under the Apache License, Version 2.0 (the
08  * "License"); you may not use this file except in compliance
09  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  */
21 package org.apache.qpid.management.domain.model;
22 
23 /**
24  * Layer Supertype for all qpid management features.
25  */
26 abstract class QpidFeature
27 {    
28     /** The name of the feature. */
29     protected String _name;
30     
31     /**
32      * The description of the feature.
33      */
34     protected String _description;
35     
36     /**
37      * Returns the description of this feature.
38      
39      @return the description of this feature.
40      */
41     String getDescription ()
42     {
43         return _description;
44     }
45     
46     /**
47      * Sets the description for this feature.
48      
49      @param description the description for this feature.
50      */
51     void setDescription (String description)
52     {
53         this._description = description;
54     }
55     
56     /**
57      * Returns the name of the feature.
58      
59      @return the name of the feature.
60      */
61     public String getName ()
62     {
63         return _name;
64     }
65 
66     /**
67      * Sets the name for this feature.
68      
69      @param name the name of this feature.
70      */
71     void setName (String name)
72     {
73         this._name = name;
74     }  
75     
76     /**
77      * Returns the name of the feature.
78      
79      @return the name of the feature.
80      */
81     @Override
82     public String toString ()
83     {
84         return _name;
85     }
86 }