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 26 public class TModelInfo implements RegistryObject 27 { 28 String tModelKey; 29 String nameValue; 30 31 34 public TModelInfo() 35 { 36 } 37 38 41 public TModelInfo(String key,String name) 42 { 43 this.tModelKey = key; 44 this.nameValue = name; 45 } 46 47 50 public void setTModelKey(String key) 51 { 52 this.tModelKey = key; 53 } 54 55 58 public void setNameValue(String nameValue) 59 { 60 this.nameValue = nameValue; 61 } 62 63 68 public void setName(Name name) 69 { 70 if (name != null) 71 this.nameValue = name.getValue(); 72 else 73 this.nameValue = null; 74 } 75 76 79 public String getTModelKey() 80 { 81 return tModelKey; 82 } 83 84 87 public String getNameValue() 88 { 89 return nameValue; 90 } 91 92 95 public Name getName() 96 { 97 if (this.nameValue != null) 98 return new Name(nameValue); 99 else 100 return null; 101 } 102 } | Popular Tags |