1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }