ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chamik...@apache.org
Subject svn commit: r349924 [20/22] - in /webservices/site/trunk/targets/sandesha: ./ sandesha2/ sandesha2/images/ sandesha2/images/logos/ sandesha2/style/ sandesha2/xref-test/ sandesha2/xref-test/org/ sandesha2/xref-test/org/apache/ sandesha2/xref-test/org/ap...
Date Wed, 30 Nov 2005 11:17:58 GMT
Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/CreateSequence.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/CreateSequence.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/CreateSequence.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/CreateSequence.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,171 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CreateSequence xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/CreateSequence.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  1999-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.soap.SOAPBody;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a>  <em> * Represent the CreateSequence body element.</em>
+<a name="31" href="#31">31</a>  <em> * </em>
+<a name="32" href="#32">32</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="33" href="#33">33</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="34" href="#34">34</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="35" href="#35">35</a>  <em> */</em>
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequence.html">CreateSequence</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMPart.html">IOMRMPart</a> {
+<a name="38" href="#38">38</a>  	<strong>private</strong> OMElement createSequenceElement;
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcksTo.html">AcksTo</a> acksTo = <strong>null</strong>;
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/Expires.html">Expires</a> expires = <strong>null</strong>;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceOffer.html">SequenceOffer</a> sequenceOffer = <strong>null</strong>;
+<a name="45" href="#45">45</a>  	
+<a name="46" href="#46">46</a>  	<strong>private</strong> SOAPFactory factory;
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  	<em class="comment">//private SequritytokenReference;</em>
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>  	OMNamespace rmNamespace = <strong>null</strong>;
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequence.html">CreateSequence</a>(SOAPFactory factory) {
+<a name="53" href="#53">53</a>  		<strong>this</strong>.factory = factory;
+<a name="54" href="#54">54</a>  		rmNamespace = factory.createOMNamespace(
+<a name="55" href="#55">55</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="56" href="#56">56</a>  		createSequenceElement = factory.createOMElement(
+<a name="57" href="#57">57</a>  				Sandesha2Constants.WSRM.CREATE_SEQUENCE, rmNamespace);
+<a name="58" href="#58">58</a>  	}
+<a name="59" href="#59">59</a>  	
+<a name="60" href="#60">60</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequence.html">CreateSequence</a> (AcksTo acksTo,SOAPFactory factory) {
+<a name="61" href="#61">61</a>  		<strong>this</strong> (factory);
+<a name="62" href="#62">62</a>  		<strong>this</strong>.acksTo = acksTo;
+<a name="63" href="#63">63</a>  	}
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="66" href="#66">66</a>  		<strong>return</strong> createSequenceElement;
+<a name="67" href="#67">67</a>  	}
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>  	<strong>public</strong> Object fromOMElement(OMElement bodyElement) throws OMException {
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>  		OMElement createSequencePart = bodyElement
+<a name="72" href="#72">72</a>  				.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="73" href="#73">73</a>  						Sandesha2Constants.WSRM.CREATE_SEQUENCE));
+<a name="74" href="#74">74</a>  		<strong>if</strong> (createSequencePart == <strong>null</strong>)
+<a name="75" href="#75">75</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="76" href="#76">76</a>  					<span class="string">"Create sequence is not present in the passed element"</span>);
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>  		createSequenceElement = factory.createOMElement(
+<a name="79" href="#79">79</a>  				Sandesha2Constants.WSRM.CREATE_SEQUENCE, rmNamespace);
+<a name="80" href="#80">80</a>  
+<a name="81" href="#81">81</a>  		acksTo = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcksTo.html">AcksTo</a>(factory);
+<a name="82" href="#82">82</a>  		acksTo.fromOMElement(createSequencePart);
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>  		OMElement offerPart = createSequencePart
+<a name="85" href="#85">85</a>  				.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="86" href="#86">86</a>  						Sandesha2Constants.WSRM.SEQUENCE_OFFER));
+<a name="87" href="#87">87</a>  		<strong>if</strong> (offerPart != <strong>null</strong>) {
+<a name="88" href="#88">88</a>  			sequenceOffer = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceOffer.html">SequenceOffer</a>(factory);
+<a name="89" href="#89">89</a>  			sequenceOffer.fromOMElement(createSequencePart);
+<a name="90" href="#90">90</a>  		}
+<a name="91" href="#91">91</a>  
+<a name="92" href="#92">92</a>  		OMElement expiresPart = createSequenceElement
+<a name="93" href="#93">93</a>  				.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="94" href="#94">94</a>  						Sandesha2Constants.WSRM.EXPIRES));
+<a name="95" href="#95">95</a>  		<strong>if</strong> (expiresPart != <strong>null</strong>) {
+<a name="96" href="#96">96</a>  			expires = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/Expires.html">Expires</a>(factory);
+<a name="97" href="#97">97</a>  			expires.fromOMElement(createSequencePart);
+<a name="98" href="#98">98</a>  		}
+<a name="99" href="#99">99</a>  
+<a name="100" href="#100">100</a> 		<strong>return</strong> <strong>this</strong>;
+<a name="101" href="#101">101</a> 	}
+<a name="102" href="#102">102</a> 
+<a name="103" href="#103">103</a> 	<strong>public</strong> OMElement toOMElement(OMElement bodyElement) throws OMException {
+<a name="104" href="#104">104</a> 
+<a name="105" href="#105">105</a> 		<strong>if</strong> (bodyElement == <strong>null</strong> || !(bodyElement instanceof SOAPBody))
+<a name="106" href="#106">106</a> 			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="107" href="#107">107</a> 					<span class="string">"Cant add Create Sequence Part to a non-body element"</span>);
+<a name="108" href="#108">108</a> 
+<a name="109" href="#109">109</a> 		<strong>if</strong> (acksTo == <strong>null</strong>)
+<a name="110" href="#110">110</a> 			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="111" href="#111">111</a> 					<span class="string">"Cant add create seqeunce part, having acks to as null"</span>);
+<a name="112" href="#112">112</a> 
+<a name="113" href="#113">113</a> 		SOAPBody soapBody = (SOAPBody) bodyElement;
+<a name="114" href="#114">114</a> 		acksTo.toOMElement(createSequenceElement);
+<a name="115" href="#115">115</a> 
+<a name="116" href="#116">116</a> 		<strong>if</strong> (sequenceOffer != <strong>null</strong>) {
+<a name="117" href="#117">117</a> 			sequenceOffer.toOMElement(createSequenceElement);
+<a name="118" href="#118">118</a> 		}
+<a name="119" href="#119">119</a> 
+<a name="120" href="#120">120</a> 		<strong>if</strong> (expires != <strong>null</strong>) {
+<a name="121" href="#121">121</a> 			expires.toOMElement(createSequenceElement);
+<a name="122" href="#122">122</a> 		}
+<a name="123" href="#123">123</a> 
+<a name="124" href="#124">124</a> 		soapBody.addChild(createSequenceElement);
+<a name="125" href="#125">125</a> 
+<a name="126" href="#126">126</a> 		createSequenceElement = factory.createOMElement(
+<a name="127" href="#127">127</a> 				Sandesha2Constants.WSRM.CREATE_SEQUENCE, rmNamespace);
+<a name="128" href="#128">128</a> 		<strong>return</strong> soapBody;
+<a name="129" href="#129">129</a> 	}
+<a name="130" href="#130">130</a> 
+<a name="131" href="#131">131</a> 	<strong>public</strong> <strong>void</strong> setAcksTo(<a href="../../../../org/apache/sandesha2/wsrm/AcksTo.html">AcksTo</a> acksTo) {
+<a name="132" href="#132">132</a> 		<strong>this</strong>.acksTo = acksTo;
+<a name="133" href="#133">133</a> 	}
+<a name="134" href="#134">134</a> 
+<a name="135" href="#135">135</a> 	<strong>public</strong> <strong>void</strong> setSequenceOffer(<a href="../../../../org/apache/sandesha2/wsrm/SequenceOffer.html">SequenceOffer</a> sequenceOffer) {
+<a name="136" href="#136">136</a> 		<strong>this</strong>.sequenceOffer = sequenceOffer;
+<a name="137" href="#137">137</a> 	}
+<a name="138" href="#138">138</a> 
+<a name="139" href="#139">139</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcksTo.html">AcksTo</a> getAcksTo() {
+<a name="140" href="#140">140</a> 		<strong>return</strong> acksTo;
+<a name="141" href="#141">141</a> 	}
+<a name="142" href="#142">142</a> 
+<a name="143" href="#143">143</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceOffer.html">SequenceOffer</a> getSequenceOffer() {
+<a name="144" href="#144">144</a> 		<strong>return</strong> sequenceOffer;
+<a name="145" href="#145">145</a> 	}
+<a name="146" href="#146">146</a> 
+<a name="147" href="#147">147</a> 	<strong>public</strong> <strong>void</strong> toSOAPEnvelope(SOAPEnvelope envelope) {
+<a name="148" href="#148">148</a> 		SOAPBody body = envelope.getBody();
+<a name="149" href="#149">149</a> 		
+<a name="150" href="#150">150</a> 		<em class="comment">//detach if already exist.</em>
+<a name="151" href="#151">151</a> 		OMElement elem = body.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="152" href="#152">152</a> 				Sandesha2Constants.WSRM.CREATE_SEQUENCE));
+<a name="153" href="#153">153</a> 		<strong>if</strong> (elem!=<strong>null</strong>)
+<a name="154" href="#154">154</a> 			elem.detach();
+<a name="155" href="#155">155</a> 		
+<a name="156" href="#156">156</a> 		toOMElement(body);
+<a name="157" href="#157">157</a> 	}
+<a name="158" href="#158">158</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/CreateSequenceResponse.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/CreateSequenceResponse.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/CreateSequenceResponse.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/CreateSequenceResponse.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,186 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CreateSequenceResponse xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/CreateSequenceResponse.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  1999-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.soap.SOAPBody;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a>  <em> * Adds the CreateSequenceResponse body part.</em>
+<a name="31" href="#31">31</a>  <em> * </em>
+<a name="32" href="#32">32</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="33" href="#33">33</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="34" href="#34">34</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="35" href="#35">35</a>  <em> */</em>
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequenceResponse.html">CreateSequenceResponse</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMPart.html">IOMRMPart</a> {
+<a name="38" href="#38">38</a>  	<strong>private</strong> OMElement createSequenceResponseElement;
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> identifier;
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/Accept.html">Accept</a> accept;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/Expires.html">Expires</a> expires;
+<a name="45" href="#45">45</a>  	
+<a name="46" href="#46">46</a>  	SOAPFactory factory;
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  	OMNamespace createSeqResNoNamespace = <strong>null</strong>;
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequenceResponse.html">CreateSequenceResponse</a>(SOAPFactory factory) {
+<a name="51" href="#51">51</a>  		<strong>this</strong>.factory = factory;
+<a name="52" href="#52">52</a>  		createSeqResNoNamespace = factory.createOMNamespace(
+<a name="53" href="#53">53</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="54" href="#54">54</a>  		createSequenceResponseElement = factory.createOMElement(
+<a name="55" href="#55">55</a>  				Sandesha2Constants.WSRM.CREATE_SEQUENCE_RESPONSE,
+<a name="56" href="#56">56</a>  				createSeqResNoNamespace);
+<a name="57" href="#57">57</a>  	}
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="60" href="#60">60</a>  		<strong>return</strong> createSequenceResponseElement;
+<a name="61" href="#61">61</a>  	}
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>  	<strong>public</strong> Object fromOMElement(OMElement bodyElement) throws OMException {
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  		<strong>if</strong> (bodyElement == <strong>null</strong> || !(bodyElement instanceof SOAPBody))
+<a name="66" href="#66">66</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="67" href="#67">67</a>  					<span class="string">"Cant get create sequnce response from a non-body element"</span>);
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>  		SOAPBody SOAPBody = (SOAPBody) bodyElement;
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>  		OMElement createSeqResponsePart = SOAPBody
+<a name="72" href="#72">72</a>  				.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="73" href="#73">73</a>  						Sandesha2Constants.WSRM.CREATE_SEQUENCE_RESPONSE));
+<a name="74" href="#74">74</a>  		<strong>if</strong> (createSeqResponsePart == <strong>null</strong>)
+<a name="75" href="#75">75</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="76" href="#76">76</a>  					<span class="string">"The passed element does not contain a create seqence response part"</span>);
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>  		createSequenceResponseElement = factory.createOMElement(
+<a name="79" href="#79">79</a>  				Sandesha2Constants.WSRM.CREATE_SEQUENCE_RESPONSE,
+<a name="80" href="#80">80</a>  				createSeqResNoNamespace);
+<a name="81" href="#81">81</a>  
+<a name="82" href="#82">82</a>  		identifier = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a>(factory);
+<a name="83" href="#83">83</a>  		identifier.fromOMElement(createSeqResponsePart);
+<a name="84" href="#84">84</a>  
+<a name="85" href="#85">85</a>  		OMElement expiresPart = createSeqResponsePart
+<a name="86" href="#86">86</a>  				.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="87" href="#87">87</a>  						Sandesha2Constants.WSRM.EXPIRES));
+<a name="88" href="#88">88</a>  		<strong>if</strong> (expiresPart != <strong>null</strong>) {
+<a name="89" href="#89">89</a>  			expires = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/Expires.html">Expires</a>(factory);
+<a name="90" href="#90">90</a>  			expires.fromOMElement(createSeqResponsePart);
+<a name="91" href="#91">91</a>  		}
+<a name="92" href="#92">92</a>  
+<a name="93" href="#93">93</a>  		OMElement acceptPart = createSeqResponsePart
+<a name="94" href="#94">94</a>  				.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="95" href="#95">95</a>  						Sandesha2Constants.WSRM.ACCEPT));
+<a name="96" href="#96">96</a>  		<strong>if</strong> (acceptPart != <strong>null</strong>) {
+<a name="97" href="#97">97</a>  			accept = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/Accept.html">Accept</a>(factory);
+<a name="98" href="#98">98</a>  			accept.fromOMElement(createSeqResponsePart);
+<a name="99" href="#99">99</a>  		}
+<a name="100" href="#100">100</a> 
+<a name="101" href="#101">101</a> 		<strong>return</strong> <strong>this</strong>;
+<a name="102" href="#102">102</a> 	}
+<a name="103" href="#103">103</a> 
+<a name="104" href="#104">104</a> 	<strong>public</strong> OMElement toOMElement(OMElement bodyElement) throws OMException {
+<a name="105" href="#105">105</a> 
+<a name="106" href="#106">106</a> 		<strong>if</strong> (bodyElement == <strong>null</strong> || !(bodyElement instanceof SOAPBody))
+<a name="107" href="#107">107</a> 			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="108" href="#108">108</a> 					<span class="string">"Cant get create sequnce response from a non-body element"</span>);
+<a name="109" href="#109">109</a> 
+<a name="110" href="#110">110</a> 		SOAPBody SOAPBody = (SOAPBody) bodyElement;
+<a name="111" href="#111">111</a> 
+<a name="112" href="#112">112</a> 		<strong>if</strong> (createSequenceResponseElement == <strong>null</strong>)
+<a name="113" href="#113">113</a> 			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="114" href="#114">114</a> 					<span class="string">"cant set create sequnce response since the internal element is not set"</span>);
+<a name="115" href="#115">115</a> 		<strong>if</strong> (ident<strong>if</strong>ier == <strong>null</strong>)
+<a name="116" href="#116">116</a> 			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="117" href="#117">117</a> 					<span class="string">"cant set create sequnce response since the Identifier is not set"</span>);
+<a name="118" href="#118">118</a> 
+<a name="119" href="#119">119</a> 		identifier.toOMElement(createSequenceResponseElement);
+<a name="120" href="#120">120</a> 
+<a name="121" href="#121">121</a> 		<strong>if</strong> (expires != <strong>null</strong>) {
+<a name="122" href="#122">122</a> 			expires.toOMElement(createSequenceResponseElement);
+<a name="123" href="#123">123</a> 		}
+<a name="124" href="#124">124</a> 
+<a name="125" href="#125">125</a> 		<strong>if</strong> (accept != <strong>null</strong>) {
+<a name="126" href="#126">126</a> 			accept.toOMElement(createSequenceResponseElement);
+<a name="127" href="#127">127</a> 		}
+<a name="128" href="#128">128</a> 
+<a name="129" href="#129">129</a> 		SOAPBody.addChild(createSequenceResponseElement);
+<a name="130" href="#130">130</a> 
+<a name="131" href="#131">131</a> 		createSequenceResponseElement = factory.createOMElement(
+<a name="132" href="#132">132</a> 				Sandesha2Constants.WSRM.CREATE_SEQUENCE_RESPONSE,
+<a name="133" href="#133">133</a> 				createSeqResNoNamespace);
+<a name="134" href="#134">134</a> 
+<a name="135" href="#135">135</a> 		<strong>return</strong> SOAPBody;
+<a name="136" href="#136">136</a> 	}
+<a name="137" href="#137">137</a> 
+<a name="138" href="#138">138</a> 	<strong>public</strong> <strong>void</strong> setIdentifier(<a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> identifier) {
+<a name="139" href="#139">139</a> 		<strong>this</strong>.identifier = identifier;
+<a name="140" href="#140">140</a> 	}
+<a name="141" href="#141">141</a> 
+<a name="142" href="#142">142</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> getIdentifier() {
+<a name="143" href="#143">143</a> 		<strong>return</strong> identifier;
+<a name="144" href="#144">144</a> 	}
+<a name="145" href="#145">145</a> 
+<a name="146" href="#146">146</a> 	<strong>public</strong> <strong>void</strong> setAccept(<a href="../../../../org/apache/sandesha2/wsrm/Accept.html">Accept</a> accept) {
+<a name="147" href="#147">147</a> 		<strong>this</strong>.accept = accept;
+<a name="148" href="#148">148</a> 	}
+<a name="149" href="#149">149</a> 
+<a name="150" href="#150">150</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Accept.html">Accept</a> getAccept() {
+<a name="151" href="#151">151</a> 		<strong>return</strong> accept;
+<a name="152" href="#152">152</a> 	}
+<a name="153" href="#153">153</a> 
+<a name="154" href="#154">154</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Expires.html">Expires</a> getExpires() {
+<a name="155" href="#155">155</a> 		<strong>return</strong> expires;
+<a name="156" href="#156">156</a> 	}
+<a name="157" href="#157">157</a> 
+<a name="158" href="#158">158</a> 	<strong>public</strong> <strong>void</strong> setExpires(<a href="../../../../org/apache/sandesha2/wsrm/Expires.html">Expires</a> expires) {
+<a name="159" href="#159">159</a> 		<strong>this</strong>.expires = expires;
+<a name="160" href="#160">160</a> 	}
+<a name="161" href="#161">161</a> 
+<a name="162" href="#162">162</a> 	<strong>public</strong> <strong>void</strong> toSOAPEnvelope(SOAPEnvelope envelope) {
+<a name="163" href="#163">163</a> 		SOAPBody body = envelope.getBody();
+<a name="164" href="#164">164</a> 		
+<a name="165" href="#165">165</a> 		<em class="comment">//detach if already exist.</em>
+<a name="166" href="#166">166</a> 		OMElement elem = body.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="167" href="#167">167</a> 				Sandesha2Constants.WSRM.CREATE_SEQUENCE_RESPONSE));
+<a name="168" href="#168">168</a> 		<strong>if</strong> (elem!=<strong>null</strong>)
+<a name="169" href="#169">169</a> 			elem.detach();
+<a name="170" href="#170">170</a> 		
+<a name="171" href="#171">171</a> 		toOMElement(body);
+<a name="172" href="#172">172</a> 	}
+<a name="173" href="#173">173</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Expires.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Expires.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Expires.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Expires.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,118 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Expires xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/Expires.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  1999-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  
+<a name="18" href="#18">18</a>  <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <em>/**<em>*</em></em>
+<a name="29" href="#29">29</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="30" href="#30">30</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="31" href="#31">31</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="32" href="#32">32</a>  <em> */</em>
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/Expires.html">Expires</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>  	SOAPFactory factory;
+<a name="37" href="#37">37</a>  	
+<a name="38" href="#38">38</a>  	OMNamespace rmNamespace = <strong>null</strong>;
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>  	OMElement expiresElement = <strong>null</strong>;
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  	String duration = <strong>null</strong>;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Expires.html">Expires</a>(SOAPFactory factory) {
+<a name="45" href="#45">45</a>  		<strong>this</strong>.factory = factory;
+<a name="46" href="#46">46</a>  		rmNamespace = factory.createOMNamespace(
+<a name="47" href="#47">47</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="48" href="#48">48</a>  		expiresElement = factory.createOMElement(
+<a name="49" href="#49">49</a>  				Sandesha2Constants.WSRM.EXPIRES, rmNamespace);
+<a name="50" href="#50">50</a>  	}
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>  	<strong>public</strong> Object fromOMElement(OMElement element) throws OMException {
+<a name="53" href="#53">53</a>  		OMElement expiresPart = element.getFirstChildWithName(<strong>new</strong> QName(
+<a name="54" href="#54">54</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.EXPIRES));
+<a name="55" href="#55">55</a>  		<strong>if</strong> (expiresPart == <strong>null</strong>)
+<a name="56" href="#56">56</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="57" href="#57">57</a>  					<span class="string">"Passed elemenet does not have a Expires part"</span>);
+<a name="58" href="#58">58</a>  		String expiresText = expiresPart.getText();
+<a name="59" href="#59">59</a>  		<strong>if</strong> (expiresText == <strong>null</strong> || expiresText == <span class="string">""</span>)
+<a name="60" href="#60">60</a>  			<strong>throw</strong> <strong>new</strong> OMException(<span class="string">"The duration value is not valid"</span>);
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  		expiresElement = factory.createOMElement(
+<a name="63" href="#63">63</a>  				Sandesha2Constants.WSRM.EXPIRES, rmNamespace);
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  		duration = expiresText;
+<a name="66" href="#66">66</a>  		<strong>return</strong> element;
+<a name="67" href="#67">67</a>  	}
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="70" href="#70">70</a>  		<em class="comment">// TODO Auto-generated method stub</em>
+<a name="71" href="#71">71</a>  		<strong>return</strong> expiresElement;
+<a name="72" href="#72">72</a>  	}
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>  	<strong>public</strong> OMElement toOMElement(OMElement element) throws OMException {
+<a name="75" href="#75">75</a>  		<strong>if</strong> (expiresElement == <strong>null</strong>)
+<a name="76" href="#76">76</a>  			<strong>throw</strong> <strong>new</strong> OMException(<span class="string">"Cant set Expires. It is null"</span>);
+<a name="77" href="#77">77</a>  		<strong>if</strong> (duration == <strong>null</strong> || duration == <span class="string">""</span>)
+<a name="78" href="#78">78</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="79" href="#79">79</a>  					<span class="string">"Cant set Expires. The duration value is not set"</span>);
+<a name="80" href="#80">80</a>  
+<a name="81" href="#81">81</a>  		expiresElement.setText(duration);
+<a name="82" href="#82">82</a>  		element.addChild(expiresElement);
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>  		expiresElement = factory.createOMElement(
+<a name="85" href="#85">85</a>  				Sandesha2Constants.WSRM.EXPIRES, rmNamespace);
+<a name="86" href="#86">86</a>  
+<a name="87" href="#87">87</a>  		<strong>return</strong> element;
+<a name="88" href="#88">88</a>  	}
+<a name="89" href="#89">89</a>  
+<a name="90" href="#90">90</a>  	<strong>public</strong> String getDuration() {
+<a name="91" href="#91">91</a>  		<strong>return</strong> duration;
+<a name="92" href="#92">92</a>  	}
+<a name="93" href="#93">93</a>  
+<a name="94" href="#94">94</a>  	<strong>public</strong> <strong>void</strong> setDuration(String duration) {
+<a name="95" href="#95">95</a>  		<strong>this</strong>.duration = duration;
+<a name="96" href="#96">96</a>  	}
+<a name="97" href="#97">97</a>  
+<a name="98" href="#98">98</a>  	<strong>public</strong> OMElement getExpiresElement() {
+<a name="99" href="#99">99</a>  		<strong>return</strong> expiresElement;
+<a name="100" href="#100">100</a> 	}
+<a name="101" href="#101">101</a> 
+<a name="102" href="#102">102</a> 	<strong>public</strong> <strong>void</strong> setExpiresElement(OMElement expiresElement) {
+<a name="103" href="#103">103</a> 		<strong>this</strong>.expiresElement = expiresElement;
+<a name="104" href="#104">104</a> 	}
+<a name="105" href="#105">105</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/FaultCode.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/FaultCode.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/FaultCode.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/FaultCode.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,119 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>FaultCode xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/FaultCode.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  1999-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  <em>/**<em>*</em></em>
+<a name="28" href="#28">28</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="29" href="#29">29</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="30" href="#30">30</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="31" href="#31">31</a>  <em> */</em>
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/FaultCode.html">FaultCode</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>private</strong> OMElement faultCodeElement;
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  	String faultCode = <strong>null</strong>;
+<a name="38" href="#38">38</a>  	
+<a name="39" href="#39">39</a>  	SOAPFactory factory;
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  	OMNamespace rmNameSpace = <strong>null</strong>;
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/FaultCode.html">FaultCode</a>(SOAPFactory factory) {
+<a name="44" href="#44">44</a>  		<strong>this</strong>.factory = factory;
+<a name="45" href="#45">45</a>  		rmNameSpace = factory.createOMNamespace(
+<a name="46" href="#46">46</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="47" href="#47">47</a>  		faultCodeElement = factory.createOMElement(
+<a name="48" href="#48">48</a>  				Sandesha2Constants.WSRM.FAULT_CODE, rmNameSpace);
+<a name="49" href="#49">49</a>  	}
+<a name="50" href="#50">50</a>  
+<a name="51" href="#51">51</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="52" href="#52">52</a>  		<strong>return</strong> faultCodeElement;
+<a name="53" href="#53">53</a>  	}
+<a name="54" href="#54">54</a>  
+<a name="55" href="#55">55</a>  	<strong>public</strong> Object fromOMElement(OMElement sequenceFault) throws OMException {
+<a name="56" href="#56">56</a>  
+<a name="57" href="#57">57</a>  		<strong>if</strong> (sequenceFault == <strong>null</strong>)
+<a name="58" href="#58">58</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="59" href="#59">59</a>  					<span class="string">"Can't add Fault Code part since the passed element is null"</span>);
+<a name="60" href="#60">60</a>  
+<a name="61" href="#61">61</a>  		OMElement faultCodePart = sequenceFault
+<a name="62" href="#62">62</a>  				.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_PREFIX_RM,
+<a name="63" href="#63">63</a>  						Sandesha2Constants.WSRM.FAULT_CODE));
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  		<strong>if</strong> (faultCodePart == <strong>null</strong>)
+<a name="66" href="#66">66</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="67" href="#67">67</a>  					<span class="string">"Passed element does not contain a Fauld Code part"</span>);
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>  		<strong>this</strong>.faultCode = faultCodePart.getText();
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>  		faultCodeElement = factory.createOMElement(
+<a name="72" href="#72">72</a>  				Sandesha2Constants.WSRM.FAULT_CODE, rmNameSpace);
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>  		<strong>return</strong> sequenceFault;
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  	}
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>  	<strong>public</strong> OMElement toOMElement(OMElement sequenceFault) throws OMException {
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>  		<strong>if</strong> (sequenceFault == <strong>null</strong>)
+<a name="81" href="#81">81</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="82" href="#82">82</a>  					<span class="string">"Can't add Fault Code part since the passed element is null"</span>);
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>  		<strong>if</strong> (faultCode == <strong>null</strong> || faultCode == <span class="string">""</span>)
+<a name="85" href="#85">85</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="86" href="#86">86</a>  					<span class="string">"Cant add fault code since the the value is not set correctly."</span>);
+<a name="87" href="#87">87</a>  
+<a name="88" href="#88">88</a>  		<strong>if</strong> (faultCodeElement == <strong>null</strong>)
+<a name="89" href="#89">89</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="90" href="#90">90</a>  					<span class="string">"Cant add the fault code since the internal element is null"</span>);
+<a name="91" href="#91">91</a>  
+<a name="92" href="#92">92</a>  		faultCodeElement.setText(faultCode);
+<a name="93" href="#93">93</a>  		sequenceFault.addChild(faultCodeElement);
+<a name="94" href="#94">94</a>  
+<a name="95" href="#95">95</a>  		<strong>return</strong> sequenceFault;
+<a name="96" href="#96">96</a>  	}
+<a name="97" href="#97">97</a>      
+<a name="98" href="#98">98</a>      <strong>public</strong> <strong>void</strong> setFaultCode(String faultCode) {
+<a name="99" href="#99">99</a>          <strong>this</strong>.faultCode = faultCode;
+<a name="100" href="#100">100</a>     }
+<a name="101" href="#101">101</a>     
+<a name="102" href="#102">102</a>     <strong>public</strong> String getFaultCode() {
+<a name="103" href="#103">103</a>         <strong>return</strong> faultCode;
+<a name="104" href="#104">104</a>     }
+<a name="105" href="#105">105</a> 
+<a name="106" href="#106">106</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/IOMRMElement.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/IOMRMElement.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/IOMRMElement.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/IOMRMElement.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,47 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>IOMRMElement xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/IOMRMElement.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  1999-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <em>/**<em>*</em></em>
+<a name="20" href="#20">20</a>  <em> * This is the base interface for all RM infoset objects.</em>
+<a name="21" href="#21">21</a>  <em> * </em>
+<a name="22" href="#22">22</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="23" href="#23">23</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="24" href="#24">24</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="25" href="#25">25</a>  <em> */</em>
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="31" href="#31">31</a>  	<strong>public</strong> OMElement getOMElement() throws OMException;
+<a name="32" href="#32">32</a>  	<strong>public</strong> Object fromOMElement(OMElement element) throws OMException;
+<a name="33" href="#33">33</a>  	<strong>public</strong> OMElement toOMElement(OMElement element) throws OMException;
+<a name="34" href="#34">34</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/IOMRMPart.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/IOMRMPart.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/IOMRMPart.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/IOMRMPart.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,46 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>IOMRMPart xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/IOMRMPart.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  1999-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  
+<a name="18" href="#18">18</a>  <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <em>/**<em>*</em></em>
+<a name="23" href="#23">23</a>  <em> * This is the base interface for RM infoset objects that are added directly so </em>
+<a name="24" href="#24">24</a>  <em> * SOAPBody or SOAPHeader (we call them MessageParts).</em>
+<a name="25" href="#25">25</a>  <em> * </em>
+<a name="26" href="#26">26</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="27" href="#27">27</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="28" href="#28">28</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="29" href="#29">29</a>  <em> */</em>
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../org/apache/sandesha2/wsrm/IOMRMPart.html">IOMRMPart</a> <strong>extends</strong> <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="32" href="#32">32</a>  	<strong>public</strong> <strong>void</strong> toSOAPEnvelope (SOAPEnvelope envelope);
+<a name="33" href="#33">33</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Identifier.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Identifier.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Identifier.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Identifier.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,117 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Identifier xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/Identifier.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  1999-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <em>/**<em>*</em></em>
+<a name="20" href="#20">20</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="21" href="#21">21</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="22" href="#22">22</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="23" href="#23">23</a>  <em> */</em>
+<a name="24" href="#24">24</a>  
+<a name="25" href="#25">25</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> implements Sandesha2Constants, <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>private</strong> OMElement identifierElement;
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  	<strong>private</strong> String identifier = <strong>null</strong>;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	OMNamespace wsrmNamespace = <strong>null</strong>;
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  	<strong>private</strong> SOAPFactory factory;
+<a name="42" href="#42">42</a>  	
+<a name="43" href="#43">43</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a>(SOAPFactory factory) {
+<a name="44" href="#44">44</a>  		<strong>this</strong>.factory = factory;
+<a name="45" href="#45">45</a>  		wsrmNamespace = factory.createOMNamespace(
+<a name="46" href="#46">46</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="47" href="#47">47</a>  		identifierElement = factory.createOMElement(
+<a name="48" href="#48">48</a>  				Sandesha2Constants.WSRM.IDENTIFIER, wsrmNamespace);
+<a name="49" href="#49">49</a>  	}
+<a name="50" href="#50">50</a>  
+<a name="51" href="#51">51</a>  	<strong>public</strong> <strong>void</strong> setIndentifer(String identifier) {
+<a name="52" href="#52">52</a>  		<strong>this</strong>.identifier = identifier;
+<a name="53" href="#53">53</a>  	}
+<a name="54" href="#54">54</a>  
+<a name="55" href="#55">55</a>  	<strong>public</strong> String getIdentifier() {
+<a name="56" href="#56">56</a>  		<strong>return</strong> identifier;
+<a name="57" href="#57">57</a>  	}
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="60" href="#60">60</a>  		identifierElement.setText(identifier);
+<a name="61" href="#61">61</a>  		<strong>return</strong> identifierElement;
+<a name="62" href="#62">62</a>  	}
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</a>  	<strong>public</strong> Object fromOMElement(OMElement element) throws OMException {
+<a name="65" href="#65">65</a>  		
+<a name="66" href="#66">66</a>  		OMElement identifierPart = element.getFirstChildWithName(<strong>new</strong> QName(
+<a name="67" href="#67">67</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.IDENTIFIER));
+<a name="68" href="#68">68</a>  		<strong>if</strong> (ident<strong>if</strong>ierPart == <strong>null</strong>)
+<a name="69" href="#69">69</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="70" href="#70">70</a>  					<span class="string">"The parsed element does not contain an identifier part"</span>);
+<a name="71" href="#71">71</a>  		identifierElement = factory.createOMElement(
+<a name="72" href="#72">72</a>  				Sandesha2Constants.WSRM.IDENTIFIER, wsrmNamespace);
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>  		String identifierText = identifierPart.getText();
+<a name="75" href="#75">75</a>  		<strong>if</strong> (ident<strong>if</strong>ierText == <strong>null</strong> || ident<strong>if</strong>ierText == <span class="string">""</span>)
+<a name="76" href="#76">76</a>  			<strong>throw</strong> <strong>new</strong> OMException(<span class="string">"The identifier value is not valid"</span>);
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>  		identifier = identifierText;
+<a name="79" href="#79">79</a>  		<strong>return</strong> <strong>this</strong>;
+<a name="80" href="#80">80</a>  	}
+<a name="81" href="#81">81</a>  
+<a name="82" href="#82">82</a>  	<strong>public</strong> OMElement toOMElement(OMElement element) throws OMException {
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>  		<strong>if</strong> (ident<strong>if</strong>ier == <strong>null</strong> || ident<strong>if</strong>ier == <span class="string">""</span>) {
+<a name="85" href="#85">85</a>  			<strong>throw</strong> <strong>new</strong> OMException(<span class="string">"identifier is not set .. "</span>);
+<a name="86" href="#86">86</a>  		}
+<a name="87" href="#87">87</a>  
+<a name="88" href="#88">88</a>  		identifierElement.setText(identifier);
+<a name="89" href="#89">89</a>  		element.addChild(identifierElement);
+<a name="90" href="#90">90</a>  
+<a name="91" href="#91">91</a>  		identifierElement = factory.createOMElement(
+<a name="92" href="#92">92</a>  				Sandesha2Constants.WSRM.IDENTIFIER, wsrmNamespace);
+<a name="93" href="#93">93</a>  
+<a name="94" href="#94">94</a>  		<strong>return</strong> element;
+<a name="95" href="#95">95</a>  	}
+<a name="96" href="#96">96</a>  
+<a name="97" href="#97">97</a>  	<strong>public</strong> String toString() {
+<a name="98" href="#98">98</a>  		<strong>return</strong> identifier;
+<a name="99" href="#99">99</a>  	}
+<a name="100" href="#100">100</a> 
+<a name="101" href="#101">101</a> 	<strong>public</strong> <strong>int</strong> hashCode() {
+<a name="102" href="#102">102</a> 		<strong>return</strong> identifier.hashCode();
+<a name="103" href="#103">103</a> 	}
+<a name="104" href="#104">104</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/LastMessage.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/LastMessage.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/LastMessage.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/LastMessage.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,103 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>LastMessage xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/LastMessage.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  1999-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  <em>/**<em>*</em></em>
+<a name="28" href="#28">28</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="29" href="#29">29</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="30" href="#30">30</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="31" href="#31">31</a>  <em> */</em>
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/LastMessage.html">LastMessage</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>private</strong> OMElement lastMessageElement;
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  	OMNamespace rmNamespace = <strong>null</strong>;
+<a name="38" href="#38">38</a>  	
+<a name="39" href="#39">39</a>  	SOAPFactory factory;
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/LastMessage.html">LastMessage</a>(SOAPFactory factory) {
+<a name="42" href="#42">42</a>  		<strong>this</strong>.factory = factory;
+<a name="43" href="#43">43</a>  		rmNamespace = factory.createOMNamespace(
+<a name="44" href="#44">44</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="45" href="#45">45</a>  		lastMessageElement = factory.createOMElement(
+<a name="46" href="#46">46</a>  				Sandesha2Constants.WSRM.LAST_MSG, rmNamespace);
+<a name="47" href="#47">47</a>  	}
+<a name="48" href="#48">48</a>  
+<a name="49" href="#49">49</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="50" href="#50">50</a>  		<strong>return</strong> lastMessageElement;
+<a name="51" href="#51">51</a>  	}
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>  	<strong>public</strong> Object fromOMElement(OMElement element) throws OMException {
+<a name="54" href="#54">54</a>  		OMElement lastMessagePart = element.getFirstChildWithName(<strong>new</strong> QName(
+<a name="55" href="#55">55</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.LAST_MSG));
+<a name="56" href="#56">56</a>  		<strong>if</strong> (lastMessagePart == <strong>null</strong>)
+<a name="57" href="#57">57</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="58" href="#58">58</a>  					<span class="string">"The passed element does not contain a Last Message part"</span>);
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>  		lastMessageElement = factory.createOMElement(
+<a name="61" href="#61">61</a>  				Sandesha2Constants.WSRM.LAST_MSG, rmNamespace);
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>  		<strong>return</strong> <strong>this</strong>;
+<a name="64" href="#64">64</a>  	}
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>  	<strong>public</strong> OMElement toOMElement(OMElement sequenceElement) throws OMException {
+<a name="67" href="#67">67</a>  		<em class="comment">//soapheaderblock element will be given</em>
+<a name="68" href="#68">68</a>  		<strong>if</strong> (lastMessageElement == <strong>null</strong>)
+<a name="69" href="#69">69</a>  			<strong>throw</strong> <strong>new</strong> OMException(<span class="string">"Cant set last message element. It is null"</span>);
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>  		sequenceElement.addChild(lastMessageElement);
+<a name="72" href="#72">72</a>  
+<a name="73" href="#73">73</a>  		lastMessageElement = factory.createOMElement(
+<a name="74" href="#74">74</a>  				Sandesha2Constants.WSRM.LAST_MSG, rmNamespace);
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  		<strong>return</strong> sequenceElement;
+<a name="77" href="#77">77</a>  	}
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>  	<strong>public</strong> <strong>void</strong> setLastMessageElement(OMElement lastMsgElement) {
+<a name="80" href="#80">80</a>  		lastMessageElement = lastMsgElement;
+<a name="81" href="#81">81</a>  	}
+<a name="82" href="#82">82</a>  
+<a name="83" href="#83">83</a>  	<strong>public</strong> OMElement getLastMessageElement() {
+<a name="84" href="#84">84</a>  		<strong>return</strong> lastMessageElement;
+<a name="85" href="#85">85</a>  	}
+<a name="86" href="#86">86</a>  
+<a name="87" href="#87">87</a>  	<strong>public</strong> <strong>boolean</strong> isPresent() {
+<a name="88" href="#88">88</a>  		<strong>return</strong> (lastMessageElement != <strong>null</strong>) ? <strong>true</strong> : false;
+<a name="89" href="#89">89</a>  	}
+<a name="90" href="#90">90</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/MessageNumber.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/MessageNumber.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/MessageNumber.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/MessageNumber.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,103 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>MessageNumber xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/MessageNumber.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  1999-2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  <em>/**<em>*</em></em>
+<a name="28" href="#28">28</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="29" href="#29">29</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="30" href="#30">30</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="31" href="#31">31</a>  <em> */</em>
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/MessageNumber.html">MessageNumber</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="34" href="#34">34</a>  	
+<a name="35" href="#35">35</a>  	<strong>private</strong> <strong>long</strong> messageNumber;
+<a name="36" href="#36">36</a>  	<strong>private</strong> OMElement messageNoElement;
+<a name="37" href="#37">37</a>  	
+<a name="38" href="#38">38</a>  	OMNamespace rmNamespace = <strong>null</strong>;
+<a name="39" href="#39">39</a>  	
+<a name="40" href="#40">40</a>  	SOAPFactory factory;
+<a name="41" href="#41">41</a>  	
+<a name="42" href="#42">42</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/MessageNumber.html">MessageNumber</a>(SOAPFactory factory){
+<a name="43" href="#43">43</a>  		<strong>this</strong>.factory = factory;
+<a name="44" href="#44">44</a>  	    rmNamespace = factory.createOMNamespace(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="45" href="#45">45</a>  		messageNoElement = factory.createOMElement(Sandesha2Constants.WSRM.MSG_NUMBER,rmNamespace);
+<a name="46" href="#46">46</a>  	}
+<a name="47" href="#47">47</a>  	
+<a name="48" href="#48">48</a>  	<strong>public</strong> <strong>long</strong> getMessageNumber(){
+<a name="49" href="#49">49</a>  		<strong>return</strong> messageNumber;
+<a name="50" href="#50">50</a>  	}
+<a name="51" href="#51">51</a>  	<strong>public</strong> <strong>void</strong> setMessageNumber(<strong>long</strong> messageNumber){
+<a name="52" href="#52">52</a>  		<strong>this</strong>.messageNumber = messageNumber;
+<a name="53" href="#53">53</a>  	}
+<a name="54" href="#54">54</a>  	
+<a name="55" href="#55">55</a>  	<strong>public</strong> Object fromOMElement(OMElement seqenceElement) throws OMException {
+<a name="56" href="#56">56</a>  		OMElement msgNumberPart = seqenceElement.getFirstChildWithName( 
+<a name="57" href="#57">57</a>  				<strong>new</strong> QName (Sandesha2Constants.WSRM.NS_URI_RM,Sandesha2Constants.WSRM.MSG_NUMBER));
+<a name="58" href="#58">58</a>  		<strong>if</strong> (msgNumberPart==<strong>null</strong>)
+<a name="59" href="#59">59</a>  			<strong>throw</strong> <strong>new</strong> OMException (<span class="string">"The passed sequnce element does not contain a message number part"</span>);
+<a name="60" href="#60">60</a>  		
+<a name="61" href="#61">61</a>  		messageNoElement = factory.createOMElement(Sandesha2Constants.WSRM.MSG_NUMBER,rmNamespace);
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>  		String msgNoStr = msgNumberPart.getText();
+<a name="64" href="#64">64</a>  		messageNumber = Long.parseLong(msgNoStr);
+<a name="65" href="#65">65</a>  		<strong>return</strong> <strong>this</strong>;
+<a name="66" href="#66">66</a>  	}
+<a name="67" href="#67">67</a>  	
+<a name="68" href="#68">68</a>  	<strong>public</strong> OMElement toOMElement(OMElement element) throws OMException {
+<a name="69" href="#69">69</a>  		<strong>if</strong> (messageNumber &lt;= 0 ){
+<a name="70" href="#70">70</a>  			<strong>throw</strong> <strong>new</strong> OMException(<span class="string">"Set A Valid Message Number"</span>);
+<a name="71" href="#71">71</a>  		}
+<a name="72" href="#72">72</a>  		
+<a name="73" href="#73">73</a>  		messageNoElement.setText(Long.toString(messageNumber));
+<a name="74" href="#74">74</a>  		element.addChild(messageNoElement);
+<a name="75" href="#75">75</a>  		
+<a name="76" href="#76">76</a>  		messageNoElement = factory.createOMElement(Sandesha2Constants.WSRM.MSG_NUMBER,rmNamespace);
+<a name="77" href="#77">77</a>  		
+<a name="78" href="#78">78</a>  		<strong>return</strong> element;
+<a name="79" href="#79">79</a>  	}
+<a name="80" href="#80">80</a>  	
+<a name="81" href="#81">81</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="82" href="#82">82</a>  		<strong>return</strong> messageNoElement;
+<a name="83" href="#83">83</a>  	}
+<a name="84" href="#84">84</a>  	
+<a name="85" href="#85">85</a>  	<strong>public</strong> OMElement getMessageNumberElement(){
+<a name="86" href="#86">86</a>  		<strong>return</strong> messageNoElement;
+<a name="87" href="#87">87</a>  	}
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>  
+<a name="90" href="#90">90</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+



Mime
View raw message