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.OverviewDoc; 22 import org.apache.juddi.datatype.RegistryObject; 23 24 32 public class InstanceDetails implements RegistryObject 33 { 34 Vector descVector; 38 39 OverviewDoc overviewDoc; 42 43 String instanceParms; 51 52 55 public InstanceDetails() 56 { 57 } 58 59 66 public void addDescription(Description desc) 67 { 68 if (this.descVector == null) 69 this.descVector = new Vector (); 70 this.descVector.add(desc); 71 } 72 73 79 public void setDescriptionVector(Vector descs) 80 { 81 this.descVector = descs; 82 } 83 84 89 public Vector getDescriptionVector() 90 { 91 return this.descVector; 92 } 93 94 101 public void setOverviewDoc(OverviewDoc doc) 102 { 103 this.overviewDoc = doc; 104 } 105 106 112 public OverviewDoc getOverviewDoc() 113 { 114 return this.overviewDoc; 115 } 116 117 124 public void setInstanceParms(String parms) 125 { 126 this.instanceParms = parms; 127 } 128 129 136 public void setInstanceParms(InstanceParms parms) 137 { 138 if ((parms != null) && (parms.getValue() != null)) 139 setInstanceParms(parms.getValue()); 140 } 141 142 149 public InstanceParms getInstanceParms() 150 { 151 if (this.instanceParms != null) 152 return new InstanceParms(this.instanceParms); 153 else 154 return null; 155 } 156 157 164 public String getInstanceParmsString() 165 { 166 return this.instanceParms; 167 } 168 } | Popular Tags |