KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > directory > ldapstudio > apacheds > configuration > editor > AttributeValueObject


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  *
19  */

20 package org.apache.directory.ldapstudio.apacheds.configuration.editor;
21
22
23 /**
24  * This class implements an Attribute Value Object that is used in the PartitionDetailsPage.
25  *
26  * @author <a HREF="mailto:dev@directory.apache.org">Apache Directory Project</a>
27  * @version $Rev$, $Date$
28  */

29 public class AttributeValueObject
30 {
31     /** The attribute */
32     private String JavaDoc attribute;
33
34     /** The value */
35     private Object JavaDoc value;
36
37
38     /**
39      * Creates a new instance of AttributeValueObject.
40      *
41      * @param attribute
42      * the attribute
43      * @param value
44      * the value
45      */

46     public AttributeValueObject( String JavaDoc attribute, Object JavaDoc value )
47     {
48         this.attribute = attribute;
49         this.value = value;
50     }
51
52
53     /**
54      * Gets the attribute.
55      *
56      * @return
57      * the attribute.
58      */

59     public String JavaDoc getAttribute()
60     {
61         return attribute;
62     }
63
64
65     /**
66      * Sets the attribute.
67      *
68      * @param attribute
69      * the new attribute
70      */

71     public void setId( String JavaDoc attribute )
72     {
73         this.attribute = attribute;
74     }
75
76
77     /**
78      * Gets the value.
79      *
80      * @return
81      * the value
82      */

83     public Object JavaDoc getValue()
84     {
85         return value;
86     }
87
88
89     /**
90      * Sets the value.
91      *
92      * @param value
93      * the new value
94      */

95     public void setValue( Object JavaDoc value )
96     {
97         this.value = value;
98     }
99
100
101     /* (non-Javadoc)
102      * @see java.lang.Object#toString()
103      */

104     public String JavaDoc toString()
105     {
106         return "Attribute=\"" + attribute + "\", Value=\"" + value + "\"";
107     }
108 }
109
Popular Tags