You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2010/09/24 07:09:57 UTC
svn commit: r1000710 [34/44] - in /incubator/oodt/site/components/maven:
apidocs/org/apache/oodt/grid/ apidocs/org/apache/oodt/grid/class-use/
apidocs/org/apache/oodt/profile/handlers/cas/
apidocs/org/apache/oodt/profile/handlers/cas/class-use/ apidocs...
Added: incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/mapping/TestMappingReader.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/mapping/TestMappingReader.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/mapping/TestMappingReader.html (added)
+++ incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/mapping/TestMappingReader.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,154 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!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" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>TestMappingReader xref</title><link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /></head><body>
+<pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <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="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.xmlps.mapping;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_comment">//APACHE imports</em>
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.mapping.funcs.MappingFunc;
+<a name="22" href="#22" id="22">22</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.structs.CDEValue;
+<a name="23" href="#23" id="23">23</a>
+<a name="24" href="#24" id="24">24</a> <em class="jxr_comment">//JDK imports</em>
+<a name="25" href="#25" id="25">25</a> <strong class="jxr_keyword">import</strong> java.io.InputStream;
+<a name="26" href="#26" id="26">26</a>
+<a name="27" href="#27" id="27">27</a> <em class="jxr_comment">//Junit imports</em>
+<a name="28" href="#28" id="28">28</a> <strong class="jxr_keyword">import</strong> junit.framework.TestCase;
+<a name="29" href="#29" id="29">29</a>
+<a name="30" href="#30" id="30">30</a> <em class="jxr_javadoccomment">/**</em>
+<a name="31" href="#31" id="31">31</a> <em class="jxr_javadoccomment"> * Test suite for XMLPS xml map file reader.</em>
+<a name="32" href="#32" id="32">32</a> <em class="jxr_javadoccomment"> */</em>
+<a name="33" href="#33" id="33">33</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/TestMappingReader.html">TestMappingReader</a> <strong class="jxr_keyword">extends</strong> TestCase {
+<a name="34" href="#34" id="34">34</a>
+<a name="35" href="#35" id="35">35</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String expectedName = <span class="jxr_string">"Test Query Handler"</span>;
+<a name="36" href="#36" id="36">36</a>
+<a name="37" href="#37" id="37">37</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String expectedId = <span class="jxr_string">"urn:oodt:xmlps:testps"</span>;
+<a name="38" href="#38" id="38">38</a>
+<a name="39" href="#39" id="39">39</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> expectedFields = 43;
+<a name="40" href="#40" id="40">40</a>
+<a name="41" href="#41" id="41">41</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String SPECIMEN_CONTACT_EMAIL_TEXT = <span class="jxr_string">"SPECIMEN_CONTACT-EMAIL_TEXT"</span>;
+<a name="42" href="#42" id="42">42</a>
+<a name="43" href="#43" id="43">43</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String SPECIMEN_COLLECTED_CODE = <span class="jxr_string">"SPECIMEN_COLLECTED_CODE"</span>;
+<a name="44" href="#44" id="44">44</a>
+<a name="45" href="#45" id="45">45</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String SPECIMEN_TISSUE_ORGAN_SITE_CODE = <span class="jxr_string">"SPECIMEN_TISSUE_ORGAN-SITE_CODE"</span>;
+<a name="46" href="#46" id="46">46</a>
+<a name="47" href="#47" id="47">47</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String CONTACT_PERSON_EMAIL = <span class="jxr_string">"Brendan.Phalan@med.nyu.edu"</span>;
+<a name="48" href="#48" id="48">48</a>
+<a name="49" href="#49" id="49">49</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String expectedDefaultTable = <span class="jxr_string">"baseline"</span>;
+<a name="50" href="#50" id="50">50</a>
+<a name="51" href="#51" id="51">51</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String expectedJoinFld = <span class="jxr_string">"patient_id"</span>;
+<a name="52" href="#52" id="52">52</a>
+<a name="53" href="#53" id="53">53</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/oodt/xmlps/mapping/TestMappingReader.html">TestMappingReader</a>() {
+<a name="54" href="#54" id="54">54</a>
+<a name="55" href="#55" id="55">55</a> }
+<a name="56" href="#56" id="56">56</a>
+<a name="57" href="#57" id="57">57</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testReadTables() {
+<a name="58" href="#58" id="58">58</a> Mapping mapping = getMappingOrFail();
+<a name="59" href="#59" id="59">59</a> assertNotNull(mapping);
+<a name="60" href="#60" id="60">60</a>
+<a name="61" href="#61" id="61">61</a> assertEquals(1, mapping.getNumTables());
+<a name="62" href="#62" id="62">62</a> assertNull(mapping.getTableByName(<span class="jxr_string">"baseline"</span>));
+<a name="63" href="#63" id="63">63</a> assertNotNull(mapping.getTableByName(<span class="jxr_string">"specimen"</span>));
+<a name="64" href="#64" id="64">64</a> assertNotNull(mapping.getDefaultTable());
+<a name="65" href="#65" id="65">65</a> assertEquals(expectedDefaultTable, mapping.getDefaultTable());
+<a name="66" href="#66" id="66">66</a> assertEquals(expectedJoinFld, mapping.getTableByName(<span class="jxr_string">"specimen"</span>)
+<a name="67" href="#67" id="67">67</a> .getJoinFieldName());
+<a name="68" href="#68" id="68">68</a> }
+<a name="69" href="#69" id="69">69</a>
+<a name="70" href="#70" id="70">70</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testReadBasicInfo() {
+<a name="71" href="#71" id="71">71</a> Mapping mapping = getMappingOrFail();
+<a name="72" href="#72" id="72">72</a>
+<a name="73" href="#73" id="73">73</a> assertNotNull(mapping);
+<a name="74" href="#74" id="74">74</a> assertEquals(expectedName, mapping.getName());
+<a name="75" href="#75" id="75">75</a> assertEquals(expectedId, mapping.getId());
+<a name="76" href="#76" id="76">76</a> }
+<a name="77" href="#77" id="77">77</a>
+<a name="78" href="#78" id="78">78</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testReadFields() {
+<a name="79" href="#79" id="79">79</a> Mapping mapping = getMappingOrFail();
+<a name="80" href="#80" id="80">80</a> assertNotNull(mapping);
+<a name="81" href="#81" id="81">81</a> assertEquals(expectedFields, mapping.getNumFields());
+<a name="82" href="#82" id="82">82</a> containsSpecimenContactEmailTextOrFail(mapping);
+<a name="83" href="#83" id="83">83</a> containsSpecimenCollectedCodeOrFail(mapping);
+<a name="84" href="#84" id="84">84</a>
+<a name="85" href="#85" id="85">85</a> }
+<a name="86" href="#86" id="86">86</a>
+<a name="87" href="#87" id="87">87</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testReadFuncs() {
+<a name="88" href="#88" id="88">88</a> Mapping mapping = getMappingOrFail();
+<a name="89" href="#89" id="89">89</a> assertNotNull(mapping);
+<a name="90" href="#90" id="90">90</a> assertTrue(mapping.getNumFields() > 0);
+<a name="91" href="#91" id="91">91</a>
+<a name="92" href="#92" id="92">92</a> MappingField funcField = mapping
+<a name="93" href="#93" id="93">93</a> .getFieldByName(SPECIMEN_TISSUE_ORGAN_SITE_CODE);
+<a name="94" href="#94" id="94">94</a> assertNotNull(funcField);
+<a name="95" href="#95" id="95">95</a>
+<a name="96" href="#96" id="96">96</a> assertNotNull(funcField.getFuncs());
+<a name="97" href="#97" id="97">97</a> assertEquals(funcField.getFuncs().size(), 1);
+<a name="98" href="#98" id="98">98</a>
+<a name="99" href="#99" id="99">99</a> MappingFunc func = funcField.getFuncs().get(0);
+<a name="100" href="#100" id="100">100</a> CDEValue val = <strong class="jxr_keyword">new</strong> CDEValue(<span class="jxr_string">"test"</span>, <span class="jxr_string">"16"</span>);
+<a name="101" href="#101" id="101">101</a> CDEValue result = func.translate(val);
+<a name="102" href="#102" id="102">102</a> assertNotNull(result);
+<a name="103" href="#103" id="103">103</a> assertEquals(result.getVal(), <span class="jxr_string">"1"</span>);
+<a name="104" href="#104" id="104">104</a> val.setVal(<span class="jxr_string">"235"</span>);
+<a name="105" href="#105" id="105">105</a> result = func.translate(val);
+<a name="106" href="#106" id="106">106</a> assertEquals(result.getVal(), <span class="jxr_string">"235"</span>);
+<a name="107" href="#107" id="107">107</a> }
+<a name="108" href="#108" id="108">108</a>
+<a name="109" href="#109" id="109">109</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> containsSpecimenCollectedCodeOrFail(Mapping mapping) {
+<a name="110" href="#110" id="110">110</a>
+<a name="111" href="#111" id="111">111</a> MappingField fld = mapping.getFieldByName(SPECIMEN_COLLECTED_CODE);
+<a name="112" href="#112" id="112">112</a> assertNotNull(fld);
+<a name="113" href="#113" id="113">113</a> assertTrue(fld.getType().equals(FieldType.DYNAMIC));
+<a name="114" href="#114" id="114">114</a> assertFalse(fld.getType().equals(FieldType.CONSTANT));
+<a name="115" href="#115" id="115">115</a> assertEquals(<span class="jxr_string">"specimen_collected"</span>, fld.getDbName());
+<a name="116" href="#116" id="116">116</a> assertEquals(<span class="jxr_string">"specimen"</span>, fld.getTableName());
+<a name="117" href="#117" id="117">117</a>
+<a name="118" href="#118" id="118">118</a> }
+<a name="119" href="#119" id="119">119</a>
+<a name="120" href="#120" id="120">120</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> containsSpecimenContactEmailTextOrFail(Mapping mapping) {
+<a name="121" href="#121" id="121">121</a> MappingField fld = mapping.getFieldByName(SPECIMEN_CONTACT_EMAIL_TEXT);
+<a name="122" href="#122" id="122">122</a> assertNotNull(fld);
+<a name="123" href="#123" id="123">123</a> assertEquals(fld.getConstantValue(), CONTACT_PERSON_EMAIL);
+<a name="124" href="#124" id="124">124</a> assertTrue(fld.getType().equals(FieldType.CONSTANT));
+<a name="125" href="#125" id="125">125</a> assertFalse(fld.getType().equals(FieldType.DYNAMIC));
+<a name="126" href="#126" id="126">126</a> assertTrue(fld.getScope().equals(FieldScope.RETURN));
+<a name="127" href="#127" id="127">127</a> assertFalse(fld.getScope().equals(FieldScope.QUERY));
+<a name="128" href="#128" id="128">128</a>
+<a name="129" href="#129" id="129">129</a> }
+<a name="130" href="#130" id="130">130</a>
+<a name="131" href="#131" id="131">131</a> <strong class="jxr_keyword">private</strong> Mapping getMappingOrFail() {
+<a name="132" href="#132" id="132">132</a> Mapping mapping = <strong class="jxr_keyword">null</strong>;
+<a name="133" href="#133" id="133">133</a>
+<a name="134" href="#134" id="134">134</a> InputStream configFileIs = TestMappingReader.<strong class="jxr_keyword">class</strong>
+<a name="135" href="#135" id="135">135</a> .getResourceAsStream(<span class="jxr_string">"test-ps.xml"</span>);
+<a name="136" href="#136" id="136">136</a>
+<a name="137" href="#137" id="137">137</a> <strong class="jxr_keyword">try</strong> {
+<a name="138" href="#138" id="138">138</a> mapping = MappingReader.getMapping(configFileIs);
+<a name="139" href="#139" id="139">139</a> } <strong class="jxr_keyword">catch</strong> (Exception e) {
+<a name="140" href="#140" id="140">140</a> e.printStackTrace();
+<a name="141" href="#141" id="141">141</a> fail(e.getMessage());
+<a name="142" href="#142" id="142">142</a> }
+<a name="143" href="#143" id="143">143</a>
+<a name="144" href="#144" id="144">144</a> <strong class="jxr_keyword">return</strong> mapping;
+<a name="145" href="#145" id="145">145</a> }
+<a name="146" href="#146" id="146">146</a>
+<a name="147" href="#147" id="147">147</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/mapping/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/mapping/package-frame.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/mapping/package-frame.html (added)
+++ incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/mapping/package-frame.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.xmlps.mapping</title><link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /></head><body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.apache.oodt.xmlps.mapping</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul><li>
+ <a href="TestMappingReader.html" target="classFrame">TestMappingReader</a>
+ </li>
+ </ul></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/mapping/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/mapping/package-summary.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/mapping/package-summary.html (added)
+++ incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/mapping/package-summary.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,41 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.xmlps.mapping</title><link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /></head><body>
+ <div class="overview">
+ <ul><li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul></div>
+ <div class="framenoframe">
+ <ul><li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul></div>
+
+ <h2>Package org.apache.oodt.xmlps.mapping</h2>
+
+ <table class="summary"><thead><tr><th>Class Summary</th>
+ </tr></thead><tbody><tr><td>
+ <a href="TestMappingReader.html" target="classFrame">TestMappingReader</a>
+ </td>
+ </tr></tbody></table><div class="overview">
+ <ul><li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul></div>
+ <div class="framenoframe">
+ <ul><li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul></div>
+ <hr />
+ Copyright © 1999-2010 Apache Incubator. All Rights Reserved.
+ </body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/product/TestXMLPSProductHandler.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/product/TestXMLPSProductHandler.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/product/TestXMLPSProductHandler.html (added)
+++ incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/product/TestXMLPSProductHandler.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,150 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!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" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>TestXMLPSProductHandler xref</title><link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /></head><body>
+<pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <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="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.xmlps.product;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_comment">//JDK imports</em>
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> java.util.Iterator;
+<a name="22" href="#22" id="22">22</a> <strong class="jxr_keyword">import</strong> java.util.List;
+<a name="23" href="#23" id="23">23</a>
+<a name="24" href="#24" id="24">24</a> <em class="jxr_comment">//APACHE imports</em>
+<a name="25" href="#25" id="25">25</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.util.XMLQueryHelper;
+<a name="26" href="#26" id="26">26</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlquery.QueryElement;
+<a name="27" href="#27" id="27">27</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlquery.XMLQuery;
+<a name="28" href="#28" id="28">28</a>
+<a name="29" href="#29" id="29">29</a> <em class="jxr_comment">//Junit imports</em>
+<a name="30" href="#30" id="30">30</a> <strong class="jxr_keyword">import</strong> junit.framework.TestCase;
+<a name="31" href="#31" id="31">31</a>
+<a name="32" href="#32" id="32">32</a> <em class="jxr_javadoccomment">/**</em>
+<a name="33" href="#33" id="33">33</a> <em class="jxr_javadoccomment"> * Tests the XMLPS product handler.</em>
+<a name="34" href="#34" id="34">34</a> <em class="jxr_javadoccomment"> */</em>
+<a name="35" href="#35" id="35">35</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/oodt/xmlps/product/TestXMLPSProductHandler.html">TestXMLPSProductHandler</a> <strong class="jxr_keyword">extends</strong> TestCase {
+<a name="36" href="#36" id="36">36</a>
+<a name="37" href="#37" id="37">37</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String expectedSpecimenFldName = <span class="jxr_string">"specimen.specimen_collected"</span>;
+<a name="38" href="#38" id="38">38</a>
+<a name="39" href="#39" id="39">39</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> XMLPSProductHandler handler;
+<a name="40" href="#40" id="40">40</a>
+<a name="41" href="#41" id="41">41</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String specimenCollectedCodeField = <span class="jxr_string">"SPECIMEN_COLLECTED_CODE"</span>;
+<a name="42" href="#42" id="42">42</a>
+<a name="43" href="#43" id="43">43</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String studyProtocolIdField = <span class="jxr_string">"STUDY_PROTOCOL_ID"</span>;
+<a name="44" href="#44" id="44">44</a>
+<a name="45" href="#45" id="45">45</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String unconstrainedQuery = <span class="jxr_string">"RETURN = STUDY_PARTICIPANT_ID"</span>;
+<a name="46" href="#46" id="46">46</a>
+<a name="47" href="#47" id="47">47</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String queryStr = specimenCollectedCodeField
+<a name="48" href="#48" id="48">48</a> + <span class="jxr_string">" = 3 AND "</span> + studyProtocolIdField + <span class="jxr_string">" = 71 AND RETURN = "</span>
+<a name="49" href="#49" id="49">49</a> + specimenCollectedCodeField;
+<a name="50" href="#50" id="50">50</a>
+<a name="51" href="#51" id="51">51</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/oodt/xmlps/product/TestXMLPSProductHandler.html">TestXMLPSProductHandler</a>() {
+<a name="52" href="#52" id="52">52</a> System.setProperty(<span class="jxr_string">"org.apache.oodt.xmlps.xml.mapFilePath"</span>,
+<a name="53" href="#53" id="53">53</a> <span class="jxr_string">"./src/test/resources/test-ps.xml"</span>);
+<a name="54" href="#54" id="54">54</a>
+<a name="55" href="#55" id="55">55</a> <strong class="jxr_keyword">try</strong> {
+<a name="56" href="#56" id="56">56</a> handler = <strong class="jxr_keyword">new</strong> XMLPSProductHandler();
+<a name="57" href="#57" id="57">57</a> } <strong class="jxr_keyword">catch</strong> (InstantiationException e) {
+<a name="58" href="#58" id="58">58</a> fail(<span class="jxr_string">"Can't construct test suite: exception building test handler"</span>);
+<a name="59" href="#59" id="59">59</a> }
+<a name="60" href="#60" id="60">60</a> }
+<a name="61" href="#61" id="61">61</a>
+<a name="62" href="#62" id="62">62</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testAllowUnConstrainedQuery(){
+<a name="63" href="#63" id="63">63</a> XMLQuery query = XMLQueryHelper
+<a name="64" href="#64" id="64">64</a> .getDefaultQueryFromQueryString(unconstrainedQuery);
+<a name="65" href="#65" id="65">65</a>
+<a name="66" href="#66" id="66">66</a>
+<a name="67" href="#67" id="67">67</a> assertNotNull(query);
+<a name="68" href="#68" id="68">68</a> assertNotNull(query.getWhereElementSet());
+<a name="69" href="#69" id="69">69</a> assertTrue(query.getWhereElementSet().size() == 0);
+<a name="70" href="#70" id="70">70</a> assertNotNull(query.getSelectElementSet());
+<a name="71" href="#71" id="71">71</a> assertTrue(query.getSelectElementSet().size() == 1);
+<a name="72" href="#72" id="72">72</a>
+<a name="73" href="#73" id="73">73</a> <strong class="jxr_keyword">try</strong>{
+<a name="74" href="#74" id="74">74</a> handler.translateToDomain(query.getSelectElementSet(), <strong class="jxr_keyword">true</strong>);
+<a name="75" href="#75" id="75">75</a> }
+<a name="76" href="#76" id="76">76</a> <strong class="jxr_keyword">catch</strong>(Exception e){
+<a name="77" href="#77" id="77">77</a> fail(e.getMessage());
+<a name="78" href="#78" id="78">78</a> }
+<a name="79" href="#79" id="79">79</a>
+<a name="80" href="#80" id="80">80</a> <strong class="jxr_keyword">try</strong>{
+<a name="81" href="#81" id="81">81</a> handler.queryAndPackageResults(query);
+<a name="82" href="#82" id="82">82</a> }
+<a name="83" href="#83" id="83">83</a> <strong class="jxr_keyword">catch</strong>(Exception e){
+<a name="84" href="#84" id="84">84</a> fail(e.getMessage());
+<a name="85" href="#85" id="85">85</a> }
+<a name="86" href="#86" id="86">86</a>
+<a name="87" href="#87" id="87">87</a> }
+<a name="88" href="#88" id="88">88</a>
+<a name="89" href="#89" id="89">89</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testDomainTranslationWhereSet() {
+<a name="90" href="#90" id="90">90</a> XMLQuery query = XMLQueryHelper
+<a name="91" href="#91" id="91">91</a> .getDefaultQueryFromQueryString(queryStr);
+<a name="92" href="#92" id="92">92</a>
+<a name="93" href="#93" id="93">93</a> assertNotNull(query);
+<a name="94" href="#94" id="94">94</a> assertNotNull(query.getWhereElementSet());
+<a name="95" href="#95" id="95">95</a> assertEquals(7, query.getWhereElementSet().size());
+<a name="96" href="#96" id="96">96</a>
+<a name="97" href="#97" id="97">97</a> <strong class="jxr_keyword">try</strong> {
+<a name="98" href="#98" id="98">98</a> handler.translateToDomain(query.getWhereElementSet(), false);
+<a name="99" href="#99" id="99">99</a> } <strong class="jxr_keyword">catch</strong> (Exception e) {
+<a name="100" href="#100" id="100">100</a> fail(e.getMessage());
+<a name="101" href="#101" id="101">101</a> }
+<a name="102" href="#102" id="102">102</a> List<QueryElement> elemNames = handler
+<a name="103" href="#103" id="103">103</a> .getElemNamesFromQueryElemSet(query.getWhereElementSet());
+<a name="104" href="#104" id="104">104</a> assertNotNull(elemNames);
+<a name="105" href="#105" id="105">105</a> assertEquals(1, elemNames.size()); <em class="jxr_comment">// only 1 b/c one field is constant</em>
+<a name="106" href="#106" id="106">106</a>
+<a name="107" href="#107" id="107">107</a> <strong class="jxr_keyword">boolean</strong> gotSpecCollected = false;
+<a name="108" href="#108" id="108">108</a> <strong class="jxr_keyword">for</strong> (Iterator<QueryElement> i = elemNames.iterator(); i.hasNext();) {
+<a name="109" href="#109" id="109">109</a> QueryElement elem = i.next();
+<a name="110" href="#110" id="110">110</a> <strong class="jxr_keyword">if</strong> (elem.getValue().equals(<span class="jxr_string">"specimen.specimen_collected"</span>)) {
+<a name="111" href="#111" id="111">111</a> gotSpecCollected = <strong class="jxr_keyword">true</strong>;
+<a name="112" href="#112" id="112">112</a> }
+<a name="113" href="#113" id="113">113</a>
+<a name="114" href="#114" id="114">114</a> }
+<a name="115" href="#115" id="115">115</a>
+<a name="116" href="#116" id="116">116</a> assertTrue(gotSpecCollected);
+<a name="117" href="#117" id="117">117</a>
+<a name="118" href="#118" id="118">118</a> }
+<a name="119" href="#119" id="119">119</a>
+<a name="120" href="#120" id="120">120</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testDomainTranslationSelectSet() {
+<a name="121" href="#121" id="121">121</a>
+<a name="122" href="#122" id="122">122</a> XMLQuery query = XMLQueryHelper
+<a name="123" href="#123" id="123">123</a> .getDefaultQueryFromQueryString(queryStr);
+<a name="124" href="#124" id="124">124</a>
+<a name="125" href="#125" id="125">125</a> assertNotNull(query);
+<a name="126" href="#126" id="126">126</a> assertNotNull(query.getSelectElementSet());
+<a name="127" href="#127" id="127">127</a> assertEquals(1, query.getSelectElementSet().size());
+<a name="128" href="#128" id="128">128</a> <strong class="jxr_keyword">try</strong> {
+<a name="129" href="#129" id="129">129</a> handler.translateToDomain(query.getSelectElementSet(), <strong class="jxr_keyword">true</strong>);
+<a name="130" href="#130" id="130">130</a> } <strong class="jxr_keyword">catch</strong> (Exception e) {
+<a name="131" href="#131" id="131">131</a> fail(e.getMessage());
+<a name="132" href="#132" id="132">132</a> }
+<a name="133" href="#133" id="133">133</a> assertNotNull(query.getSelectElementSet());
+<a name="134" href="#134" id="134">134</a> assertEquals(1, query.getSelectElementSet().size());
+<a name="135" href="#135" id="135">135</a> assertNotNull(query.getSelectElementSet().get(0));
+<a name="136" href="#136" id="136">136</a> QueryElement elem = (QueryElement) query.getSelectElementSet().get(0);
+<a name="137" href="#137" id="137">137</a> assertNotNull(elem.getValue());
+<a name="138" href="#138" id="138">138</a> assertEquals(<span class="jxr_string">"Expected: ["</span> + expectedSpecimenFldName + <span class="jxr_string">"]: got: ["</span>
+<a name="139" href="#139" id="139">139</a> + elem.getValue() + <span class="jxr_string">"]"</span>, elem.getValue(),
+<a name="140" href="#140" id="140">140</a> expectedSpecimenFldName);
+<a name="141" href="#141" id="141">141</a>
+<a name="142" href="#142" id="142">142</a> }
+<a name="143" href="#143" id="143">143</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/product/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/product/package-frame.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/product/package-frame.html (added)
+++ incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/product/package-frame.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.xmlps.product</title><link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /></head><body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.apache.oodt.xmlps.product</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul><li>
+ <a href="TestXMLPSProductHandler.html" target="classFrame">TestXMLPSProductHandler</a>
+ </li>
+ </ul></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/product/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/product/package-summary.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/product/package-summary.html (added)
+++ incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/product/package-summary.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,41 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.xmlps.product</title><link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /></head><body>
+ <div class="overview">
+ <ul><li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul></div>
+ <div class="framenoframe">
+ <ul><li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul></div>
+
+ <h2>Package org.apache.oodt.xmlps.product</h2>
+
+ <table class="summary"><thead><tr><th>Class Summary</th>
+ </tr></thead><tbody><tr><td>
+ <a href="TestXMLPSProductHandler.html" target="classFrame">TestXMLPSProductHandler</a>
+ </td>
+ </tr></tbody></table><div class="overview">
+ <ul><li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul></div>
+ <div class="framenoframe">
+ <ul><li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul></div>
+ <hr />
+ Copyright © 1999-2010 Apache Incubator. All Rights Reserved.
+ </body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/profile/TestXMLPSProfileHandler.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/profile/TestXMLPSProfileHandler.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/profile/TestXMLPSProfileHandler.html (added)
+++ incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/profile/TestXMLPSProfileHandler.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,78 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!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" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>TestXMLPSProfileHandler xref</title><link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /></head><body>
+<pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <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="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.xmlps.profile;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_comment">//APACHE imports</em>
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.util.XMLQueryHelper;
+<a name="22" href="#22" id="22">22</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlquery.XMLQuery;
+<a name="23" href="#23" id="23">23</a>
+<a name="24" href="#24" id="24">24</a> <em class="jxr_comment">//Junit imports</em>
+<a name="25" href="#25" id="25">25</a> <strong class="jxr_keyword">import</strong> junit.framework.TestCase;
+<a name="26" href="#26" id="26">26</a>
+<a name="27" href="#27" id="27">27</a> <em class="jxr_javadoccomment">/**</em>
+<a name="28" href="#28" id="28">28</a> <em class="jxr_javadoccomment"> * Tests the XMLPS profile handler.</em>
+<a name="29" href="#29" id="29">29</a> <em class="jxr_javadoccomment"> */</em>
+<a name="30" href="#30" id="30">30</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/oodt/xmlps/profile/TestXMLPSProfileHandler.html">TestXMLPSProfileHandler</a> <strong class="jxr_keyword">extends</strong> TestCase {
+<a name="31" href="#31" id="31">31</a>
+<a name="32" href="#32" id="32">32</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> XMLPSProfileHandler handler;
+<a name="33" href="#33" id="33">33</a>
+<a name="34" href="#34" id="34">34</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String unconstrainedQuery = <span class="jxr_string">"RETURN = STUDY_PARTICIPANT_ID"</span>;
+<a name="35" href="#35" id="35">35</a>
+<a name="36" href="#36" id="36">36</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/oodt/xmlps/profile/TestXMLPSProfileHandler.html">TestXMLPSProfileHandler</a>() {
+<a name="37" href="#37" id="37">37</a> System.setProperty(<span class="jxr_string">"org.apache.oodt.xmlps.profile.xml.mapFilePath"</span>,
+<a name="38" href="#38" id="38">38</a> <span class="jxr_string">"./src/test/resources/test-ps.xml"</span>);
+<a name="39" href="#39" id="39">39</a>
+<a name="40" href="#40" id="40">40</a> <strong class="jxr_keyword">try</strong> {
+<a name="41" href="#41" id="41">41</a> handler = <strong class="jxr_keyword">new</strong> XMLPSProfileHandler();
+<a name="42" href="#42" id="42">42</a> } <strong class="jxr_keyword">catch</strong> (InstantiationException e) {
+<a name="43" href="#43" id="43">43</a> fail(<span class="jxr_string">"Can't construct test suite: exception building test handler"</span>);
+<a name="44" href="#44" id="44">44</a> }
+<a name="45" href="#45" id="45">45</a> }
+<a name="46" href="#46" id="46">46</a>
+<a name="47" href="#47" id="47">47</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testAllowUnConstrainedQuery() {
+<a name="48" href="#48" id="48">48</a> XMLQuery query = XMLQueryHelper
+<a name="49" href="#49" id="49">49</a> .getDefaultQueryFromQueryString(unconstrainedQuery);
+<a name="50" href="#50" id="50">50</a>
+<a name="51" href="#51" id="51">51</a> assertNotNull(query);
+<a name="52" href="#52" id="52">52</a> assertNotNull(query.getWhereElementSet());
+<a name="53" href="#53" id="53">53</a> assertTrue(query.getWhereElementSet().size() == 0);
+<a name="54" href="#54" id="54">54</a> assertNotNull(query.getSelectElementSet());
+<a name="55" href="#55" id="55">55</a> assertTrue(query.getSelectElementSet().size() == 1);
+<a name="56" href="#56" id="56">56</a>
+<a name="57" href="#57" id="57">57</a> <strong class="jxr_keyword">try</strong> {
+<a name="58" href="#58" id="58">58</a> handler.translateToDomain(query.getSelectElementSet(), <strong class="jxr_keyword">true</strong>);
+<a name="59" href="#59" id="59">59</a> } <strong class="jxr_keyword">catch</strong> (Exception e) {
+<a name="60" href="#60" id="60">60</a> fail(e.getMessage());
+<a name="61" href="#61" id="61">61</a> }
+<a name="62" href="#62" id="62">62</a>
+<a name="63" href="#63" id="63">63</a> <strong class="jxr_keyword">try</strong> {
+<a name="64" href="#64" id="64">64</a> handler.queryAndPackageProfiles(query);
+<a name="65" href="#65" id="65">65</a> } <strong class="jxr_keyword">catch</strong> (Exception e) {
+<a name="66" href="#66" id="66">66</a> fail(e.getMessage());
+<a name="67" href="#67" id="67">67</a> }
+<a name="68" href="#68" id="68">68</a>
+<a name="69" href="#69" id="69">69</a> }
+<a name="70" href="#70" id="70">70</a>
+<a name="71" href="#71" id="71">71</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/profile/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/profile/package-frame.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/profile/package-frame.html (added)
+++ incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/profile/package-frame.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.xmlps.profile</title><link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /></head><body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.apache.oodt.xmlps.profile</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul><li>
+ <a href="TestXMLPSProfileHandler.html" target="classFrame">TestXMLPSProfileHandler</a>
+ </li>
+ </ul></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/profile/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/profile/package-summary.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/profile/package-summary.html (added)
+++ incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/profile/package-summary.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,41 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.xmlps.profile</title><link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /></head><body>
+ <div class="overview">
+ <ul><li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul></div>
+ <div class="framenoframe">
+ <ul><li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul></div>
+
+ <h2>Package org.apache.oodt.xmlps.profile</h2>
+
+ <table class="summary"><thead><tr><th>Class Summary</th>
+ </tr></thead><tbody><tr><td>
+ <a href="TestXMLPSProfileHandler.html" target="classFrame">TestXMLPSProfileHandler</a>
+ </td>
+ </tr></tbody></table><div class="overview">
+ <ul><li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul></div>
+ <div class="framenoframe">
+ <ul><li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul></div>
+ <hr />
+ Copyright © 1999-2010 Apache Incubator. All Rights Reserved.
+ </body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/queryparser/TestHandlerQueryParser.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/queryparser/TestHandlerQueryParser.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/queryparser/TestHandlerQueryParser.html (added)
+++ incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/queryparser/TestHandlerQueryParser.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,62 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!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" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>TestHandlerQueryParser xref</title><link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /></head><body>
+<pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <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="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.xmlps.queryparser;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_comment">//APACHE imports</em>
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.queryparser.Expression;
+<a name="22" href="#22" id="22">22</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.queryparser.HandlerQueryParser;
+<a name="23" href="#23" id="23">23</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlps.util.XMLQueryHelper;
+<a name="24" href="#24" id="24">24</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlquery.QueryElement;
+<a name="25" href="#25" id="25">25</a> <strong class="jxr_keyword">import</strong> org.apache.oodt.xmlquery.XMLQuery;
+<a name="26" href="#26" id="26">26</a>
+<a name="27" href="#27" id="27">27</a> <em class="jxr_comment">//JDK imports</em>
+<a name="28" href="#28" id="28">28</a> <strong class="jxr_keyword">import</strong> java.util.Stack;
+<a name="29" href="#29" id="29">29</a>
+<a name="30" href="#30" id="30">30</a> <em class="jxr_comment">//Junit imports</em>
+<a name="31" href="#31" id="31">31</a> <strong class="jxr_keyword">import</strong> junit.framework.TestCase;
+<a name="32" href="#32" id="32">32</a>
+<a name="33" href="#33" id="33">33</a> <em class="jxr_javadoccomment">/**</em>
+<a name="34" href="#34" id="34">34</a> <em class="jxr_javadoccomment"> * Tests the XMLPS query handler parser.</em>
+<a name="35" href="#35" id="35">35</a> <em class="jxr_javadoccomment"> */</em>
+<a name="36" href="#36" id="36">36</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/oodt/xmlps/queryparser/TestHandlerQueryParser.html">TestHandlerQueryParser</a> <strong class="jxr_keyword">extends</strong> TestCase {
+<a name="37" href="#37" id="37">37</a>
+<a name="38" href="#38" id="38">38</a> <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/oodt/xmlps/queryparser/TestHandlerQueryParser.html">TestHandlerQueryParser</a>() {
+<a name="39" href="#39" id="39">39</a> }
+<a name="40" href="#40" id="40">40</a>
+<a name="41" href="#41" id="41">41</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testParseQuery() {
+<a name="42" href="#42" id="42">42</a> String queryStr = <span class="jxr_string">"A = B AND C = D"</span>;
+<a name="43" href="#43" id="43">43</a> String expected = <span class="jxr_string">"(C = D AND A = B)"</span>;
+<a name="44" href="#44" id="44">44</a>
+<a name="45" href="#45" id="45">45</a> XMLQuery query = XMLQueryHelper.getDefaultQueryFromQueryString(queryStr);
+<a name="46" href="#46" id="46">46</a> assertNotNull(query);
+<a name="47" href="#47" id="47">47</a> Stack<QueryElement> queryStack = HandlerQueryParser.createQueryStack(query
+<a name="48" href="#48" id="48">48</a> .getWhereElementSet());
+<a name="49" href="#49" id="49">49</a> assertNotNull(queryStack);
+<a name="50" href="#50" id="50">50</a> Expression parsedQuery = HandlerQueryParser.parse(queryStack);
+<a name="51" href="#51" id="51">51</a> assertNotNull(parsedQuery);
+<a name="52" href="#52" id="52">52</a> assertEquals(expected, parsedQuery.evaluate());
+<a name="53" href="#53" id="53">53</a> }
+<a name="54" href="#54" id="54">54</a>
+<a name="55" href="#55" id="55">55</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/queryparser/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/queryparser/package-frame.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/queryparser/package-frame.html (added)
+++ incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/queryparser/package-frame.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.xmlps.queryparser</title><link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /></head><body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.apache.oodt.xmlps.queryparser</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul><li>
+ <a href="TestHandlerQueryParser.html" target="classFrame">TestHandlerQueryParser</a>
+ </li>
+ </ul></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/queryparser/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/queryparser/package-summary.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/queryparser/package-summary.html (added)
+++ incubator/oodt/site/components/maven/xref-test/org/apache/oodt/xmlps/queryparser/package-summary.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,41 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Apache OODT 0.1-incubating Reference Package org.apache.oodt.xmlps.queryparser</title><link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /></head><body>
+ <div class="overview">
+ <ul><li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul></div>
+ <div class="framenoframe">
+ <ul><li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul></div>
+
+ <h2>Package org.apache.oodt.xmlps.queryparser</h2>
+
+ <table class="summary"><thead><tr><th>Class Summary</th>
+ </tr></thead><tbody><tr><td>
+ <a href="TestHandlerQueryParser.html" target="classFrame">TestHandlerQueryParser</a>
+ </td>
+ </tr></tbody></table><div class="overview">
+ <ul><li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul></div>
+ <div class="framenoframe">
+ <ul><li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul></div>
+ <hr />
+ Copyright © 1999-2010 Apache Incubator. All Rights Reserved.
+ </body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/AuthenticationRequiredException.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/AuthenticationRequiredException.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/AuthenticationRequiredException.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/AuthenticationRequiredException.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,37 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!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" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>AuthenticationRequiredException xref</title><link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/oodt/grid/AuthenticationRequiredException.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <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="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.grid;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <em class="jxr_javadoccomment">/**</em>
+<a name="21" href="#21" id="21">21</a> <em class="jxr_javadoccomment"> * Exception thrown to indicate that authentication is required to continue.</em>
+<a name="22" href="#22" id="22">22</a> <em class="jxr_javadoccomment"> */</em>
+<a name="23" href="#23" id="23">23</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/oodt/grid/AuthenticationRequiredException.html">AuthenticationRequiredException</a> <strong class="jxr_keyword">extends</strong> Exception {
+<a name="24" href="#24" id="24">24</a> <em class="jxr_javadoccomment">/**</em>
+<a name="25" href="#25" id="25">25</a> <em class="jxr_javadoccomment"> * Creates a new <code>AuthenticationRequiredException</code> instance.</em>
+<a name="26" href="#26" id="26">26</a> <em class="jxr_javadoccomment"> */</em>
+<a name="27" href="#27" id="27">27</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/oodt/grid/AuthenticationRequiredException.html">AuthenticationRequiredException</a>() {
+<a name="28" href="#28" id="28">28</a> <strong class="jxr_keyword">super</strong>(<span class="jxr_string">"Authentication required"</span>);
+<a name="29" href="#29" id="29">29</a> }
+<a name="30" href="#30" id="30">30</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file
Added: incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/ConfigBean.html
URL: http://svn.apache.org/viewvc/incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/ConfigBean.html?rev=1000710&view=auto
==============================================================================
--- incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/ConfigBean.html (added)
+++ incubator/oodt/site/components/maven/xref/org/apache/oodt/grid/ConfigBean.html Fri Sep 24 05:09:48 2010
@@ -0,0 +1,182 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!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" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xml:lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>ConfigBean xref</title><link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /></head><body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/oodt/grid/ConfigBean.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1" id="1">1</a> <em class="jxr_javadoccomment">/**</em>
+<a name="2" href="#2" id="2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a name="3" href="#3" id="3">3</a> <em class="jxr_javadoccomment"> * contributor license agreements. See the NOTICE file distributed with</em>
+<a name="4" href="#4" id="4">4</a> <em class="jxr_javadoccomment"> * this work for additional information regarding copyright ownership.</em>
+<a name="5" href="#5" id="5">5</a> <em class="jxr_javadoccomment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a name="6" href="#6" id="6">6</a> <em class="jxr_javadoccomment"> * (the "License"); you may not use this file except in compliance with</em>
+<a name="7" href="#7" id="7">7</a> <em class="jxr_javadoccomment"> * the License. You may obtain a copy of the License at</em>
+<a name="8" href="#8" id="8">8</a> <em class="jxr_javadoccomment"> *</em>
+<a name="9" href="#9" id="9">9</a> <em class="jxr_javadoccomment"> * <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="10" href="#10" id="10">10</a> <em class="jxr_javadoccomment"> *</em>
+<a name="11" href="#11" id="11">11</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12" id="12">12</a> <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13" id="13">13</a> <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14" id="14">14</a> <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15" id="15">15</a> <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a name="16" href="#16" id="16">16</a> <em class="jxr_javadoccomment"> */</em>
+<a name="17" href="#17" id="17">17</a>
+<a name="18" href="#18" id="18">18</a> <strong class="jxr_keyword">package</strong> org.apache.oodt.grid;
+<a name="19" href="#19" id="19">19</a>
+<a name="20" href="#20" id="20">20</a> <strong class="jxr_keyword">import</strong> java.io.Serializable;
+<a name="21" href="#21" id="21">21</a> <strong class="jxr_keyword">import</strong> java.util.List;
+<a name="22" href="#22" id="22">22</a> <strong class="jxr_keyword">import</strong> java.util.Properties;
+<a name="23" href="#23" id="23">23</a>
+<a name="24" href="#24" id="24">24</a> <em class="jxr_javadoccomment">/**</em>
+<a name="25" href="#25" id="25">25</a> <em class="jxr_javadoccomment"> * Bean containing login status for and configuration info.</em>
+<a name="26" href="#26" id="26">26</a> <em class="jxr_javadoccomment"> */</em>
+<a name="27" href="#27" id="27">27</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/oodt/grid/ConfigBean.html">ConfigBean</a> implements Serializable {
+<a name="28" href="#28" id="28">28</a> <em class="jxr_javadoccomment">/**</em>
+<a name="29" href="#29" id="29">29</a> <em class="jxr_javadoccomment"> * Return true is administrator is authenticated.</em>
+<a name="30" href="#30" id="30">30</a> <em class="jxr_javadoccomment"> * </em>
+<a name="31" href="#31" id="31">31</a> <em class="jxr_javadoccomment"> * @return True if authentic, false otherwise.</em>
+<a name="32" href="#32" id="32">32</a> <em class="jxr_javadoccomment"> */</em>
+<a name="33" href="#33" id="33">33</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> isAuthentic() {
+<a name="34" href="#34" id="34">34</a> <strong class="jxr_keyword">return</strong> authentic;
+<a name="35" href="#35" id="35">35</a> }
+<a name="36" href="#36" id="36">36</a>
+<a name="37" href="#37" id="37">37</a> <em class="jxr_javadoccomment">/**</em>
+<a name="38" href="#38" id="38">38</a> <em class="jxr_javadoccomment"> * Set whether the administrator's been authenticated.</em>
+<a name="39" href="#39" id="39">39</a> <em class="jxr_javadoccomment"> * </em>
+<a name="40" href="#40" id="40">40</a> <em class="jxr_javadoccomment"> * @param authentic</em>
+<a name="41" href="#41" id="41">41</a> <em class="jxr_javadoccomment"> * True if authentic, false otherwise.</em>
+<a name="42" href="#42" id="42">42</a> <em class="jxr_javadoccomment"> */</em>
+<a name="43" href="#43" id="43">43</a> <strong class="jxr_keyword">void</strong> setAuthentic(<strong class="jxr_keyword">boolean</strong> authentic) {
+<a name="44" href="#44" id="44">44</a> <strong class="jxr_keyword">this</strong>.authentic = authentic;
+<a name="45" href="#45" id="45">45</a> }
+<a name="46" href="#46" id="46">46</a>
+<a name="47" href="#47" id="47">47</a> <em class="jxr_javadoccomment">/**</em>
+<a name="48" href="#48" id="48">48</a> <em class="jxr_javadoccomment"> * Get any message to display. This should never be null.</em>
+<a name="49" href="#49" id="49">49</a> <em class="jxr_javadoccomment"> * </em>
+<a name="50" href="#50" id="50">50</a> <em class="jxr_javadoccomment"> * @return A message to display</em>
+<a name="51" href="#51" id="51">51</a> <em class="jxr_javadoccomment"> */</em>
+<a name="52" href="#52" id="52">52</a> <strong class="jxr_keyword">public</strong> String getMessage() {
+<a name="53" href="#53" id="53">53</a> <strong class="jxr_keyword">return</strong> message;
+<a name="54" href="#54" id="54">54</a> }
+<a name="55" href="#55" id="55">55</a>
+<a name="56" href="#56" id="56">56</a> <em class="jxr_javadoccomment">/**</em>
+<a name="57" href="#57" id="57">57</a> <em class="jxr_javadoccomment"> * Set the message to display.</em>
+<a name="58" href="#58" id="58">58</a> <em class="jxr_javadoccomment"> * </em>
+<a name="59" href="#59" id="59">59</a> <em class="jxr_javadoccomment"> * @param message</em>
+<a name="60" href="#60" id="60">60</a> <em class="jxr_javadoccomment"> * Message to display.</em>
+<a name="61" href="#61" id="61">61</a> <em class="jxr_javadoccomment"> */</em>
+<a name="62" href="#62" id="62">62</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setMessage(String message) {
+<a name="63" href="#63" id="63">63</a> <strong class="jxr_keyword">if</strong> (message == <strong class="jxr_keyword">null</strong>)
+<a name="64" href="#64" id="64">64</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"message cannot be null"</span>);
+<a name="65" href="#65" id="65">65</a> <strong class="jxr_keyword">this</strong>.message = message;
+<a name="66" href="#66" id="66">66</a> }
+<a name="67" href="#67" id="67">67</a>
+<a name="68" href="#68" id="68">68</a> <em class="jxr_javadoccomment">/**</em>
+<a name="69" href="#69" id="69">69</a> <em class="jxr_javadoccomment"> * Get the configuration of web-grid.</em>
+<a name="70" href="#70" id="70">70</a> <em class="jxr_javadoccomment"> * </em>
+<a name="71" href="#71" id="71">71</a> <em class="jxr_javadoccomment"> * @return a <code>Configuration</code> value.</em>
+<a name="72" href="#72" id="72">72</a> <em class="jxr_javadoccomment"> * @throws AuthenticationRequiredException</em>
+<a name="73" href="#73" id="73">73</a> <em class="jxr_javadoccomment"> * if the administrator's not authenticated.</em>
+<a name="74" href="#74" id="74">74</a> <em class="jxr_javadoccomment"> */</em>
+<a name="75" href="#75" id="75">75</a> <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/oodt/grid/Configuration.html">Configuration</a> getConfiguration()
+<a name="76" href="#76" id="76">76</a> <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/oodt/grid/AuthenticationRequiredException.html">AuthenticationRequiredException</a> {
+<a name="77" href="#77" id="77">77</a> checkAuthenticity();
+<a name="78" href="#78" id="78">78</a> <strong class="jxr_keyword">return</strong> configuration;
+<a name="79" href="#79" id="79">79</a> }
+<a name="80" href="#80" id="80">80</a>
+<a name="81" href="#81" id="81">81</a> <em class="jxr_javadoccomment">/**</em>
+<a name="82" href="#82" id="82">82</a> <em class="jxr_javadoccomment"> * Tell if HTTPS is required to access the web-grid configuration.</em>
+<a name="83" href="#83" id="83">83</a> <em class="jxr_javadoccomment"> * </em>
+<a name="84" href="#84" id="84">84</a> <em class="jxr_javadoccomment"> * @return True if HTTPS is required to access the web-grid configuration.</em>
+<a name="85" href="#85" id="85">85</a> <em class="jxr_javadoccomment"> * @throws AuthenticationRequiredException</em>
+<a name="86" href="#86" id="86">86</a> <em class="jxr_javadoccomment"> * if the administrator's not authenticated.</em>
+<a name="87" href="#87" id="87">87</a> <em class="jxr_javadoccomment"> */</em>
+<a name="88" href="#88" id="88">88</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> isHttpsRequired() <strong class="jxr_keyword">throws</strong> AuthenticationRequiredException {
+<a name="89" href="#89" id="89">89</a> checkAuthenticity();
+<a name="90" href="#90" id="90">90</a> <strong class="jxr_keyword">return</strong> configuration.isHTTPSrequired();
+<a name="91" href="#91" id="91">91</a> }
+<a name="92" href="#92" id="92">92</a>
+<a name="93" href="#93" id="93">93</a> <em class="jxr_javadoccomment">/**</em>
+<a name="94" href="#94" id="94">94</a> <em class="jxr_javadoccomment"> * Tell if admin access can come only from the localhost.</em>
+<a name="95" href="#95" id="95">95</a> <em class="jxr_javadoccomment"> * </em>
+<a name="96" href="#96" id="96">96</a> <em class="jxr_javadoccomment"> * @return True if admin access can come only from the localhost.</em>
+<a name="97" href="#97" id="97">97</a> <em class="jxr_javadoccomment"> * @throws AuthenticationRequiredException</em>
+<a name="98" href="#98" id="98">98</a> <em class="jxr_javadoccomment"> * if the administrator's not authenticated.</em>
+<a name="99" href="#99" id="99">99</a> <em class="jxr_javadoccomment"> */</em>
+<a name="100" href="#100" id="100">100</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> isLocalhostRequired() <strong class="jxr_keyword">throws</strong> AuthenticationRequiredException {
+<a name="101" href="#101" id="101">101</a> checkAuthenticity();
+<a name="102" href="#102" id="102">102</a> <strong class="jxr_keyword">return</strong> configuration.isLocalhostRequired();
+<a name="103" href="#103" id="103">103</a> }
+<a name="104" href="#104" id="104">104</a>
+<a name="105" href="#105" id="105">105</a> <em class="jxr_javadoccomment">/**</em>
+<a name="106" href="#106" id="106">106</a> <em class="jxr_javadoccomment"> * Get the list of {@link ProductServer}s that have been installed in this</em>
+<a name="107" href="#107" id="107">107</a> <em class="jxr_javadoccomment"> * container.</em>
+<a name="108" href="#108" id="108">108</a> <em class="jxr_javadoccomment"> * </em>
+<a name="109" href="#109" id="109">109</a> <em class="jxr_javadoccomment"> * @return a <code>List</code> of {@link ProductServer}s.</em>
+<a name="110" href="#110" id="110">110</a> <em class="jxr_javadoccomment"> * @throws AuthenticationRequiredException</em>
+<a name="111" href="#111" id="111">111</a> <em class="jxr_javadoccomment"> * if the administrator's not authenticated.</em>
+<a name="112" href="#112" id="112">112</a> <em class="jxr_javadoccomment"> */</em>
+<a name="113" href="#113" id="113">113</a> <strong class="jxr_keyword">public</strong> List getProductServers() <strong class="jxr_keyword">throws</strong> AuthenticationRequiredException {
+<a name="114" href="#114" id="114">114</a> checkAuthenticity();
+<a name="115" href="#115" id="115">115</a> <strong class="jxr_keyword">return</strong> configuration.getProductServers();
+<a name="116" href="#116" id="116">116</a> }
+<a name="117" href="#117" id="117">117</a>
+<a name="118" href="#118" id="118">118</a> <em class="jxr_javadoccomment">/**</em>
+<a name="119" href="#119" id="119">119</a> <em class="jxr_javadoccomment"> * Get the list of {@link ProfileServer}s that have been installed in this</em>
+<a name="120" href="#120" id="120">120</a> <em class="jxr_javadoccomment"> * container.</em>
+<a name="121" href="#121" id="121">121</a> <em class="jxr_javadoccomment"> * </em>
+<a name="122" href="#122" id="122">122</a> <em class="jxr_javadoccomment"> * @return a <code>List</code> of {@link ProfileServer}s.</em>
+<a name="123" href="#123" id="123">123</a> <em class="jxr_javadoccomment"> * @throws AuthenticationRequiredException</em>
+<a name="124" href="#124" id="124">124</a> <em class="jxr_javadoccomment"> * if the administrator's not authenticated.</em>
+<a name="125" href="#125" id="125">125</a> <em class="jxr_javadoccomment"> */</em>
+<a name="126" href="#126" id="126">126</a> <strong class="jxr_keyword">public</strong> List getProfileServers() <strong class="jxr_keyword">throws</strong> AuthenticationRequiredException {
+<a name="127" href="#127" id="127">127</a> checkAuthenticity();
+<a name="128" href="#128" id="128">128</a> <strong class="jxr_keyword">return</strong> configuration.getProfileServers();
+<a name="129" href="#129" id="129">129</a> }
+<a name="130" href="#130" id="130">130</a>
+<a name="131" href="#131" id="131">131</a> <em class="jxr_javadoccomment">/**</em>
+<a name="132" href="#132" id="132">132</a> <em class="jxr_javadoccomment"> * Set the configuration this bean will use.</em>
+<a name="133" href="#133" id="133">133</a> <em class="jxr_javadoccomment"> * </em>
+<a name="134" href="#134" id="134">134</a> <em class="jxr_javadoccomment"> * @param configuration</em>
+<a name="135" href="#135" id="135">135</a> <em class="jxr_javadoccomment"> * a <code>Configuration</code> value.</em>
+<a name="136" href="#136" id="136">136</a> <em class="jxr_javadoccomment"> */</em>
+<a name="137" href="#137" id="137">137</a> <strong class="jxr_keyword">void</strong> setConfiguration(<a href="../../../../org/apache/oodt/grid/Configuration.html">Configuration</a> configuration) {
+<a name="138" href="#138" id="138">138</a> <strong class="jxr_keyword">this</strong>.configuration = configuration;
+<a name="139" href="#139" id="139">139</a> }
+<a name="140" href="#140" id="140">140</a>
+<a name="141" href="#141" id="141">141</a> <em class="jxr_javadoccomment">/**</em>
+<a name="142" href="#142" id="142">142</a> <em class="jxr_javadoccomment"> * Get the properties defined for this container.</em>
+<a name="143" href="#143" id="143">143</a> <em class="jxr_javadoccomment"> * </em>
+<a name="144" href="#144" id="144">144</a> <em class="jxr_javadoccomment"> * @return a <code>Properties</code> value.</em>
+<a name="145" href="#145" id="145">145</a> <em class="jxr_javadoccomment"> * @throws AuthenticationRequiredException</em>
+<a name="146" href="#146" id="146">146</a> <em class="jxr_javadoccomment"> * if the administrator's not authenticated.</em>
+<a name="147" href="#147" id="147">147</a> <em class="jxr_javadoccomment"> */</em>
+<a name="148" href="#148" id="148">148</a> <strong class="jxr_keyword">public</strong> Properties getProperties() <strong class="jxr_keyword">throws</strong> AuthenticationRequiredException {
+<a name="149" href="#149" id="149">149</a> checkAuthenticity();
+<a name="150" href="#150" id="150">150</a> <strong class="jxr_keyword">return</strong> configuration.getProperties();
+<a name="151" href="#151" id="151">151</a> }
+<a name="152" href="#152" id="152">152</a>
+<a name="153" href="#153" id="153">153</a> <em class="jxr_javadoccomment">/**</em>
+<a name="154" href="#154" id="154">154</a> <em class="jxr_javadoccomment"> * Check if the administrator is authentic. This method does nothing if the</em>
+<a name="155" href="#155" id="155">155</a> <em class="jxr_javadoccomment"> * administrator is authentic, but throws an exception if not.</em>
+<a name="156" href="#156" id="156">156</a> <em class="jxr_javadoccomment"> * </em>
+<a name="157" href="#157" id="157">157</a> <em class="jxr_javadoccomment"> * @throws AuthenticationRequiredException</em>
+<a name="158" href="#158" id="158">158</a> <em class="jxr_javadoccomment"> * if the administrator's not authenticated.</em>
+<a name="159" href="#159" id="159">159</a> <em class="jxr_javadoccomment"> */</em>
+<a name="160" href="#160" id="160">160</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> checkAuthenticity() <strong class="jxr_keyword">throws</strong> AuthenticationRequiredException {
+<a name="161" href="#161" id="161">161</a> <strong class="jxr_keyword">if</strong> (isAuthentic() && configuration != <strong class="jxr_keyword">null</strong>)
+<a name="162" href="#162" id="162">162</a> <strong class="jxr_keyword">return</strong>;
+<a name="163" href="#163" id="163">163</a> message = <span class="jxr_string">""</span>;
+<a name="164" href="#164" id="164">164</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/oodt/grid/AuthenticationRequiredException.html">AuthenticationRequiredException</a>();
+<a name="165" href="#165" id="165">165</a> }
+<a name="166" href="#166" id="166">166</a>
+<a name="167" href="#167" id="167">167</a> <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> True if administrator is authentic. */</em>
+<a name="168" href="#168" id="168">168</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> authentic;
+<a name="169" href="#169" id="169">169</a>
+<a name="170" href="#170" id="170">170</a> <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Any message to display. */</em>
+<a name="171" href="#171" id="171">171</a> <strong class="jxr_keyword">private</strong> String message = <span class="jxr_string">""</span>;
+<a name="172" href="#172" id="172">172</a>
+<a name="173" href="#173" id="173">173</a> <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> The configuration for this container. */</em>
+<a name="174" href="#174" id="174">174</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">transient</strong> <a href="../../../../org/apache/oodt/grid/Configuration.html">Configuration</a> configuration;
+<a name="175" href="#175" id="175">175</a> }
+</pre>
+<hr /><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>
\ No newline at end of file