You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by ks...@apache.org on 2012/02/06 19:11:18 UTC
svn commit: r1241100 [40/41] - in /juddi/scout/site: ./ apidocs/
apidocs/org/apache/ws/scout/model/uddi/v2/
apidocs/org/apache/ws/scout/model/uddi/v2/class-use/
apidocs/org/apache/ws/scout/registry/
apidocs/org/apache/ws/scout/registry/class-use/ apido...
Modified: juddi/scout/site/xref/org/apache/ws/scout/util/ScoutUddiV3JaxrHelper.html
URL: http://svn.apache.org/viewvc/juddi/scout/site/xref/org/apache/ws/scout/util/ScoutUddiV3JaxrHelper.html?rev=1241100&r1=1241099&r2=1241100&view=diff
==============================================================================
--- juddi/scout/site/xref/org/apache/ws/scout/util/ScoutUddiV3JaxrHelper.html (original)
+++ juddi/scout/site/xref/org/apache/ws/scout/util/ScoutUddiV3JaxrHelper.html Mon Feb 6 18:10:50 2012
@@ -95,520 +95,555 @@
<a name="85" href="#85">85</a> LifeCycleManager lifeCycleManager)
<a name="86" href="#86">86</a> <strong class="jxr_keyword">throws</strong> JAXRException
<a name="87" href="#87">87</a> {
-<a name="88" href="#88">88</a> List<Name> namesList = businessEntity.getName();
-<a name="89" href="#89">89</a> Name n = <strong class="jxr_keyword">null</strong>;
-<a name="90" href="#90">90</a> <strong class="jxr_keyword">if</strong> (namesList.size()>0) n = namesList.get(0);
-<a name="91" href="#91">91</a>
-<a name="92" href="#92">92</a> List<Description> descriptionList = businessEntity.getDescription();
-<a name="93" href="#93">93</a> Description desc =<strong class="jxr_keyword">null</strong>;
-<a name="94" href="#94">94</a> <strong class="jxr_keyword">if</strong> (descriptionList.size()>0) desc = descriptionList.get(0);
-<a name="95" href="#95">95</a>
-<a name="96" href="#96">96</a> Organization org = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/OrganizationImpl.html">OrganizationImpl</a>(lifeCycleManager);
-<a name="97" href="#97">97</a> <strong class="jxr_keyword">if</strong>(n != <strong class="jxr_keyword">null</strong> ) {
-<a name="98" href="#98">98</a> org.setName(getIString(n.getLang(), n.getValue(), lifeCycleManager));
-<a name="99" href="#99">99</a> }
-<a name="100" href="#100">100</a> <strong class="jxr_keyword">if</strong>( desc != <strong class="jxr_keyword">null</strong>) {
-<a name="101" href="#101">101</a> org.setDescription(getIString(desc.getLang(), desc.getValue(), lifeCycleManager));
-<a name="102" href="#102">102</a> }
-<a name="103" href="#103">103</a> org.setKey(lifeCycleManager.createKey(businessEntity.getBusinessKey()));
-<a name="104" href="#104">104</a>
-<a name="105" href="#105">105</a> <em class="jxr_comment">//Set Services also</em>
-<a name="106" href="#106">106</a> BusinessServices services = businessEntity.getBusinessServices();
-<a name="107" href="#107">107</a> <strong class="jxr_keyword">if</strong>(services != <strong class="jxr_keyword">null</strong>)
-<a name="108" href="#108">108</a> {
-<a name="109" href="#109">109</a> List<BusinessService> bizServiceList = services.getBusinessService();
-<a name="110" href="#110">110</a> <strong class="jxr_keyword">for</strong> (BusinessService businessService : bizServiceList) {
-<a name="111" href="#111">111</a> org.addService(getService(businessService, lifeCycleManager));
-<a name="112" href="#112">112</a> }
+<a name="88" href="#88">88</a> Organization org = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/OrganizationImpl.html">OrganizationImpl</a>(lifeCycleManager);
+<a name="89" href="#89">89</a> List<Name> namesList = businessEntity.getName();
+<a name="90" href="#90">90</a> <strong class="jxr_keyword">if</strong> ((namesList != <strong class="jxr_keyword">null</strong>) && (namesList.size() > 0)) {
+<a name="91" href="#91">91</a> InternationalString is = <strong class="jxr_keyword">null</strong>;
+<a name="92" href="#92">92</a> <strong class="jxr_keyword">for</strong> (Name n : namesList) {
+<a name="93" href="#93">93</a> <strong class="jxr_keyword">if</strong> (is == <strong class="jxr_keyword">null</strong>) {
+<a name="94" href="#94">94</a> is = getIString(n.getLang(), n.getValue(), lifeCycleManager);
+<a name="95" href="#95">95</a> } <strong class="jxr_keyword">else</strong> {
+<a name="96" href="#96">96</a> is.setValue(getLocale(n.getLang()), n.getValue());
+<a name="97" href="#97">97</a> }
+<a name="98" href="#98">98</a> }
+<a name="99" href="#99">99</a> org.setName(is);
+<a name="100" href="#100">100</a> }
+<a name="101" href="#101">101</a>
+<a name="102" href="#102">102</a> List<Description> descriptionList = businessEntity.getDescription();
+<a name="103" href="#103">103</a> <strong class="jxr_keyword">if</strong> ((descriptionList != <strong class="jxr_keyword">null</strong>) && (descriptionList.size() > 0)) {
+<a name="104" href="#104">104</a> InternationalString is = <strong class="jxr_keyword">null</strong>;
+<a name="105" href="#105">105</a> <strong class="jxr_keyword">for</strong> (Description desc : descriptionList) {
+<a name="106" href="#106">106</a> <strong class="jxr_keyword">if</strong> (is == <strong class="jxr_keyword">null</strong>) {
+<a name="107" href="#107">107</a> is = getIString(desc.getLang(), desc.getValue(), lifeCycleManager);
+<a name="108" href="#108">108</a> } <strong class="jxr_keyword">else</strong> {
+<a name="109" href="#109">109</a> is.setValue(getLocale(desc.getLang()), desc.getValue());
+<a name="110" href="#110">110</a> }
+<a name="111" href="#111">111</a> }
+<a name="112" href="#112">112</a> org.setDescription(is);
<a name="113" href="#113">113</a> }
-<a name="114" href="#114">114</a>
-<a name="115" href="#115">115</a> <em class="jxr_comment">/*</em>
-<a name="116" href="#116">116</a> <em class="jxr_comment"> * Users</em>
-<a name="117" href="#117">117</a> <em class="jxr_comment"> *</em>
-<a name="118" href="#118">118</a> <em class="jxr_comment"> * we need to take the first contact and designate as the</em>
-<a name="119" href="#119">119</a> <em class="jxr_comment"> * 'primary contact'. Currently, the OrganizationImpl</em>
-<a name="120" href="#120">120</a> <em class="jxr_comment"> * class does that automatically as a safety in case</em>
-<a name="121" href="#121">121</a> <em class="jxr_comment"> * user forgets to set - lets be explicit here as to not</em>
-<a name="122" href="#122">122</a> <em class="jxr_comment"> * depend on that behavior</em>
-<a name="123" href="#123">123</a> <em class="jxr_comment"> */</em>
-<a name="124" href="#124">124</a>
-<a name="125" href="#125">125</a> Contacts contacts = businessEntity.getContacts();
-<a name="126" href="#126">126</a> <strong class="jxr_keyword">if</strong>(contacts != <strong class="jxr_keyword">null</strong>)
-<a name="127" href="#127">127</a> {
-<a name="128" href="#128">128</a> List<Contact> contactList = contacts.getContact();
-<a name="129" href="#129">129</a> <strong class="jxr_keyword">if</strong> (contactList!=<strong class="jxr_keyword">null</strong>) {
-<a name="130" href="#130">130</a> <strong class="jxr_keyword">boolean</strong> isFirst=<strong class="jxr_keyword">true</strong>;
-<a name="131" href="#131">131</a> <strong class="jxr_keyword">for</strong> (Contact contact : contactList) {
-<a name="132" href="#132">132</a> User user = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/UserImpl.html">UserImpl</a>(<strong class="jxr_keyword">null</strong>);
-<a name="133" href="#133">133</a> List<PersonName> pname = contact.getPersonName();
-<a name="134" href="#134">134</a> <strong class="jxr_keyword">if</strong> (pname != <strong class="jxr_keyword">null</strong> && pname.size() > 0) {
-<a name="135" href="#135">135</a> String name = pname.get(0).getValue();
-<a name="136" href="#136">136</a> user.setPersonName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/PersonNameImpl.html">PersonNameImpl</a>(name));
-<a name="137" href="#137">137</a> }
-<a name="138" href="#138">138</a> <strong class="jxr_keyword">if</strong> (isFirst) {
-<a name="139" href="#139">139</a> isFirst=false;
-<a name="140" href="#140">140</a> org.setPrimaryContact(user);
-<a name="141" href="#141">141</a> } <strong class="jxr_keyword">else</strong> {
-<a name="142" href="#142">142</a> org.addUser(user);
-<a name="143" href="#143">143</a> }
-<a name="144" href="#144">144</a> }
-<a name="145" href="#145">145</a> }
-<a name="146" href="#146">146</a> }
-<a name="147" href="#147">147</a>
-<a name="148" href="#148">148</a> <em class="jxr_comment">//External Links</em>
-<a name="149" href="#149">149</a> DiscoveryURLs durls = businessEntity.getDiscoveryURLs();
-<a name="150" href="#150">150</a> <strong class="jxr_keyword">if</strong> (durls != <strong class="jxr_keyword">null</strong>)
-<a name="151" href="#151">151</a> {
-<a name="152" href="#152">152</a> List<DiscoveryURL> discoveryURL_List = durls.getDiscoveryURL();
-<a name="153" href="#153">153</a> <strong class="jxr_keyword">for</strong> (DiscoveryURL discoveryURL : discoveryURL_List) {
-<a name="154" href="#154">154</a> ExternalLink link = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ExternalLinkImpl.html">ExternalLinkImpl</a>(lifeCycleManager);
-<a name="155" href="#155">155</a> link.setExternalURI(discoveryURL.getValue());
-<a name="156" href="#156">156</a> org.addExternalLink(link);
-<a name="157" href="#157">157</a> }
-<a name="158" href="#158">158</a> }
-<a name="159" href="#159">159</a>
-<a name="160" href="#160">160</a> org.addExternalIdentifiers(getExternalIdentifiers(businessEntity.getIdentifierBag(), lifeCycleManager));
-<a name="161" href="#161">161</a> org.addClassifications(getClassifications(businessEntity.getCategoryBag(), lifeCycleManager));
-<a name="162" href="#162">162</a>
-<a name="163" href="#163">163</a> <strong class="jxr_keyword">return</strong> org;
-<a name="164" href="#164">164</a> }
-<a name="165" href="#165">165</a>
-<a name="166" href="#166">166</a>
-<a name="167" href="#167">167</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Organization getOrganization(BusinessDetail bizdetail,
-<a name="168" href="#168">168</a> LifeCycleManager lifeCycleManager)
-<a name="169" href="#169">169</a> <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="170" href="#170">170</a> {
-<a name="171" href="#171">171</a> List<BusinessEntity> bizEntityList = bizdetail.getBusinessEntity();
-<a name="172" href="#172">172</a> <strong class="jxr_keyword">if</strong> (bizEntityList.size() != 1) {
-<a name="173" href="#173">173</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Unexpected count of organizations in BusinessDetail: "</span> + bizEntityList.size());
-<a name="174" href="#174">174</a> }
-<a name="175" href="#175">175</a> BusinessEntity entity = bizEntityList.get(0);
-<a name="176" href="#176">176</a> Name n = <strong class="jxr_keyword">null</strong>;
-<a name="177" href="#177">177</a> <strong class="jxr_keyword">if</strong> (entity.getName().size()>0) n = entity.getName().get(0);
-<a name="178" href="#178">178</a>
-<a name="179" href="#179">179</a> List<Description> descriptionList = entity.getDescription();
-<a name="180" href="#180">180</a> Description desc =<strong class="jxr_keyword">null</strong>;
-<a name="181" href="#181">181</a> <strong class="jxr_keyword">if</strong> (descriptionList.size()>0) desc = descriptionList.get(0);
-<a name="182" href="#182">182</a>
+<a name="114" href="#114">114</a> org.setKey(lifeCycleManager.createKey(businessEntity.getBusinessKey()));
+<a name="115" href="#115">115</a>
+<a name="116" href="#116">116</a> <em class="jxr_comment">//Set Services also</em>
+<a name="117" href="#117">117</a> BusinessServices services = businessEntity.getBusinessServices();
+<a name="118" href="#118">118</a> <strong class="jxr_keyword">if</strong>(services != <strong class="jxr_keyword">null</strong>)
+<a name="119" href="#119">119</a> {
+<a name="120" href="#120">120</a> List<BusinessService> bizServiceList = services.getBusinessService();
+<a name="121" href="#121">121</a> <strong class="jxr_keyword">for</strong> (BusinessService businessService : bizServiceList) {
+<a name="122" href="#122">122</a> org.addService(getService(businessService, lifeCycleManager));
+<a name="123" href="#123">123</a> }
+<a name="124" href="#124">124</a> }
+<a name="125" href="#125">125</a>
+<a name="126" href="#126">126</a> <em class="jxr_comment">/*</em>
+<a name="127" href="#127">127</a> <em class="jxr_comment"> * Users</em>
+<a name="128" href="#128">128</a> <em class="jxr_comment"> *</em>
+<a name="129" href="#129">129</a> <em class="jxr_comment"> * we need to take the first contact and designate as the</em>
+<a name="130" href="#130">130</a> <em class="jxr_comment"> * 'primary contact'. Currently, the OrganizationImpl</em>
+<a name="131" href="#131">131</a> <em class="jxr_comment"> * class does that automatically as a safety in case</em>
+<a name="132" href="#132">132</a> <em class="jxr_comment"> * user forgets to set - lets be explicit here as to not</em>
+<a name="133" href="#133">133</a> <em class="jxr_comment"> * depend on that behavior</em>
+<a name="134" href="#134">134</a> <em class="jxr_comment"> */</em>
+<a name="135" href="#135">135</a>
+<a name="136" href="#136">136</a> Contacts contacts = businessEntity.getContacts();
+<a name="137" href="#137">137</a> <strong class="jxr_keyword">if</strong>(contacts != <strong class="jxr_keyword">null</strong>)
+<a name="138" href="#138">138</a> {
+<a name="139" href="#139">139</a> List<Contact> contactList = contacts.getContact();
+<a name="140" href="#140">140</a> <strong class="jxr_keyword">if</strong> (contactList!=<strong class="jxr_keyword">null</strong>) {
+<a name="141" href="#141">141</a> <strong class="jxr_keyword">boolean</strong> isFirst=<strong class="jxr_keyword">true</strong>;
+<a name="142" href="#142">142</a> <strong class="jxr_keyword">for</strong> (Contact contact : contactList) {
+<a name="143" href="#143">143</a> User user = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/UserImpl.html">UserImpl</a>(<strong class="jxr_keyword">null</strong>);
+<a name="144" href="#144">144</a> List<PersonName> pname = contact.getPersonName();
+<a name="145" href="#145">145</a> <strong class="jxr_keyword">if</strong> (pname != <strong class="jxr_keyword">null</strong> && pname.size() > 0) {
+<a name="146" href="#146">146</a> String name = pname.get(0).getValue();
+<a name="147" href="#147">147</a> user.setPersonName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/PersonNameImpl.html">PersonNameImpl</a>(name));
+<a name="148" href="#148">148</a> }
+<a name="149" href="#149">149</a> <strong class="jxr_keyword">if</strong> (isFirst) {
+<a name="150" href="#150">150</a> isFirst=false;
+<a name="151" href="#151">151</a> org.setPrimaryContact(user);
+<a name="152" href="#152">152</a> } <strong class="jxr_keyword">else</strong> {
+<a name="153" href="#153">153</a> org.addUser(user);
+<a name="154" href="#154">154</a> }
+<a name="155" href="#155">155</a> }
+<a name="156" href="#156">156</a> }
+<a name="157" href="#157">157</a> }
+<a name="158" href="#158">158</a>
+<a name="159" href="#159">159</a> <em class="jxr_comment">//External Links</em>
+<a name="160" href="#160">160</a> DiscoveryURLs durls = businessEntity.getDiscoveryURLs();
+<a name="161" href="#161">161</a> <strong class="jxr_keyword">if</strong> (durls != <strong class="jxr_keyword">null</strong>)
+<a name="162" href="#162">162</a> {
+<a name="163" href="#163">163</a> List<DiscoveryURL> discoveryURL_List = durls.getDiscoveryURL();
+<a name="164" href="#164">164</a> <strong class="jxr_keyword">for</strong> (DiscoveryURL discoveryURL : discoveryURL_List) {
+<a name="165" href="#165">165</a> ExternalLink link = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ExternalLinkImpl.html">ExternalLinkImpl</a>(lifeCycleManager);
+<a name="166" href="#166">166</a> link.setExternalURI(discoveryURL.getValue());
+<a name="167" href="#167">167</a> org.addExternalLink(link);
+<a name="168" href="#168">168</a> }
+<a name="169" href="#169">169</a> }
+<a name="170" href="#170">170</a>
+<a name="171" href="#171">171</a> org.addExternalIdentifiers(getExternalIdentifiers(businessEntity.getIdentifierBag(), lifeCycleManager));
+<a name="172" href="#172">172</a> org.addClassifications(getClassifications(businessEntity.getCategoryBag(), lifeCycleManager));
+<a name="173" href="#173">173</a>
+<a name="174" href="#174">174</a> <strong class="jxr_keyword">return</strong> org;
+<a name="175" href="#175">175</a> }
+<a name="176" href="#176">176</a>
+<a name="177" href="#177">177</a>
+<a name="178" href="#178">178</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Organization getOrganization(BusinessDetail bizdetail,
+<a name="179" href="#179">179</a> LifeCycleManager lifeCycleManager)
+<a name="180" href="#180">180</a> <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="181" href="#181">181</a> {
+<a name="182" href="#182">182</a> List<BusinessEntity> bizEntityList = bizdetail.getBusinessEntity();
<a name="183" href="#183">183</a> Organization org = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/OrganizationImpl.html">OrganizationImpl</a>(lifeCycleManager);
-<a name="184" href="#184">184</a> <strong class="jxr_keyword">if</strong>( n != <strong class="jxr_keyword">null</strong> ) {
-<a name="185" href="#185">185</a> org.setName(getIString(n.getLang(), n.getValue(), lifeCycleManager));
+<a name="184" href="#184">184</a> <strong class="jxr_keyword">if</strong> (bizEntityList.size() != 1) {
+<a name="185" href="#185">185</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> JAXRException(<span class="jxr_string">"Unexpected count of organizations in BusinessDetail: "</span> + bizEntityList.size());
<a name="186" href="#186">186</a> }
-<a name="187" href="#187">187</a> <strong class="jxr_keyword">if</strong>( desc != <strong class="jxr_keyword">null</strong> ) {
-<a name="188" href="#188">188</a> org.setDescription(getIString(desc.getLang(), desc.getValue(), lifeCycleManager));
-<a name="189" href="#189">189</a> }
-<a name="190" href="#190">190</a> org.setKey(lifeCycleManager.createKey(entity.getBusinessKey()));
-<a name="191" href="#191">191</a>
-<a name="192" href="#192">192</a> <em class="jxr_comment">//Set Services also</em>
-<a name="193" href="#193">193</a> BusinessServices services = entity.getBusinessServices();
-<a name="194" href="#194">194</a> <strong class="jxr_keyword">if</strong> (services != <strong class="jxr_keyword">null</strong>) {
-<a name="195" href="#195">195</a> List<BusinessService> bizServiceList = services.getBusinessService();
-<a name="196" href="#196">196</a> <strong class="jxr_keyword">for</strong> (BusinessService businessService : bizServiceList) {
-<a name="197" href="#197">197</a> org.addService(getService(businessService, lifeCycleManager));
-<a name="198" href="#198">198</a> }
+<a name="187" href="#187">187</a> BusinessEntity entity = bizEntityList.get(0);
+<a name="188" href="#188">188</a> List<Name> namesList = entity.getName();
+<a name="189" href="#189">189</a> <strong class="jxr_keyword">if</strong> ((namesList != <strong class="jxr_keyword">null</strong>) && (namesList.size() > 0)) {
+<a name="190" href="#190">190</a> InternationalString is = <strong class="jxr_keyword">null</strong>;
+<a name="191" href="#191">191</a> <strong class="jxr_keyword">for</strong> (Name n : namesList) {
+<a name="192" href="#192">192</a> <strong class="jxr_keyword">if</strong> (is == <strong class="jxr_keyword">null</strong>) {
+<a name="193" href="#193">193</a> is = getIString(n.getLang(), n.getValue(), lifeCycleManager);
+<a name="194" href="#194">194</a> } <strong class="jxr_keyword">else</strong> {
+<a name="195" href="#195">195</a> is.setValue(getLocale(n.getLang()), n.getValue());
+<a name="196" href="#196">196</a> }
+<a name="197" href="#197">197</a> }
+<a name="198" href="#198">198</a> org.setName(is);
<a name="199" href="#199">199</a> }
-<a name="200" href="#200">200</a>
-<a name="201" href="#201">201</a> <em class="jxr_comment">/*</em>
-<a name="202" href="#202">202</a> <em class="jxr_comment"> * Users</em>
-<a name="203" href="#203">203</a> <em class="jxr_comment"> *</em>
-<a name="204" href="#204">204</a> <em class="jxr_comment"> * we need to take the first contact and designate as the</em>
-<a name="205" href="#205">205</a> <em class="jxr_comment"> * 'primary contact'. Currently, the OrganizationImpl</em>
-<a name="206" href="#206">206</a> <em class="jxr_comment"> * class does that automatically as a safety in case</em>
-<a name="207" href="#207">207</a> <em class="jxr_comment"> * user forgets to set - lets be explicit here as to not</em>
-<a name="208" href="#208">208</a> <em class="jxr_comment"> * depend on that behavior</em>
-<a name="209" href="#209">209</a> <em class="jxr_comment"> */</em>
-<a name="210" href="#210">210</a> Contacts contacts = entity.getContacts();
-<a name="211" href="#211">211</a> <strong class="jxr_keyword">if</strong> (contacts != <strong class="jxr_keyword">null</strong>) {
-<a name="212" href="#212">212</a> List<Contact> contactList = contacts.getContact();
-<a name="213" href="#213">213</a> <strong class="jxr_keyword">boolean</strong> isFirst=<strong class="jxr_keyword">true</strong>;
-<a name="214" href="#214">214</a> <strong class="jxr_keyword">for</strong> (Contact contact : contactList) {
-<a name="215" href="#215">215</a> User user = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/UserImpl.html">UserImpl</a>(<strong class="jxr_keyword">null</strong>);
-<a name="216" href="#216">216</a> List<PersonName> pnames = (List<PersonName>) contact.getPersonName();
-<a name="217" href="#217">217</a> String pname = <strong class="jxr_keyword">null</strong>;
-<a name="218" href="#218">218</a> <strong class="jxr_keyword">if</strong> (pnames != <strong class="jxr_keyword">null</strong> && pnames.size() > 0) {
-<a name="219" href="#219">219</a> PersonName personname = pnames.get(0);
-<a name="220" href="#220">220</a> pname = personname.getValue();
-<a name="221" href="#221">221</a> }
-<a name="222" href="#222">222</a> user.setType(contact.getUseType());
-<a name="223" href="#223">223</a> user.setPersonName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/PersonNameImpl.html">PersonNameImpl</a>(pname));
-<a name="224" href="#224">224</a>
-<a name="225" href="#225">225</a> List<Email> emailList = contact.getEmail();
-<a name="226" href="#226">226</a> ArrayList<EmailAddress> tempEmails = <strong class="jxr_keyword">new</strong> ArrayList<EmailAddress>();
-<a name="227" href="#227">227</a> <strong class="jxr_keyword">for</strong> (Email email : emailList) {
-<a name="228" href="#228">228</a> tempEmails.add(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/EmailAddressImpl.html">EmailAddressImpl</a>(email.getValue(), <strong class="jxr_keyword">null</strong>));
-<a name="229" href="#229">229</a> }
-<a name="230" href="#230">230</a> user.setEmailAddresses(tempEmails);
-<a name="231" href="#231">231</a>
-<a name="232" href="#232">232</a> List<Address> addressList = contact.getAddress();
-<a name="233" href="#233">233</a> ArrayList<PostalAddress> tempAddresses = <strong class="jxr_keyword">new</strong> ArrayList<PostalAddress>();
-<a name="234" href="#234">234</a> <strong class="jxr_keyword">for</strong> (Address address : addressList) {
-<a name="235" href="#235">235</a> ArrayList<AddressLine> addressLineList = <strong class="jxr_keyword">new</strong> ArrayList<AddressLine>(address.getAddressLine());
-<a name="236" href="#236">236</a> AddressLine[] alines = <strong class="jxr_keyword">new</strong> AddressLine[addressLineList.size()];
-<a name="237" href="#237">237</a> addressLineList.toArray(alines);
-<a name="238" href="#238">238</a>
-<a name="239" href="#239">239</a> PostalAddress pa = getPostalAddress(alines);
-<a name="240" href="#240">240</a> tempAddresses.add(pa);
-<a name="241" href="#241">241</a> }
-<a name="242" href="#242">242</a> user.setPostalAddresses(tempAddresses);
-<a name="243" href="#243">243</a>
-<a name="244" href="#244">244</a> List<Phone> phoneList = contact.getPhone();
-<a name="245" href="#245">245</a> ArrayList<TelephoneNumber> tempPhones = <strong class="jxr_keyword">new</strong> ArrayList<TelephoneNumber>();
-<a name="246" href="#246">246</a> <strong class="jxr_keyword">for</strong> (Phone phone : phoneList) {
-<a name="247" href="#247">247</a> TelephoneNumberImpl tni = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/TelephoneNumberImpl.html">TelephoneNumberImpl</a>();
-<a name="248" href="#248">248</a> tni.setType(phone.getUseType());
-<a name="249" href="#249">249</a> tni.setNumber(phone.getValue());
-<a name="250" href="#250">250</a> tempPhones.add(tni);
-<a name="251" href="#251">251</a> }
-<a name="252" href="#252">252</a> user.setTelephoneNumbers(tempPhones);
-<a name="253" href="#253">253</a> <strong class="jxr_keyword">if</strong> (isFirst) {
-<a name="254" href="#254">254</a> isFirst=false;
-<a name="255" href="#255">255</a> org.setPrimaryContact(user);
-<a name="256" href="#256">256</a> } <strong class="jxr_keyword">else</strong> {
-<a name="257" href="#257">257</a> org.addUser(user);
-<a name="258" href="#258">258</a> }
-<a name="259" href="#259">259</a> }
-<a name="260" href="#260">260</a> }
-<a name="261" href="#261">261</a> <em class="jxr_comment">//External Links</em>
-<a name="262" href="#262">262</a> DiscoveryURLs durls = entity.getDiscoveryURLs();
-<a name="263" href="#263">263</a> <strong class="jxr_keyword">if</strong> (durls != <strong class="jxr_keyword">null</strong>)
-<a name="264" href="#264">264</a> {
-<a name="265" href="#265">265</a> List<DiscoveryURL> discoveryURL_List = durls.getDiscoveryURL();
-<a name="266" href="#266">266</a> <strong class="jxr_keyword">for</strong> (DiscoveryURL discoveryURL : discoveryURL_List) {
-<a name="267" href="#267">267</a> ExternalLink link = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ExternalLinkImpl.html">ExternalLinkImpl</a>(lifeCycleManager);
-<a name="268" href="#268">268</a> link.setExternalURI(discoveryURL.getValue());
-<a name="269" href="#269">269</a> org.addExternalLink(link);
-<a name="270" href="#270">270</a> }
-<a name="271" href="#271">271</a> }
-<a name="272" href="#272">272</a>
-<a name="273" href="#273">273</a> org.addExternalIdentifiers(getExternalIdentifiers(entity.getIdentifierBag(), lifeCycleManager));
-<a name="274" href="#274">274</a> org.addClassifications(getClassifications(entity.getCategoryBag(), lifeCycleManager));
-<a name="275" href="#275">275</a>
-<a name="276" href="#276">276</a> <strong class="jxr_keyword">return</strong> org;
-<a name="277" href="#277">277</a> }
-<a name="278" href="#278">278</a>
-<a name="279" href="#279">279</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> PostalAddress getPostalAddress(AddressLine[] addressLineArr) <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="280" href="#280">280</a> PostalAddress pa = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/PostalAddressImpl.html">PostalAddressImpl</a>();
-<a name="281" href="#281">281</a> HashMap<String, String> hm = <strong class="jxr_keyword">new</strong> HashMap<String, String>();
-<a name="282" href="#282">282</a> <strong class="jxr_keyword">for</strong> (AddressLine anAddressLineArr : addressLineArr) {
-<a name="283" href="#283">283</a> hm.put(anAddressLineArr.getKeyName(), anAddressLineArr.getKeyValue());
-<a name="284" href="#284">284</a> }
-<a name="285" href="#285">285</a>
-<a name="286" href="#286">286</a> <strong class="jxr_keyword">if</strong> (hm.containsKey(<span class="jxr_string">"STREET_NUMBER"</span>)) {
-<a name="287" href="#287">287</a> pa.setStreetNumber(hm.get(<span class="jxr_string">"STREET_NUMBER"</span>));
-<a name="288" href="#288">288</a> }
-<a name="289" href="#289">289</a>
-<a name="290" href="#290">290</a> <strong class="jxr_keyword">if</strong> (hm.containsKey(<span class="jxr_string">"STREET"</span>)) {
-<a name="291" href="#291">291</a> pa.setStreet(hm.get(<span class="jxr_string">"STREET"</span>));
-<a name="292" href="#292">292</a> }
-<a name="293" href="#293">293</a>
-<a name="294" href="#294">294</a> <strong class="jxr_keyword">if</strong> (hm.containsKey(<span class="jxr_string">"CITY"</span>)) {
-<a name="295" href="#295">295</a> pa.setCity(hm.get(<span class="jxr_string">"CITY"</span>));
-<a name="296" href="#296">296</a> }
-<a name="297" href="#297">297</a>
-<a name="298" href="#298">298</a> <strong class="jxr_keyword">if</strong> (hm.containsKey(<span class="jxr_string">"COUNTRY"</span>)) {
-<a name="299" href="#299">299</a> pa.setCountry(hm.get(<span class="jxr_string">"COUNTRY"</span>));
-<a name="300" href="#300">300</a> }
+<a name="200" href="#200">200</a>
+<a name="201" href="#201">201</a> List<Description> descriptionList = entity.getDescription();
+<a name="202" href="#202">202</a> <strong class="jxr_keyword">if</strong> ((descriptionList != <strong class="jxr_keyword">null</strong>) && (descriptionList.size() > 0)) {
+<a name="203" href="#203">203</a> InternationalString is = <strong class="jxr_keyword">null</strong>;
+<a name="204" href="#204">204</a> <strong class="jxr_keyword">for</strong> (Description desc : descriptionList) {
+<a name="205" href="#205">205</a> <strong class="jxr_keyword">if</strong> (is == <strong class="jxr_keyword">null</strong>) {
+<a name="206" href="#206">206</a> is = getIString(desc.getLang(), desc.getValue(), lifeCycleManager);
+<a name="207" href="#207">207</a> } <strong class="jxr_keyword">else</strong> {
+<a name="208" href="#208">208</a> is.setValue(getLocale(desc.getLang()), desc.getValue());
+<a name="209" href="#209">209</a> }
+<a name="210" href="#210">210</a> }
+<a name="211" href="#211">211</a> org.setDescription(is);
+<a name="212" href="#212">212</a> }
+<a name="213" href="#213">213</a> org.setKey(lifeCycleManager.createKey(entity.getBusinessKey()));
+<a name="214" href="#214">214</a>
+<a name="215" href="#215">215</a> <em class="jxr_comment">//Set Services also</em>
+<a name="216" href="#216">216</a> BusinessServices services = entity.getBusinessServices();
+<a name="217" href="#217">217</a> <strong class="jxr_keyword">if</strong> (services != <strong class="jxr_keyword">null</strong>) {
+<a name="218" href="#218">218</a> List<BusinessService> bizServiceList = services.getBusinessService();
+<a name="219" href="#219">219</a> <strong class="jxr_keyword">for</strong> (BusinessService businessService : bizServiceList) {
+<a name="220" href="#220">220</a> org.addService(getService(businessService, lifeCycleManager));
+<a name="221" href="#221">221</a> }
+<a name="222" href="#222">222</a> }
+<a name="223" href="#223">223</a>
+<a name="224" href="#224">224</a> <em class="jxr_comment">/*</em>
+<a name="225" href="#225">225</a> <em class="jxr_comment"> * Users</em>
+<a name="226" href="#226">226</a> <em class="jxr_comment"> *</em>
+<a name="227" href="#227">227</a> <em class="jxr_comment"> * we need to take the first contact and designate as the</em>
+<a name="228" href="#228">228</a> <em class="jxr_comment"> * 'primary contact'. Currently, the OrganizationImpl</em>
+<a name="229" href="#229">229</a> <em class="jxr_comment"> * class does that automatically as a safety in case</em>
+<a name="230" href="#230">230</a> <em class="jxr_comment"> * user forgets to set - lets be explicit here as to not</em>
+<a name="231" href="#231">231</a> <em class="jxr_comment"> * depend on that behavior</em>
+<a name="232" href="#232">232</a> <em class="jxr_comment"> */</em>
+<a name="233" href="#233">233</a> Contacts contacts = entity.getContacts();
+<a name="234" href="#234">234</a> <strong class="jxr_keyword">if</strong> (contacts != <strong class="jxr_keyword">null</strong>) {
+<a name="235" href="#235">235</a> List<Contact> contactList = contacts.getContact();
+<a name="236" href="#236">236</a> <strong class="jxr_keyword">boolean</strong> isFirst=<strong class="jxr_keyword">true</strong>;
+<a name="237" href="#237">237</a> <strong class="jxr_keyword">for</strong> (Contact contact : contactList) {
+<a name="238" href="#238">238</a> User user = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/UserImpl.html">UserImpl</a>(<strong class="jxr_keyword">null</strong>);
+<a name="239" href="#239">239</a> List<PersonName> pnames = (List<PersonName>) contact.getPersonName();
+<a name="240" href="#240">240</a> String pname = <strong class="jxr_keyword">null</strong>;
+<a name="241" href="#241">241</a> <strong class="jxr_keyword">if</strong> (pnames != <strong class="jxr_keyword">null</strong> && pnames.size() > 0) {
+<a name="242" href="#242">242</a> PersonName personname = pnames.get(0);
+<a name="243" href="#243">243</a> pname = personname.getValue();
+<a name="244" href="#244">244</a> }
+<a name="245" href="#245">245</a> user.setType(contact.getUseType());
+<a name="246" href="#246">246</a> user.setPersonName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/PersonNameImpl.html">PersonNameImpl</a>(pname));
+<a name="247" href="#247">247</a>
+<a name="248" href="#248">248</a> List<Email> emailList = contact.getEmail();
+<a name="249" href="#249">249</a> ArrayList<EmailAddress> tempEmails = <strong class="jxr_keyword">new</strong> ArrayList<EmailAddress>();
+<a name="250" href="#250">250</a> <strong class="jxr_keyword">for</strong> (Email email : emailList) {
+<a name="251" href="#251">251</a> tempEmails.add(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/EmailAddressImpl.html">EmailAddressImpl</a>(email.getValue(), <strong class="jxr_keyword">null</strong>));
+<a name="252" href="#252">252</a> }
+<a name="253" href="#253">253</a> user.setEmailAddresses(tempEmails);
+<a name="254" href="#254">254</a>
+<a name="255" href="#255">255</a> List<Address> addressList = contact.getAddress();
+<a name="256" href="#256">256</a> ArrayList<PostalAddress> tempAddresses = <strong class="jxr_keyword">new</strong> ArrayList<PostalAddress>();
+<a name="257" href="#257">257</a> <strong class="jxr_keyword">for</strong> (Address address : addressList) {
+<a name="258" href="#258">258</a> ArrayList<AddressLine> addressLineList = <strong class="jxr_keyword">new</strong> ArrayList<AddressLine>(address.getAddressLine());
+<a name="259" href="#259">259</a> AddressLine[] alines = <strong class="jxr_keyword">new</strong> AddressLine[addressLineList.size()];
+<a name="260" href="#260">260</a> addressLineList.toArray(alines);
+<a name="261" href="#261">261</a>
+<a name="262" href="#262">262</a> PostalAddress pa = getPostalAddress(alines);
+<a name="263" href="#263">263</a> tempAddresses.add(pa);
+<a name="264" href="#264">264</a> }
+<a name="265" href="#265">265</a> user.setPostalAddresses(tempAddresses);
+<a name="266" href="#266">266</a>
+<a name="267" href="#267">267</a> List<Phone> phoneList = contact.getPhone();
+<a name="268" href="#268">268</a> ArrayList<TelephoneNumber> tempPhones = <strong class="jxr_keyword">new</strong> ArrayList<TelephoneNumber>();
+<a name="269" href="#269">269</a> <strong class="jxr_keyword">for</strong> (Phone phone : phoneList) {
+<a name="270" href="#270">270</a> TelephoneNumberImpl tni = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/TelephoneNumberImpl.html">TelephoneNumberImpl</a>();
+<a name="271" href="#271">271</a> tni.setType(phone.getUseType());
+<a name="272" href="#272">272</a> tni.setNumber(phone.getValue());
+<a name="273" href="#273">273</a> tempPhones.add(tni);
+<a name="274" href="#274">274</a> }
+<a name="275" href="#275">275</a> user.setTelephoneNumbers(tempPhones);
+<a name="276" href="#276">276</a> <strong class="jxr_keyword">if</strong> (isFirst) {
+<a name="277" href="#277">277</a> isFirst=false;
+<a name="278" href="#278">278</a> org.setPrimaryContact(user);
+<a name="279" href="#279">279</a> } <strong class="jxr_keyword">else</strong> {
+<a name="280" href="#280">280</a> org.addUser(user);
+<a name="281" href="#281">281</a> }
+<a name="282" href="#282">282</a> }
+<a name="283" href="#283">283</a> }
+<a name="284" href="#284">284</a> <em class="jxr_comment">//External Links</em>
+<a name="285" href="#285">285</a> DiscoveryURLs durls = entity.getDiscoveryURLs();
+<a name="286" href="#286">286</a> <strong class="jxr_keyword">if</strong> (durls != <strong class="jxr_keyword">null</strong>)
+<a name="287" href="#287">287</a> {
+<a name="288" href="#288">288</a> List<DiscoveryURL> discoveryURL_List = durls.getDiscoveryURL();
+<a name="289" href="#289">289</a> <strong class="jxr_keyword">for</strong> (DiscoveryURL discoveryURL : discoveryURL_List) {
+<a name="290" href="#290">290</a> ExternalLink link = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ExternalLinkImpl.html">ExternalLinkImpl</a>(lifeCycleManager);
+<a name="291" href="#291">291</a> link.setExternalURI(discoveryURL.getValue());
+<a name="292" href="#292">292</a> org.addExternalLink(link);
+<a name="293" href="#293">293</a> }
+<a name="294" href="#294">294</a> }
+<a name="295" href="#295">295</a>
+<a name="296" href="#296">296</a> org.addExternalIdentifiers(getExternalIdentifiers(entity.getIdentifierBag(), lifeCycleManager));
+<a name="297" href="#297">297</a> org.addClassifications(getClassifications(entity.getCategoryBag(), lifeCycleManager));
+<a name="298" href="#298">298</a>
+<a name="299" href="#299">299</a> <strong class="jxr_keyword">return</strong> org;
+<a name="300" href="#300">300</a> }
<a name="301" href="#301">301</a>
-<a name="302" href="#302">302</a> <strong class="jxr_keyword">if</strong> (hm.containsKey(<span class="jxr_string">"POSTALCODE"</span>)) {
-<a name="303" href="#303">303</a> pa.setPostalCode(hm.get(<span class="jxr_string">"POSTALCODE"</span>));
-<a name="304" href="#304">304</a> }
-<a name="305" href="#305">305</a>
-<a name="306" href="#306">306</a> <strong class="jxr_keyword">if</strong> (hm.containsKey(<span class="jxr_string">"STATE"</span>)) {
-<a name="307" href="#307">307</a> pa.setStateOrProvince(hm.get(<span class="jxr_string">"STATE"</span>));
-<a name="308" href="#308">308</a> }
-<a name="309" href="#309">309</a>
-<a name="310" href="#310">310</a> <strong class="jxr_keyword">return</strong> pa;
-<a name="311" href="#311">311</a> }
+<a name="302" href="#302">302</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> PostalAddress getPostalAddress(AddressLine[] addressLineArr) <strong class="jxr_keyword">throws</strong> JAXRException {
+<a name="303" href="#303">303</a> PostalAddress pa = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/PostalAddressImpl.html">PostalAddressImpl</a>();
+<a name="304" href="#304">304</a> HashMap<String, String> hm = <strong class="jxr_keyword">new</strong> HashMap<String, String>();
+<a name="305" href="#305">305</a> <strong class="jxr_keyword">for</strong> (AddressLine anAddressLineArr : addressLineArr) {
+<a name="306" href="#306">306</a> hm.put(anAddressLineArr.getKeyName(), anAddressLineArr.getValue());
+<a name="307" href="#307">307</a> }
+<a name="308" href="#308">308</a>
+<a name="309" href="#309">309</a> <strong class="jxr_keyword">if</strong> (hm.containsKey(<span class="jxr_string">"STREET_NUMBER"</span>)) {
+<a name="310" href="#310">310</a> pa.setStreetNumber(hm.get(<span class="jxr_string">"STREET_NUMBER"</span>));
+<a name="311" href="#311">311</a> }
<a name="312" href="#312">312</a>
-<a name="313" href="#313">313</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> InternationalString getIString(String lang, String str, LifeCycleManager lifeCycleManager)
-<a name="314" href="#314">314</a> <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="315" href="#315">315</a> {
-<a name="316" href="#316">316</a> <strong class="jxr_keyword">if</strong> (str!=<strong class="jxr_keyword">null</strong>) {
-<a name="317" href="#317">317</a> <strong class="jxr_keyword">return</strong> lifeCycleManager.createInternationalString(getLocale(lang), str);
-<a name="318" href="#318">318</a> } <strong class="jxr_keyword">else</strong> {
-<a name="319" href="#319">319</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a name="320" href="#320">320</a> }
-<a name="321" href="#321">321</a> }
-<a name="322" href="#322">322</a>
-<a name="323" href="#323">323</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> InternationalString getIString(String str, LifeCycleManager lifeCycleManager)
-<a name="324" href="#324">324</a> <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="325" href="#325">325</a> {
-<a name="326" href="#326">326</a> <strong class="jxr_keyword">return</strong> lifeCycleManager.createInternationalString(str);
-<a name="327" href="#327">327</a> }
+<a name="313" href="#313">313</a> <strong class="jxr_keyword">if</strong> (hm.containsKey(<span class="jxr_string">"STREET"</span>)) {
+<a name="314" href="#314">314</a> pa.setStreet(hm.get(<span class="jxr_string">"STREET"</span>));
+<a name="315" href="#315">315</a> }
+<a name="316" href="#316">316</a>
+<a name="317" href="#317">317</a> <strong class="jxr_keyword">if</strong> (hm.containsKey(<span class="jxr_string">"CITY"</span>)) {
+<a name="318" href="#318">318</a> pa.setCity(hm.get(<span class="jxr_string">"CITY"</span>));
+<a name="319" href="#319">319</a> }
+<a name="320" href="#320">320</a>
+<a name="321" href="#321">321</a> <strong class="jxr_keyword">if</strong> (hm.containsKey(<span class="jxr_string">"COUNTRY"</span>)) {
+<a name="322" href="#322">322</a> pa.setCountry(hm.get(<span class="jxr_string">"COUNTRY"</span>));
+<a name="323" href="#323">323</a> }
+<a name="324" href="#324">324</a>
+<a name="325" href="#325">325</a> <strong class="jxr_keyword">if</strong> (hm.containsKey(<span class="jxr_string">"POSTALCODE"</span>)) {
+<a name="326" href="#326">326</a> pa.setPostalCode(hm.get(<span class="jxr_string">"POSTALCODE"</span>));
+<a name="327" href="#327">327</a> }
<a name="328" href="#328">328</a>
-<a name="329" href="#329">329</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Service getService(BusinessService businessService, LifeCycleManager lifeCycleManager)
-<a name="330" href="#330">330</a> <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="331" href="#331">331</a> {
-<a name="332" href="#332">332</a> Service serve = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ServiceImpl.html">ServiceImpl</a>(lifeCycleManager);
-<a name="333" href="#333">333</a>
-<a name="334" href="#334">334</a> String keystr = businessService.getServiceKey();
+<a name="329" href="#329">329</a> <strong class="jxr_keyword">if</strong> (hm.containsKey(<span class="jxr_string">"STATE"</span>)) {
+<a name="330" href="#330">330</a> pa.setStateOrProvince(hm.get(<span class="jxr_string">"STATE"</span>));
+<a name="331" href="#331">331</a> }
+<a name="332" href="#332">332</a>
+<a name="333" href="#333">333</a> <strong class="jxr_keyword">return</strong> pa;
+<a name="334" href="#334">334</a> }
<a name="335" href="#335">335</a>
-<a name="336" href="#336">336</a> <strong class="jxr_keyword">if</strong> (keystr != <strong class="jxr_keyword">null</strong>)
-<a name="337" href="#337">337</a> {
-<a name="338" href="#338">338</a> serve.setKey(lifeCycleManager.createKey(keystr));
-<a name="339" href="#339">339</a> }
-<a name="340" href="#340">340</a>
-<a name="341" href="#341">341</a> Name n = <strong class="jxr_keyword">null</strong>;
-<a name="342" href="#342">342</a> <strong class="jxr_keyword">if</strong> (businessService.getName().size()>0) n = businessService.getName().get(0);
-<a name="343" href="#343">343</a>
-<a name="344" href="#344">344</a> <strong class="jxr_keyword">if</strong> (n != <strong class="jxr_keyword">null</strong>) {
-<a name="345" href="#345">345</a> String name = n.getValue();
-<a name="346" href="#346">346</a> serve.setName(lifeCycleManager.createInternationalString(getLocale(n.getLang()), name));
-<a name="347" href="#347">347</a> }
-<a name="348" href="#348">348</a>
-<a name="349" href="#349">349</a> Description desc =<strong class="jxr_keyword">null</strong>;
-<a name="350" href="#350">350</a> <strong class="jxr_keyword">if</strong> (businessService.getDescription().size()>0) desc = businessService.getDescription().get(0);
-<a name="351" href="#351">351</a> <strong class="jxr_keyword">if</strong> (desc != <strong class="jxr_keyword">null</strong> ) {
-<a name="352" href="#352">352</a> serve.setDescription(lifeCycleManager.createInternationalString(getLocale(desc.getLang()), desc.getValue()));
-<a name="353" href="#353">353</a> }
-<a name="354" href="#354">354</a>
-<a name="355" href="#355">355</a> <em class="jxr_comment">//Populate the ServiceBindings for this Service</em>
-<a name="356" href="#356">356</a> BindingTemplates bts = businessService.getBindingTemplates();
-<a name="357" href="#357">357</a> <strong class="jxr_keyword">if</strong> (bts != <strong class="jxr_keyword">null</strong>) {
-<a name="358" href="#358">358</a> List<BindingTemplate> bindingTemplateList = bts.getBindingTemplate();
-<a name="359" href="#359">359</a> <strong class="jxr_keyword">for</strong> (BindingTemplate bindingTemplate : bindingTemplateList) {
-<a name="360" href="#360">360</a> serve.addServiceBinding(getServiceBinding(bindingTemplate, lifeCycleManager));
-<a name="361" href="#361">361</a> }
+<a name="336" href="#336">336</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> InternationalString getIString(String lang, String str, LifeCycleManager lifeCycleManager)
+<a name="337" href="#337">337</a> <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="338" href="#338">338</a> {
+<a name="339" href="#339">339</a> <strong class="jxr_keyword">if</strong> (str!=<strong class="jxr_keyword">null</strong>) {
+<a name="340" href="#340">340</a> <strong class="jxr_keyword">return</strong> lifeCycleManager.createInternationalString(getLocale(lang), str);
+<a name="341" href="#341">341</a> } <strong class="jxr_keyword">else</strong> {
+<a name="342" href="#342">342</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a name="343" href="#343">343</a> }
+<a name="344" href="#344">344</a> }
+<a name="345" href="#345">345</a>
+<a name="346" href="#346">346</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> InternationalString getIString(String str, LifeCycleManager lifeCycleManager)
+<a name="347" href="#347">347</a> <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="348" href="#348">348</a> {
+<a name="349" href="#349">349</a> <strong class="jxr_keyword">return</strong> lifeCycleManager.createInternationalString(str);
+<a name="350" href="#350">350</a> }
+<a name="351" href="#351">351</a>
+<a name="352" href="#352">352</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Service getService(BusinessService businessService, LifeCycleManager lifeCycleManager)
+<a name="353" href="#353">353</a> <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="354" href="#354">354</a> {
+<a name="355" href="#355">355</a> Service serve = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ServiceImpl.html">ServiceImpl</a>(lifeCycleManager);
+<a name="356" href="#356">356</a>
+<a name="357" href="#357">357</a> String keystr = businessService.getServiceKey();
+<a name="358" href="#358">358</a>
+<a name="359" href="#359">359</a> <strong class="jxr_keyword">if</strong> (keystr != <strong class="jxr_keyword">null</strong>)
+<a name="360" href="#360">360</a> {
+<a name="361" href="#361">361</a> serve.setKey(lifeCycleManager.createKey(keystr));
<a name="362" href="#362">362</a> }
-<a name="363" href="#363">363</a> serve.addClassifications(getClassifications(businessService.getCategoryBag(), lifeCycleManager));
-<a name="364" href="#364">364</a>
-<a name="365" href="#365">365</a> <strong class="jxr_keyword">return</strong> serve;
-<a name="366" href="#366">366</a> }
-<a name="367" href="#367">367</a>
-<a name="368" href="#368">368</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Service getService(ServiceInfo serviceInfo, LifeCycleManager lifeCycleManager)
-<a name="369" href="#369">369</a> <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="370" href="#370">370</a> {
-<a name="371" href="#371">371</a> Service service = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ServiceImpl.html">ServiceImpl</a>(lifeCycleManager);
-<a name="372" href="#372">372</a>
-<a name="373" href="#373">373</a> String keystr = serviceInfo.getServiceKey();
-<a name="374" href="#374">374</a>
-<a name="375" href="#375">375</a> <strong class="jxr_keyword">if</strong> (keystr != <strong class="jxr_keyword">null</strong>)
-<a name="376" href="#376">376</a> {
-<a name="377" href="#377">377</a> service.setKey(lifeCycleManager.createKey(keystr));
-<a name="378" href="#378">378</a> }
-<a name="379" href="#379">379</a>
-<a name="380" href="#380">380</a> Name n = <strong class="jxr_keyword">null</strong>;
-<a name="381" href="#381">381</a> <strong class="jxr_keyword">if</strong> (serviceInfo.getName().size()>0) n = serviceInfo.getName().get(0);
-<a name="382" href="#382">382</a> <strong class="jxr_keyword">if</strong> (n != <strong class="jxr_keyword">null</strong>) {
-<a name="383" href="#383">383</a> String name = n.getValue();
-<a name="384" href="#384">384</a> service.setName(lifeCycleManager.createInternationalString(getLocale(n.getLang()), name));
-<a name="385" href="#385">385</a> }
-<a name="386" href="#386">386</a> <strong class="jxr_keyword">return</strong> service;
-<a name="387" href="#387">387</a> }
-<a name="388" href="#388">388</a>
-<a name="389" href="#389">389</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> ServiceBinding getServiceBinding(BindingTemplate businessTemplate, LifeCycleManager lifeCycleManager)
-<a name="390" href="#390">390</a> <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="391" href="#391">391</a> {
-<a name="392" href="#392">392</a> ServiceBinding serviceBinding = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.html">ServiceBindingImpl</a>(lifeCycleManager);
-<a name="393" href="#393">393</a>
-<a name="394" href="#394">394</a> String keystr = businessTemplate.getServiceKey();
-<a name="395" href="#395">395</a> <strong class="jxr_keyword">if</strong> (keystr != <strong class="jxr_keyword">null</strong>)
-<a name="396" href="#396">396</a> {
-<a name="397" href="#397">397</a> Service svc = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ServiceImpl.html">ServiceImpl</a>(lifeCycleManager);
-<a name="398" href="#398">398</a> svc.setKey(lifeCycleManager.createKey(keystr));
-<a name="399" href="#399">399</a> ((ServiceBindingImpl)serviceBinding).setService(svc);
-<a name="400" href="#400">400</a> }
-<a name="401" href="#401">401</a> String bindingKey = businessTemplate.getBindingKey();
-<a name="402" href="#402">402</a> <strong class="jxr_keyword">if</strong>(bindingKey != <strong class="jxr_keyword">null</strong>) serviceBinding.setKey(<strong class="jxr_keyword">new</strong> KeyImpl(bindingKey));
+<a name="363" href="#363">363</a>
+<a name="364" href="#364">364</a> List<Name> namesList = businessService.getName();
+<a name="365" href="#365">365</a> InternationalString is = <strong class="jxr_keyword">null</strong>;
+<a name="366" href="#366">366</a> <strong class="jxr_keyword">for</strong> (Name n : namesList) {
+<a name="367" href="#367">367</a> <strong class="jxr_keyword">if</strong> (is == <strong class="jxr_keyword">null</strong>) {
+<a name="368" href="#368">368</a> is = lifeCycleManager.createInternationalString(getLocale(n.getLang()), n.getValue());
+<a name="369" href="#369">369</a> } <strong class="jxr_keyword">else</strong> {
+<a name="370" href="#370">370</a> is.setValue(getLocale(n.getLang()), n.getValue());
+<a name="371" href="#371">371</a> }
+<a name="372" href="#372">372</a> }
+<a name="373" href="#373">373</a> serve.setName(is);
+<a name="374" href="#374">374</a>
+<a name="375" href="#375">375</a> List<Description> descriptionList = businessService.getDescription();
+<a name="376" href="#376">376</a> InternationalString dis = <strong class="jxr_keyword">null</strong>;
+<a name="377" href="#377">377</a> <strong class="jxr_keyword">for</strong> (Description desc : descriptionList) {
+<a name="378" href="#378">378</a> <strong class="jxr_keyword">if</strong> (dis == <strong class="jxr_keyword">null</strong>) {
+<a name="379" href="#379">379</a> dis = lifeCycleManager.createInternationalString(getLocale(desc.getLang()), desc.getValue());
+<a name="380" href="#380">380</a> } <strong class="jxr_keyword">else</strong> {
+<a name="381" href="#381">381</a> dis.setValue(getLocale(desc.getLang()), desc.getValue());
+<a name="382" href="#382">382</a> }
+<a name="383" href="#383">383</a> }
+<a name="384" href="#384">384</a> serve.setDescription(dis);
+<a name="385" href="#385">385</a>
+<a name="386" href="#386">386</a> <em class="jxr_comment">//Populate the ServiceBindings for this Service</em>
+<a name="387" href="#387">387</a> BindingTemplates bts = businessService.getBindingTemplates();
+<a name="388" href="#388">388</a> <strong class="jxr_keyword">if</strong> (bts != <strong class="jxr_keyword">null</strong>) {
+<a name="389" href="#389">389</a> List<BindingTemplate> bindingTemplateList = bts.getBindingTemplate();
+<a name="390" href="#390">390</a> <strong class="jxr_keyword">for</strong> (BindingTemplate bindingTemplate : bindingTemplateList) {
+<a name="391" href="#391">391</a> serve.addServiceBinding(getServiceBinding(bindingTemplate, lifeCycleManager));
+<a name="392" href="#392">392</a> }
+<a name="393" href="#393">393</a> }
+<a name="394" href="#394">394</a> serve.addClassifications(getClassifications(businessService.getCategoryBag(), lifeCycleManager));
+<a name="395" href="#395">395</a>
+<a name="396" href="#396">396</a> <strong class="jxr_keyword">return</strong> serve;
+<a name="397" href="#397">397</a> }
+<a name="398" href="#398">398</a>
+<a name="399" href="#399">399</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Service getService(ServiceInfo serviceInfo, LifeCycleManager lifeCycleManager)
+<a name="400" href="#400">400</a> <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="401" href="#401">401</a> {
+<a name="402" href="#402">402</a> Service service = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ServiceImpl.html">ServiceImpl</a>(lifeCycleManager);
<a name="403" href="#403">403</a>
-<a name="404" href="#404">404</a> <em class="jxr_comment">//Access URI</em>
-<a name="405" href="#405">405</a> AccessPoint access = businessTemplate.getAccessPoint();
-<a name="406" href="#406">406</a> <strong class="jxr_keyword">if</strong> (access != <strong class="jxr_keyword">null</strong>) serviceBinding.setAccessURI(access.getValue());
-<a name="407" href="#407">407</a>
-<a name="408" href="#408">408</a> <em class="jxr_comment">//Description</em>
-<a name="409" href="#409">409</a> Description desc = <strong class="jxr_keyword">null</strong>;
-<a name="410" href="#410">410</a> <strong class="jxr_keyword">if</strong> (businessTemplate.getDescription().size()>0) desc = businessTemplate.getDescription().get(0);
-<a name="411" href="#411">411</a> <strong class="jxr_keyword">if</strong> (desc!=<strong class="jxr_keyword">null</strong>) {
-<a name="412" href="#412">412</a> serviceBinding.setDescription(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(desc.getValue()));
-<a name="413" href="#413">413</a> }
-<a name="414" href="#414">414</a> <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">Section D.10 of JAXR 1.0 Specification */</em>
-<a name="415" href="#415">415</a>
-<a name="416" href="#416">416</a> TModelInstanceDetails details = businessTemplate.getTModelInstanceDetails();
-<a name="417" href="#417">417</a> <strong class="jxr_keyword">if</strong> (details != <strong class="jxr_keyword">null</strong>) {
-<a name="418" href="#418">418</a> List<TModelInstanceInfo> tmodelInstanceInfoList = details.getTModelInstanceInfo();
-<a name="419" href="#419">419</a>
-<a name="420" href="#420">420</a> <strong class="jxr_keyword">for</strong> (TModelInstanceInfo info: tmodelInstanceInfoList)
-<a name="421" href="#421">421</a> {
-<a name="422" href="#422">422</a> <strong class="jxr_keyword">if</strong> (info!=<strong class="jxr_keyword">null</strong> && info.getInstanceDetails()!=<strong class="jxr_keyword">null</strong>) {
-<a name="423" href="#423">423</a> InstanceDetails idetails = info.getInstanceDetails();
-<a name="424" href="#424">424</a> Collection<ExternalLink> elinks = getExternalLinks(idetails.getOverviewDoc(),lifeCycleManager);
-<a name="425" href="#425">425</a> SpecificationLink slink = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/SpecificationLinkImpl.html">SpecificationLinkImpl</a>(lifeCycleManager);
-<a name="426" href="#426">426</a> slink.addExternalLinks(elinks);
-<a name="427" href="#427">427</a> serviceBinding.addSpecificationLink(slink);
-<a name="428" href="#428">428</a>
-<a name="429" href="#429">429</a> ConceptImpl c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>(lifeCycleManager);
-<a name="430" href="#430">430</a> c.setExternalLinks(elinks);
-<a name="431" href="#431">431</a> c.setKey(lifeCycleManager.createKey(info.getTModelKey()));
-<a name="432" href="#432">432</a> c.setName(lifeCycleManager.createInternationalString(idetails.getInstanceParms()));
-<a name="433" href="#433">433</a> c.setValue(idetails.getInstanceParms());
-<a name="434" href="#434">434</a>
-<a name="435" href="#435">435</a> slink.setSpecificationObject(c);
-<a name="436" href="#436">436</a> }
-<a name="437" href="#437">437</a> }
-<a name="438" href="#438">438</a> }
-<a name="439" href="#439">439</a> HostingRedirector hr = businessTemplate.getHostingRedirector();
-<a name="440" href="#440">440</a> <strong class="jxr_keyword">if</strong>(hr != <strong class="jxr_keyword">null</strong>)
-<a name="441" href="#441">441</a> {
-<a name="442" href="#442">442</a> ServiceBinding sb = lifeCycleManager.createServiceBinding();
-<a name="443" href="#443">443</a> sb.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(hr.getBindingKey()));
-<a name="444" href="#444">444</a> serviceBinding.setTargetBinding(sb);
-<a name="445" href="#445">445</a> }
-<a name="446" href="#446">446</a>
-<a name="447" href="#447">447</a> <strong class="jxr_keyword">return</strong> serviceBinding;
-<a name="448" href="#448">448</a> }
-<a name="449" href="#449">449</a>
-<a name="450" href="#450">450</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Concept getConcept(TModelDetail tModelDetail, LifeCycleManager lifeCycleManager)
-<a name="451" href="#451">451</a> <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="452" href="#452">452</a> {
-<a name="453" href="#453">453</a> Concept concept = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>(lifeCycleManager);
-<a name="454" href="#454">454</a> List<TModel> tmodelList = tModelDetail.getTModel();
-<a name="455" href="#455">455</a> <strong class="jxr_keyword">for</strong> (TModel tmodel : tmodelList) {
-<a name="456" href="#456">456</a> concept.setKey(lifeCycleManager.createKey(tmodel.getTModelKey()));
-<a name="457" href="#457">457</a> concept.setName(lifeCycleManager.createInternationalString(getLocale(tmodel.getName().getLang()),
-<a name="458" href="#458">458</a> tmodel.getName().getValue()));
-<a name="459" href="#459">459</a>
-<a name="460" href="#460">460</a> Description desc = getDescription(tmodel);
-<a name="461" href="#461">461</a> <strong class="jxr_keyword">if</strong>( desc != <strong class="jxr_keyword">null</strong> ) {
-<a name="462" href="#462">462</a> concept.setDescription(lifeCycleManager.createInternationalString(getLocale(desc.getLang()),
-<a name="463" href="#463">463</a> desc.getValue()));
-<a name="464" href="#464">464</a> }
-<a name="465" href="#465">465</a>
-<a name="466" href="#466">466</a> concept.addExternalIdentifiers(getExternalIdentifiers(tmodel.getIdentifierBag(), lifeCycleManager));
-<a name="467" href="#467">467</a> concept.addClassifications(getClassifications(tmodel.getCategoryBag(), lifeCycleManager));
-<a name="468" href="#468">468</a> }
-<a name="469" href="#469">469</a> <strong class="jxr_keyword">return</strong> concept;
-<a name="470" href="#470">470</a> }
-<a name="471" href="#471">471</a>
-<a name="472" href="#472">472</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Concept getConcept(TModel tmodel, LifeCycleManager lifeCycleManager)
-<a name="473" href="#473">473</a> <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="474" href="#474">474</a> {
-<a name="475" href="#475">475</a> Concept concept = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>(lifeCycleManager);
-<a name="476" href="#476">476</a> concept.setKey(lifeCycleManager.createKey(tmodel.getTModelKey()));
-<a name="477" href="#477">477</a> concept.setName(lifeCycleManager.createInternationalString(getLocale(tmodel.getName().getLang()),
-<a name="478" href="#478">478</a> tmodel.getName().getValue()));
-<a name="479" href="#479">479</a>
-<a name="480" href="#480">480</a> Description desc = getDescription(tmodel);
-<a name="481" href="#481">481</a> <strong class="jxr_keyword">if</strong> (desc != <strong class="jxr_keyword">null</strong>) {
-<a name="482" href="#482">482</a> concept.setDescription(lifeCycleManager.createInternationalString(getLocale(desc.getLang()),
-<a name="483" href="#483">483</a> desc.getValue()));
-<a name="484" href="#484">484</a> }
-<a name="485" href="#485">485</a>
-<a name="486" href="#486">486</a> concept.addExternalIdentifiers(getExternalIdentifiers(tmodel.getIdentifierBag(), lifeCycleManager));
-<a name="487" href="#487">487</a> concept.addClassifications(getClassifications(tmodel.getCategoryBag(), lifeCycleManager));
-<a name="488" href="#488">488</a>
-<a name="489" href="#489">489</a> <strong class="jxr_keyword">return</strong> concept;
-<a name="490" href="#490">490</a> }
-<a name="491" href="#491">491</a>
-<a name="492" href="#492">492</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Concept getConcept(TModelInfo tModelInfo, LifeCycleManager lifeCycleManager)
-<a name="493" href="#493">493</a> <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="494" href="#494">494</a> {
-<a name="495" href="#495">495</a> Concept concept = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>(lifeCycleManager);
-<a name="496" href="#496">496</a> concept.setKey(lifeCycleManager.createKey(tModelInfo.getTModelKey()));
-<a name="497" href="#497">497</a> concept.setName(lifeCycleManager.createInternationalString(getLocale(tModelInfo.getName().getLang()),
-<a name="498" href="#498">498</a> tModelInfo.getName().getValue()));
-<a name="499" href="#499">499</a>
-<a name="500" href="#500">500</a> <strong class="jxr_keyword">return</strong> concept;
-<a name="501" href="#501">501</a> }
-<a name="502" href="#502">502</a>
-<a name="503" href="#503">503</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> Description getDescription( TModel tmodel )
-<a name="504" href="#504">504</a> {
-<a name="505" href="#505">505</a> Description desc = <strong class="jxr_keyword">null</strong>;
-<a name="506" href="#506">506</a> <strong class="jxr_keyword">if</strong> (tmodel.getDescription().size()>0) desc=tmodel.getDescription().get(0);
-<a name="507" href="#507">507</a> <strong class="jxr_keyword">return</strong> desc;
-<a name="508" href="#508">508</a> }
-<a name="509" href="#509">509</a>
-<a name="510" href="#510">510</a> <em class="jxr_javadoccomment">/**</em>
-<a name="511" href="#511">511</a> <em class="jxr_javadoccomment"> * Classifications - going to assume all are external since UDDI does not use "Concepts".</em>
-<a name="512" href="#512">512</a> <em class="jxr_javadoccomment"> * @param categoryBag categories</em>
-<a name="513" href="#513">513</a> <em class="jxr_javadoccomment"> * @param lifeCycleManager lifecycleManager</em>
-<a name="514" href="#514">514</a> <em class="jxr_javadoccomment"> * @return Collection Classifications</em>
-<a name="515" href="#515">515</a> <em class="jxr_javadoccomment"> * @throws JAXRException on error</em>
-<a name="516" href="#516">516</a> <em class="jxr_javadoccomment"> */</em>
-<a name="517" href="#517">517</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Collection getClassifications(CategoryBag categoryBag, LifeCycleManager lifeCycleManager)
-<a name="518" href="#518">518</a> <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="519" href="#519">519</a> Collection<Classification> classifications = <strong class="jxr_keyword">null</strong>;
-<a name="520" href="#520">520</a> <strong class="jxr_keyword">if</strong> (categoryBag != <strong class="jxr_keyword">null</strong>) {
-<a name="521" href="#521">521</a> classifications = <strong class="jxr_keyword">new</strong> ArrayList<Classification>();
-<a name="522" href="#522">522</a> List<KeyedReference> keyedReferenceList = categoryBag.getKeyedReference();
-<a name="523" href="#523">523</a> <strong class="jxr_keyword">for</strong> (KeyedReference keyedReference : keyedReferenceList) {
-<a name="524" href="#524">524</a> Classification classification = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationImpl.html">ClassificationImpl</a>(lifeCycleManager);
-<a name="525" href="#525">525</a> classification.setValue(keyedReference.getKeyValue());
-<a name="526" href="#526">526</a> classification.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(keyedReference.getKeyName()));
-<a name="527" href="#527">527</a> String tmodelKey = keyedReference.getTModelKey();
-<a name="528" href="#528">528</a> <strong class="jxr_keyword">if</strong> (tmodelKey != <strong class="jxr_keyword">null</strong>) {
-<a name="529" href="#529">529</a> ClassificationScheme scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(lifeCycleManager);
-<a name="530" href="#530">530</a> scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(tmodelKey));
-<a name="531" href="#531">531</a> classification.setClassificationScheme(scheme);
-<a name="532" href="#532">532</a> }
-<a name="533" href="#533">533</a> classifications.add(classification);
-<a name="534" href="#534">534</a> }
-<a name="535" href="#535">535</a> }
-<a name="536" href="#536">536</a> <strong class="jxr_keyword">return</strong> classifications;
-<a name="537" href="#537">537</a> }
-<a name="538" href="#538">538</a>
-<a name="539" href="#539">539</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Collection<ExternalLink> getExternalLinks(List<OverviewDoc> overviewDocs, LifeCycleManager lifeCycleManager)
-<a name="540" href="#540">540</a> <strong class="jxr_keyword">throws</strong> JAXRException
-<a name="541" href="#541">541</a> {
-<a name="542" href="#542">542</a> ArrayList<ExternalLink> alist = <strong class="jxr_keyword">new</strong> ArrayList<ExternalLink>();
-<a name="543" href="#543">543</a> <strong class="jxr_keyword">if</strong>((overviewDocs != <strong class="jxr_keyword">null</strong>) && (overviewDocs.size() != 0))
-<a name="544" href="#544">544</a> {
-<a name="545" href="#545">545</a> Iterator docIter = overviewDocs.iterator();
-<a name="546" href="#546">546</a> <strong class="jxr_keyword">while</strong> (docIter.hasNext()) {
-<a name="547" href="#547">547</a> OverviewDoc overviewDoc = (OverviewDoc) docIter.next();
-<a name="548" href="#548">548</a> String descStr = <span class="jxr_string">""</span>;
-<a name="549" href="#549">549</a> Description desc = <strong class="jxr_keyword">null</strong>;
-<a name="550" href="#550">550</a> <strong class="jxr_keyword">if</strong> (overviewDoc.getDescription().size()>0) desc = overviewDoc.getDescription().get(0);
-<a name="551" href="#551">551</a> <strong class="jxr_keyword">if</strong> (desc !=<strong class="jxr_keyword">null</strong>) descStr = desc.getValue();
-<a name="552" href="#552">552</a> alist.add(lifeCycleManager.createExternalLink(overviewDoc.getOverviewURL().toString(),descStr));
-<a name="553" href="#553">553</a>
-<a name="554" href="#554">554</a> }
-<a name="555" href="#555">555</a> }
-<a name="556" href="#556">556</a> <strong class="jxr_keyword">return</strong> alist;
-<a name="557" href="#557">557</a> }
-<a name="558" href="#558">558</a>
-<a name="559" href="#559">559</a> <em class="jxr_javadoccomment">/**</em>
-<a name="560" href="#560">560</a> <em class="jxr_javadoccomment"> * External Identifiers</em>
-<a name="561" href="#561">561</a> <em class="jxr_javadoccomment"> * @param identifierBag identifiers</em>
-<a name="562" href="#562">562</a> <em class="jxr_javadoccomment"> * @param lifeCycleManager lifecycleManager</em>
-<a name="563" href="#563">563</a> <em class="jxr_javadoccomment"> * @return Collection ExternalIdentifier</em>
-<a name="564" href="#564">564</a> <em class="jxr_javadoccomment"> * @throws JAXRException on error</em>
-<a name="565" href="#565">565</a> <em class="jxr_javadoccomment"> */</em>
-<a name="566" href="#566">566</a>
-<a name="567" href="#567">567</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Collection getExternalIdentifiers(IdentifierBag identifierBag, LifeCycleManager lifeCycleManager)
-<a name="568" href="#568">568</a> <strong class="jxr_keyword">throws</strong> JAXRException {
-<a name="569" href="#569">569</a> Collection<ExternalIdentifier> extidentifiers = <strong class="jxr_keyword">null</strong>;
-<a name="570" href="#570">570</a> <strong class="jxr_keyword">if</strong> (identifierBag != <strong class="jxr_keyword">null</strong>) {
-<a name="571" href="#571">571</a> extidentifiers = <strong class="jxr_keyword">new</strong> ArrayList<ExternalIdentifier>();
-<a name="572" href="#572">572</a>
-<a name="573" href="#573">573</a> List<KeyedReference> keyedReferenceList = identifierBag.getKeyedReference();
-<a name="574" href="#574">574</a> <strong class="jxr_keyword">for</strong> (KeyedReference keyedReference : keyedReferenceList) {
-<a name="575" href="#575">575</a> ExternalIdentifier extId = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ExternalIdentifierImpl.html">ExternalIdentifierImpl</a>(lifeCycleManager);
-<a name="576" href="#576">576</a> extId.setValue(keyedReference.getKeyValue());
-<a name="577" href="#577">577</a> extId.setName(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(keyedReference.getKeyName()));
-<a name="578" href="#578">578</a>
-<a name="579" href="#579">579</a> String tmodelKey = keyedReference.getTModelKey();
-<a name="580" href="#580">580</a> <strong class="jxr_keyword">if</strong> (tmodelKey != <strong class="jxr_keyword">null</strong>) {
-<a name="581" href="#581">581</a> ClassificationScheme scheme = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ClassificationSchemeImpl.html">ClassificationSchemeImpl</a>(lifeCycleManager);
-<a name="582" href="#582">582</a> scheme.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(tmodelKey));
-<a name="583" href="#583">583</a> extId.setIdentificationScheme(scheme);
-<a name="584" href="#584">584</a> }
-<a name="585" href="#585">585</a> extidentifiers.add(extId);
-<a name="586" href="#586">586</a> }
-<a name="587" href="#587">587</a> }
-<a name="588" href="#588">588</a> <strong class="jxr_keyword">return</strong> extidentifiers;
-<a name="589" href="#589">589</a> }
-<a name="590" href="#590">590</a>
-<a name="591" href="#591">591</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> Locale getLocale(String lang) {
-<a name="592" href="#592">592</a> <strong class="jxr_keyword">if</strong> (lang == <strong class="jxr_keyword">null</strong> || lang.trim().length() == 0) {
-<a name="593" href="#593">593</a> <strong class="jxr_keyword">return</strong> Locale.getDefault();
-<a name="594" href="#594">594</a> } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (lang.equalsIgnoreCase(Locale.getDefault().getLanguage())) {
-<a name="595" href="#595">595</a> <strong class="jxr_keyword">return</strong> Locale.getDefault();
-<a name="596" href="#596">596</a> } <strong class="jxr_keyword">else</strong> {
-<a name="597" href="#597">597</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> Locale(lang);
-<a name="598" href="#598">598</a> }
-<a name="599" href="#599">599</a> }
-<a name="600" href="#600">600</a>
-<a name="601" href="#601">601</a> }
+<a name="404" href="#404">404</a> String keystr = serviceInfo.getServiceKey();
+<a name="405" href="#405">405</a>
+<a name="406" href="#406">406</a> <strong class="jxr_keyword">if</strong> (keystr != <strong class="jxr_keyword">null</strong>)
+<a name="407" href="#407">407</a> {
+<a name="408" href="#408">408</a> service.setKey(lifeCycleManager.createKey(keystr));
+<a name="409" href="#409">409</a> }
+<a name="410" href="#410">410</a>
+<a name="411" href="#411">411</a> List<Name> namesList = serviceInfo.getName();
+<a name="412" href="#412">412</a> InternationalString is = <strong class="jxr_keyword">null</strong>;
+<a name="413" href="#413">413</a> <strong class="jxr_keyword">for</strong> (Name n : namesList) {
+<a name="414" href="#414">414</a> <strong class="jxr_keyword">if</strong> (is == <strong class="jxr_keyword">null</strong>) {
+<a name="415" href="#415">415</a> is = lifeCycleManager.createInternationalString(getLocale(n.getLang()), n.getValue());
+<a name="416" href="#416">416</a> } <strong class="jxr_keyword">else</strong> {
+<a name="417" href="#417">417</a> is.setValue(getLocale(n.getLang()), n.getValue());
+<a name="418" href="#418">418</a> }
+<a name="419" href="#419">419</a> }
+<a name="420" href="#420">420</a> service.setName(is);
+<a name="421" href="#421">421</a> <strong class="jxr_keyword">return</strong> service;
+<a name="422" href="#422">422</a> }
+<a name="423" href="#423">423</a>
+<a name="424" href="#424">424</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> ServiceBinding getServiceBinding(BindingTemplate businessTemplate, LifeCycleManager lifeCycleManager)
+<a name="425" href="#425">425</a> <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="426" href="#426">426</a> {
+<a name="427" href="#427">427</a> ServiceBinding serviceBinding = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.html">ServiceBindingImpl</a>(lifeCycleManager);
+<a name="428" href="#428">428</a>
+<a name="429" href="#429">429</a> String keystr = businessTemplate.getServiceKey();
+<a name="430" href="#430">430</a> <strong class="jxr_keyword">if</strong> (keystr != <strong class="jxr_keyword">null</strong>)
+<a name="431" href="#431">431</a> {
+<a name="432" href="#432">432</a> Service svc = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ServiceImpl.html">ServiceImpl</a>(lifeCycleManager);
+<a name="433" href="#433">433</a> svc.setKey(lifeCycleManager.createKey(keystr));
+<a name="434" href="#434">434</a> ((ServiceBindingImpl)serviceBinding).setService(svc);
+<a name="435" href="#435">435</a> }
+<a name="436" href="#436">436</a> String bindingKey = businessTemplate.getBindingKey();
+<a name="437" href="#437">437</a> <strong class="jxr_keyword">if</strong>(bindingKey != <strong class="jxr_keyword">null</strong>) serviceBinding.setKey(<strong class="jxr_keyword">new</strong> KeyImpl(bindingKey));
+<a name="438" href="#438">438</a>
+<a name="439" href="#439">439</a> <em class="jxr_comment">//Access URI</em>
+<a name="440" href="#440">440</a> AccessPoint access = businessTemplate.getAccessPoint();
+<a name="441" href="#441">441</a> <strong class="jxr_keyword">if</strong> (access != <strong class="jxr_keyword">null</strong>) serviceBinding.setAccessURI(access.getValue());
+<a name="442" href="#442">442</a>
+<a name="443" href="#443">443</a> <em class="jxr_comment">//Description</em>
+<a name="444" href="#444">444</a> Description desc = <strong class="jxr_keyword">null</strong>;
+<a name="445" href="#445">445</a> <strong class="jxr_keyword">if</strong> (businessTemplate.getDescription().size()>0) desc = businessTemplate.getDescription().get(0);
+<a name="446" href="#446">446</a> <strong class="jxr_keyword">if</strong> (desc!=<strong class="jxr_keyword">null</strong>) {
+<a name="447" href="#447">447</a> serviceBinding.setDescription(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/InternationalStringImpl.html">InternationalStringImpl</a>(desc.getValue()));
+<a name="448" href="#448">448</a> }
+<a name="449" href="#449">449</a> <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">Section D.10 of JAXR 1.0 Specification */</em>
+<a name="450" href="#450">450</a>
+<a name="451" href="#451">451</a> TModelInstanceDetails details = businessTemplate.getTModelInstanceDetails();
+<a name="452" href="#452">452</a> <strong class="jxr_keyword">if</strong> (details != <strong class="jxr_keyword">null</strong>) {
+<a name="453" href="#453">453</a> List<TModelInstanceInfo> tmodelInstanceInfoList = details.getTModelInstanceInfo();
+<a name="454" href="#454">454</a>
+<a name="455" href="#455">455</a> <strong class="jxr_keyword">for</strong> (TModelInstanceInfo info: tmodelInstanceInfoList)
+<a name="456" href="#456">456</a> {
+<a name="457" href="#457">457</a> <strong class="jxr_keyword">if</strong> (info!=<strong class="jxr_keyword">null</strong> && info.getInstanceDetails()!=<strong class="jxr_keyword">null</strong>) {
+<a name="458" href="#458">458</a> InstanceDetails idetails = info.getInstanceDetails();
+<a name="459" href="#459">459</a> Collection<ExternalLink> elinks = getExternalLinks(idetails.getOverviewDoc(),lifeCycleManager);
+<a name="460" href="#460">460</a> SpecificationLink slink = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/SpecificationLinkImpl.html">SpecificationLinkImpl</a>(lifeCycleManager);
+<a name="461" href="#461">461</a> slink.addExternalLinks(elinks);
+<a name="462" href="#462">462</a> serviceBinding.addSpecificationLink(slink);
+<a name="463" href="#463">463</a>
+<a name="464" href="#464">464</a> ConceptImpl c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>(lifeCycleManager);
+<a name="465" href="#465">465</a> c.setExternalLinks(elinks);
+<a name="466" href="#466">466</a> c.setKey(lifeCycleManager.createKey(info.getTModelKey()));
+<a name="467" href="#467">467</a> c.setName(lifeCycleManager.createInternationalString(idetails.getInstanceParms()));
+<a name="468" href="#468">468</a> c.setValue(idetails.getInstanceParms());
+<a name="469" href="#469">469</a>
+<a name="470" href="#470">470</a> slink.setSpecificationObject(c);
+<a name="471" href="#471">471</a> }
+<a name="472" href="#472">472</a> }
+<a name="473" href="#473">473</a> }
+<a name="474" href="#474">474</a> HostingRedirector hr = businessTemplate.getHostingRedirector();
+<a name="475" href="#475">475</a> <strong class="jxr_keyword">if</strong>(hr != <strong class="jxr_keyword">null</strong>)
+<a name="476" href="#476">476</a> {
+<a name="477" href="#477">477</a> ServiceBinding sb = lifeCycleManager.createServiceBinding();
+<a name="478" href="#478">478</a> sb.setKey(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/KeyImpl.html">KeyImpl</a>(hr.getBindingKey()));
+<a name="479" href="#479">479</a> serviceBinding.setTargetBinding(sb);
+<a name="480" href="#480">480</a> }
+<a name="481" href="#481">481</a>
+<a name="482" href="#482">482</a> <strong class="jxr_keyword">return</strong> serviceBinding;
+<a name="483" href="#483">483</a> }
+<a name="484" href="#484">484</a>
+<a name="485" href="#485">485</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Concept getConcept(TModelDetail tModelDetail, LifeCycleManager lifeCycleManager)
+<a name="486" href="#486">486</a> <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="487" href="#487">487</a> {
+<a name="488" href="#488">488</a> Concept concept = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>(lifeCycleManager);
+<a name="489" href="#489">489</a> List<TModel> tmodelList = tModelDetail.getTModel();
+<a name="490" href="#490">490</a> <strong class="jxr_keyword">for</strong> (TModel tmodel : tmodelList) {
+<a name="491" href="#491">491</a> concept.setKey(lifeCycleManager.createKey(tmodel.getTModelKey()));
+<a name="492" href="#492">492</a> concept.setName(lifeCycleManager.createInternationalString(getLocale(tmodel.getName().getLang()),
+<a name="493" href="#493">493</a> tmodel.getName().getValue()));
+<a name="494" href="#494">494</a>
+<a name="495" href="#495">495</a> Description desc = getDescription(tmodel);
+<a name="496" href="#496">496</a> <strong class="jxr_keyword">if</strong>( desc != <strong class="jxr_keyword">null</strong> ) {
+<a name="497" href="#497">497</a> concept.setDescription(lifeCycleManager.createInternationalString(getLocale(desc.getLang()),
+<a name="498" href="#498">498</a> desc.getValue()));
+<a name="499" href="#499">499</a> }
+<a name="500" href="#500">500</a>
+<a name="501" href="#501">501</a> concept.addExternalIdentifiers(getExternalIdentifiers(tmodel.getIdentifierBag(), lifeCycleManager));
+<a name="502" href="#502">502</a> concept.addClassifications(getClassifications(tmodel.getCategoryBag(), lifeCycleManager));
+<a name="503" href="#503">503</a> }
+<a name="504" href="#504">504</a> <strong class="jxr_keyword">return</strong> concept;
+<a name="505" href="#505">505</a> }
+<a name="506" href="#506">506</a>
+<a name="507" href="#507">507</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Concept getConcept(TModel tmodel, LifeCycleManager lifeCycleManager)
+<a name="508" href="#508">508</a> <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="509" href="#509">509</a> {
+<a name="510" href="#510">510</a> Concept concept = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/scout/registry/infomodel/ConceptImpl.html">ConceptImpl</a>(lifeCycleManager);
+<a name="511" href="#511">511</a> concept.setKey(lifeCycleManager.createKey(tmodel.getTModelKey()));
+<a name="512" href="#512">512</a> concept.setName(lifeCycleManager.createInternationalString(getLocale(tmodel.getName().getLang()),
+<a name="513" href="#513">513</a> tmodel.getName().getValue()));
+<a name="514" href="#514">514</a>
+<a name="515" href="#515">515</a> Description desc = getDescription(tmodel);
+<a name="516" href="#516">516</a> <strong class="jxr_keyword">if</strong> (desc != <strong class="jxr_keyword">null</strong>) {
+<a name="517" href="#517">517</a> concept.setDescription(lifeCycleManager.createInternationalString(getLocale(desc.getLang()),
+<a name="518" href="#518">518</a> desc.getValue()));
+<a name="519" href="#519">519</a> }
+<a name="520" href="#520">520</a>
+<a name="521" href="#521">521</a> concept.addExternalIdentifiers(getExternalIdentifiers(tmodel.getIdentifierBag(), lifeCycleManager));
+<a name="522" href="#522">522</a> concept.addClassifications(getClassifications(tmodel.getCategoryBag(), lifeCycleManager));
+<a name="523" href="#523">523</a>
+<a name="524" href="#524">524</a> <strong class="jxr_keyword">return</strong> concept;
+<a name="525" href="#525">525</a> }
+<a name="526" href="#526">526</a>
+<a name="527" href="#527">527</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Concept getConcept(TModelInfo tModelInfo, LifeCycleManager lifeCycleManager)
+<a name="528" href="#528">528</a> <strong class="jxr_keyword">throws</strong> JAXRException
+<a name="529" href="#529">529</a> {
[... 111 lines stripped ...]
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org