View Javadoc

1   /*
2    * Copyright 2001-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  package org.apache.juddi.datatype.response;
17  
18  import org.apache.juddi.datatype.RegistryObject;
19  
20  
21  /***
22   * @author Steve Viens (sviens@apache.org)
23   */
24  public class Property implements RegistryObject
25  {
26    String name;
27    String value;
28  
29    /***
30     * Constructs a new initialized Property instance.
31     */
32    public Property()
33    {
34    }
35  
36    /***
37     * Constructs a new Property with the given data.
38     *
39     * @param name The property name/key.
40     * @param value The property data/value.
41     */
42    public Property(String name,String value)
43    {
44      this.name = name;
45      this.value = value;
46    }
47  
48    /***
49     * Sets the name of this property.
50     *
51     * @param name The name of this property.
52     */
53    public void setName(String name)
54    {
55      this.name = name;
56    }
57  
58    /***
59     * Returns the name/key of the property.
60     *
61     * @return The name of the property.
62     */
63    public String getName()
64    {
65      return this.name;
66    }
67  
68    /***
69     * Sets the value of this property.
70     *
71     * @param value The value of this property
72     */
73    public void setValue(String value)
74    {
75      this.value = value;
76    }
77  
78    /***
79     * Returns the value of this property.
80     *
81     * @return The value of this property.
82     */
83    public String getValue()
84    {
85      return this.value;
86    }
87  }