1 16 package org.apache.juddi.datatype; 17 18 import java.util.Vector ; 19 20 26 public class OverviewDoc implements RegistryObject 27 { 28 Vector descVector; 29 String overviewURL; 30 31 34 public OverviewDoc() 35 { 36 } 37 38 43 public OverviewDoc(String url) 44 { 45 this.overviewURL = url; 46 } 47 48 53 public OverviewDoc(OverviewURL url) 54 { 55 setOverviewURL(url); 56 } 57 58 64 public void addDescription(Description desc) 65 { 66 if (this.descVector == null) 67 this.descVector = new Vector (); 68 this.descVector.add(desc); 69 } 70 71 77 public void setDescriptionVector(Vector descs) 78 { 79 this.descVector = descs; 80 } 81 82 87 public Vector getDescriptionVector() 88 { 89 return this.descVector; 90 } 91 92 97 public void setOverviewURL(OverviewURL url) 98 { 99 if ((url != null) && (url.getValue() != null)) 100 this.setOverviewURL(url.getValue()); 101 } 102 103 108 public void setOverviewURL(String url) 109 { 110 this.overviewURL = url; 111 } 112 113 119 public OverviewURL getOverviewURL() 120 { 121 if (this.overviewURL != null) 122 return new OverviewURL(this.overviewURL); 123 else 124 return null; 125 } 126 127 133 public String getOverviewURLString() 134 { 135 return this.overviewURL; 136 } 137 } | Popular Tags |