1 16 package org.apache.juddi.datatype.binding; 17 18 import java.util.Vector ; 19 20 import org.apache.juddi.datatype.Description; 21 import org.apache.juddi.datatype.RegistryObject; 22 import org.apache.juddi.datatype.TModelKey; 23 24 37 public class TModelInstanceInfo implements RegistryObject 38 { 39 String tModelKey; 43 44 Vector descVector; 48 49 InstanceDetails instanceDetails; 55 56 59 public TModelInstanceInfo() 60 { 61 } 62 63 66 public TModelInstanceInfo(String key) 67 { 68 this.tModelKey = key; 69 } 70 71 77 public void setTModelKey(TModelKey key) 78 { 79 if ((key != null) && (key.getValue() != null)) 80 this.tModelKey = key.getValue(); 81 } 82 83 89 public void setTModelKey(String key) 90 { 91 this.tModelKey = key; 92 } 93 94 99 public String getTModelKey() 100 { 101 return this.tModelKey; 102 } 103 104 109 public void addDescription(Description desc) 110 { 111 if (this.descVector == null) 112 this.descVector = new Vector (); 113 this.descVector.add(desc); 114 } 115 116 121 public void setDescriptionVector(Vector descs) 122 { 123 this.descVector = descs; 124 } 125 126 132 public Vector getDescriptionVector() 133 { 134 return this.descVector; 135 } 136 137 144 public void setInstanceDetails(InstanceDetails details) 145 { 146 this.instanceDetails = details; 147 } 148 149 155 public InstanceDetails getInstanceDetails() 156 { 157 return this.instanceDetails; 158 } 159 } | Popular Tags |