1 16 package org.apache.juddi.datatype.response; 17 18 import org.apache.juddi.datatype.Name; 19 import org.apache.juddi.datatype.RegistryObject; 20 21 24 public class PublisherInfo implements RegistryObject 25 { 26 String publisherID; 27 String nameValue; 28 29 32 public PublisherInfo() 33 { 34 } 35 36 39 public PublisherInfo(String pubID) 40 { 41 this.publisherID = pubID; 42 } 43 44 47 public PublisherInfo(String pubID,String name) 48 { 49 this.publisherID = pubID; 50 this.nameValue = name; 51 } 52 53 56 public void setPublisherID(String pubID) 57 { 58 this.publisherID = pubID; 59 } 60 61 64 public String getPublisherID() 65 { 66 return publisherID; 67 } 68 69 72 public void setNameValue(String nameValue) 73 { 74 this.nameValue = nameValue; 75 } 76 77 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 93 public String getNameValue() 94 { 95 return nameValue; 96 } 97 98 101 public Name getName() 102 { 103 if (this.nameValue != null) 104 return new Name(nameValue); 105 else 106 return null; 107 } 108 } | Popular Tags |