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.Name;
19 import org.apache.juddi.datatype.RegistryObject;
20
21 /***
22 * @author Steve Viens (sviens@apache.org)
23 */
24 public class PublisherInfo implements RegistryObject
25 {
26 String publisherID;
27 String nameValue;
28
29 /***
30 * default constructor
31 */
32 public PublisherInfo()
33 {
34 }
35
36 /***
37 *
38 */
39 public PublisherInfo(String pubID)
40 {
41 this.publisherID = pubID;
42 }
43
44 /***
45 *
46 */
47 public PublisherInfo(String pubID,String name)
48 {
49 this.publisherID = pubID;
50 this.nameValue = name;
51 }
52
53 /***
54 *
55 */
56 public void setPublisherID(String pubID)
57 {
58 this.publisherID = pubID;
59 }
60
61 /***
62 *
63 */
64 public String getPublisherID()
65 {
66 return publisherID;
67 }
68
69 /***
70 *
71 */
72 public void setNameValue(String nameValue)
73 {
74 this.nameValue = nameValue;
75 }
76
77 /***
78 * Sets the name of this tModel to the given name.
79 *
80 * @param name The new name of this tModel.
81 */
82 public void setName(Name name)
83 {
84 if (name != null)
85 this.nameValue = name.getValue();
86 else
87 this.nameValue = null;
88 }
89
90 /***
91 *
92 */
93 public String getNameValue()
94 {
95 return nameValue;
96 }
97
98 /***
99 *
100 */
101 public Name getName()
102 {
103 if (this.nameValue != null)
104 return new Name(nameValue);
105 else
106 return null;
107 }
108 }