You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by sa...@apache.org on 2006/03/13 10:11:43 UTC

svn commit: r385473 [16/20] - in /webservices/commons/site/policy: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/ws/ apidocs/org/apache/ws/policy/ apidocs/org/apache/ws/policy/class-use/ apidocs/org/apache/ws/policy/util/ apidocs/org/...

Added: webservices/commons/site/policy/style/maven-theme.css
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/style/maven-theme.css?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/style/maven-theme.css (added)
+++ webservices/commons/site/policy/style/maven-theme.css Mon Mar 13 01:11:07 2006
@@ -0,0 +1,82 @@
+body, td, select, input, li{
+  font-family: Verdana, Helvetica, Arial, sans-serif;
+  font-size: 13px;
+}
+a {
+  text-decoration: none;
+}
+a:link {
+  color:#36a;
+}
+a:visited  {
+  color:#47a;
+}
+a:active, a:hover {
+  color:#69c;
+}
+a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover {
+  background: url(../images/external.png) right center no-repeat;
+  padding-right: 15px;
+}
+a.newWindow, a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover {
+  background: url(../images/newwindow.png) right center no-repeat;
+  padding-right: 18px;
+}
+h2 {
+  padding: 4px 4px 4px 6px;
+  border: 1px solid #999;
+  color: #900;
+  background-color: #ddd;
+  font-weight:900;
+  font-size: x-large;
+}
+h3 {
+  padding: 4px 4px 4px 6px;
+  border: 1px solid #aaa;
+  color: #900;
+  background-color: #eee;
+  font-weight: normal;
+  font-size: large;
+}
+p {
+  line-height: 1.3em;
+  font-size: small;
+}
+#breadcrumbs {
+  border-top: 1px solid #aaa;
+  border-bottom: 1px solid #aaa;
+  background-color: #ccc;
+}
+#leftColumn {
+  margin: 10px 0 0 5px;
+  border: 1px solid #999;
+  background-color: #eee;
+}
+#navcolumn h5 {
+  font-size: smaller;
+  border-bottom: 1px solid #aaaaaa;
+  padding-top: 2px;
+}
+
+table.bodyTable th {
+  color: white;
+  background-color: #bbb;
+  text-align: left;
+  font-weight: bold;
+}
+
+table.bodyTable th, table.bodyTable td {
+  font-size: 1em;
+}
+
+table.bodyTable tr.a {
+  background-color: #ddd;
+}
+
+table.bodyTable tr.b {
+  background-color: #eee;
+}
+
+.source {
+  border: 1px solid #999;
+}

Added: webservices/commons/site/policy/style/print.css
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/style/print.css?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/style/print.css (added)
+++ webservices/commons/site/policy/style/print.css Mon Mar 13 01:11:07 2006
@@ -0,0 +1,7 @@
+#banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, #leftColumn, #navColumn {
+	display: none;
+}
+#bodyColumn, body.docs div.docs {
+	margin: 0 !important;
+	border: none !important
+}

Added: webservices/commons/site/policy/task-list.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/task-list.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/task-list.html (added)
+++ webservices/commons/site/policy/task-list.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Web Services Commons : WS-Policy implemenation - Articles</title><style type="text/css" media="all">
+          @import url("./style/maven-base.css");
+          
+			    @import url("./style/maven-theme.css");</style><link rel="stylesheet" href="./style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta name="author" content="Maven"></meta><meta name="email" content="turbine-maven-user@jakarta.apache.org"></meta></head><body class="composite"><div id="banner"><a href="" id="projectLogo"><span>WS-Policy Implementation</span></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+                	Last published: 13 March 2006
+                  | Doc for 0.92-SNAPSHOT</div><div class="xright"></div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuWS-Policy"><h5>WS-Policy</h5><ul><li class="none"><a href="index.html">Home</a></li><li class="expanded"><a href=""></a><ul><li class="none"><a href="download.cgi">Releases</a></li><li class="none"><a href="http://svn.apache.org/repos/asf/webservices/commons/modules/policy" class="externalLink" title="External Link">Source Code</a></li></ul></li><li class="expanded"><a href="">Documentation</a><ul><li class="none"><a href="userguide.html">User's Guide</a></li><li class="none"><a href="apidocs/index.html">Javadocs</a></li></ul></li><li class="expanded"><a href="">Project Information</a><ul><li class="none"><a href="mail-lists.html">Mailing Lists</a></li><li class="none"><a href="team-list.html">Project Team</a></li></ul></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li cla
 ss="none"><a href="index.html">About WS-Policy Implementation</a></li><li class="collapsed"><a href="project-info.html">Project Info</a></li><li class="expanded"><a href="maven-reports.html">Project Reports</a><ul><li class="none"><a href="jdepend-report.html">Metrics</a></li><li class="none"><a href="checkstyle-report.html">Checkstyle</a></li><li class="none"><a href="changelog-report.html">Change Log</a></li><li class="none"><a href="developer-activity-report.html">Developer Activity</a></li><li class="none"><a href="file-activity-report.html">File Activity</a></li><li class="none"><a href="license.html">Project License</a></li><li class="none"><a href="apidocs/index.html" class="newWindow" title="New Window" target="_blank">JavaDocs</a></li><li class="none"><a href="javadoc.html">JavaDoc Report</a></li><li class="none"><a href="xref/index.html" class="newWindow" title="New Window" target="_blank">Source Xref</a></li><li class="none"><a href="xref-test/index.html" class="n
 ewWindow" title="New Window" target="_blank">Test Xref</a></li><li class="none"><a href="junit-report.html">Unit Tests</a></li><li class="none"><a href="linkcheck.html">Link Check Report</a></li><li class="none"><strong><a href="task-list.html">Task List</a></strong></li></ul></li><li class="none"><a href="http://maven.apache.org/development-process.html" class="externalLink" title="External Link">Development Process</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="./images/logos/maven-button-1.png"></img></a></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Todos"></a><h2>Todos</h2><table class="bodyTable"><thead>
+      	<tr class="a"><th>Class</th><th>Class Todos Count</th><th>Method with Todos</th></tr>
+        </thead><tbody>
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                             <tr class="b"><td colspan="3"><em>No class or method todo found</em></td></tr>
+            </tbody></table></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 2002-2006, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file

Added: webservices/commons/site/policy/team-list.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/team-list.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/team-list.html (added)
+++ webservices/commons/site/policy/team-list.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,52 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Web Services Commons : WS-Policy implemenation - Project Team</title><style type="text/css" media="all">
+          @import url("./style/maven-base.css");
+          
+			    @import url("./style/maven-theme.css");</style><link rel="stylesheet" href="./style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><script type="text/javascript">
+  	  function offsetDate(id, offset) {
+
+            var now = new Date() ;
+            var nowTime = now.getTime() ;
+            var localOffset = now.getTimezoneOffset() ;
+            var developerTime = nowTime + (offset * 60 * 60 * 1000) + (localOffset * 60 * 1000) ;
+            var developerDate = new Date(developerTime) ;
+
+            document.getElementById(id).innerHTML = developerDate;
+          }
+  	
+  	  function init() {
+	    	       	         	               	       	         	               	       	         	               	       	         	               	       	         	                     }
+    </script></head><body class="composite" onload="init();"><div id="banner"><a href="" id="projectLogo"><span>WS-Policy Implementation</span></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+                	Last published: 13 March 2006
+                  | Doc for 0.92-SNAPSHOT</div><div class="xright"></div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuWS-Policy"><h5>WS-Policy</h5><ul><li class="none"><a href="index.html">Home</a></li><li class="expanded"><a href=""></a><ul><li class="none"><a href="download.cgi">Releases</a></li><li class="none"><a href="http://svn.apache.org/repos/asf/webservices/commons/modules/policy" class="externalLink" title="External Link">Source Code</a></li></ul></li><li class="expanded"><a href="">Documentation</a><ul><li class="none"><a href="userguide.html">User's Guide</a></li><li class="none"><a href="apidocs/index.html">Javadocs</a></li></ul></li><li class="expanded"><a href="">Project Information</a><ul><li class="none"><a href="mail-lists.html">Mailing Lists</a></li><li class="none"><strong><a href="team-list.html">Project Team</a></strong></li></ul></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentatio
 n</h5><ul><li class="none"><a href="index.html">About WS-Policy Implementation</a></li><li class="expanded"><a href="project-info.html">Project Info</a><ul><li class="none"><a href="mail-lists.html">Mailing Lists</a></li><li class="none"><strong><a href="team-list.html">Project Team</a></strong></li><li class="none"><a href="dependencies.html">Dependencies</a></li></ul></li><li class="collapsed"><a href="maven-reports.html">Project Reports</a></li><li class="none"><a href="http://maven.apache.org/development-process.html" class="externalLink" title="External Link">Development Process</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="./images/logos/maven-button-1.png"></img></a></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="The_Team"></a><h2>The Team</h2><p>
+        A successful project requires many people to play many roles.
+        Some members write code or documentation, while others are
+        valuable as testers, submitting patches and suggestions.
+      </p><p>
+        The team is comprised of <a href="#Members">Members</a>
+        and <a href="#Contributors">Contributors</a>.  Members 
+        have direct access to the source of a project and actively
+        evolve the code-base.  Contributors improve the project
+        through submission of patches and suggestions to the Members.
+        The number of Contributors to the project is unbounded.
+        Get involved today.  All contributions to the project are
+        greatly appreciated.
+      </p><div class="subsection"><a name="Members"></a><h3>Members</h3><p>
+        The following is a list of developers with commit privileges that have 
+        directly contributed to the project in one way or another.  
+      </p><table class="bodyTable"><thead>
+        <tr class="a"><th>Name</th><th>Id</th><th>Email</th><th>Organization</th><th>Roles</th><th>TZ Offset</th><th>Time</th></tr>
+        </thead><tbody>
+                <tr class="b"><td>Sanjiva Weerawarana</td><td><a name="sanjiva"></a>sanjiva</td><td><a href="mailto:sanjiva@opensource.lk">sanjiva@opensource.lk</a></td><td>WSO2 Inc.</td><td>
+                    </td><td></td><td><span id="developer-sanjiva">Unknown</span></td></tr>
+                <tr class="a"><td>Davanum Srinivas</td><td><a name="dims"></a>dims</td><td><a href="mailto:dims@yahoo.com">dims@yahoo.com</a></td><td>WSO2 Inc.</td><td>
+                    </td><td></td><td><span id="developer-dims">Unknown</span></td></tr>
+                <tr class="b"><td>Dittmann, Werner</td><td><a name="werner"></a>werner</td><td><a href="mailto:werner.dittmann@siemens.com">werner.dittmann@siemens.com</a></td><td></td><td>
+                    </td><td></td><td><span id="developer-werner">Unknown</span></td></tr>
+                <tr class="a"><td>Sanka Samaranayake</td><td><a name="sanka"></a>sanka</td><td><a href="mailto:sanka@apahce.org">sanka@apahce.org</a></td><td>WSO2 Inc.</td><td>
+                    </td><td></td><td><span id="developer-sanka">Unknown</span></td></tr>
+                <tr class="b"><td>Chatra Nakkawita</td><td><a name="chatra"></a>chatra</td><td><a href="mailto:chatra@gmail.com">chatra@gmail.com</a></td><td>WSO2 Inc.</td><td>
+                    </td><td></td><td><span id="developer-chatra">Unknown</span></td></tr>
+                </tbody></table></div><div class="subsection"><a name="Contributors"></a><h3>Contributors</h3><p>
+	    There are no contributors listed for this project. Please check
+ 	    back again later.
+ 	  </p></div></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 2002-2006, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file

Added: webservices/commons/site/policy/userguide.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/userguide.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/userguide.html (added)
+++ webservices/commons/site/policy/userguide.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,150 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Web Services Commons : WS-Policy implemenation - WS Policy User's Guide</title><style type="text/css" media="all">
+          @import url("./style/maven-base.css");
+          
+			    @import url("./style/maven-theme.css");</style><link rel="stylesheet" href="./style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"></meta><meta name="generator" content="amaya 9.2.1, see http://www.w3.org/Amaya/"></meta></head><body class="composite"><div id="banner"><a href="" id="projectLogo"><span>WS-Policy Implementation</span></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+                	Last published: 13 March 2006
+                  | Doc for 0.92-SNAPSHOT</div><div class="xright"></div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuWS-Policy"><h5>WS-Policy</h5><ul><li class="none"><a href="index.html">Home</a></li><li class="expanded"><a href=""></a><ul><li class="none"><a href="download.cgi">Releases</a></li><li class="none"><a href="http://svn.apache.org/repos/asf/webservices/commons/modules/policy" class="externalLink" title="External Link">Source Code</a></li></ul></li><li class="expanded"><a href="">Documentation</a><ul><li class="none"><strong><a href="userguide.html">User's Guide</a></strong></li><li class="none"><a href="apidocs/index.html">Javadocs</a></li></ul></li><li class="expanded"><a href="">Project Information</a><ul><li class="none"><a href="mail-lists.html">Mailing Lists</a></li><li class="none"><a href="team-list.html">Project Team</a></li></ul></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentatio
 n</h5><ul><li class="none"><a href="index.html">About WS-Policy Implementation</a></li><li class="collapsed"><a href="project-info.html">Project Info</a></li><li class="collapsed"><a href="maven-reports.html">Project Reports</a></li><li class="none"><a href="http://maven.apache.org/development-process.html" class="externalLink" title="External Link">Development Process</a></li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="./images/logos/maven-button-1.png"></img></a></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><h1>Apache Web Services Policy User's Guide:</h1><p>This document will instruct you how to use WS-Policy model, taking you
+step by step through the process using a simple sample.</p><p>Send your feedback to: <a href="mailto:commons-dev@ws.apache.org">commons-dev@ws.apache.org</a> (Prefix
+the subject with [Policy])</p><p>To subscribe to developer mailing list see <a href="index.html#mailing">here</a>
+			</p><h2>Content</h2><ol>
+				<li>
+					<a href="#create">Create a policy object</a>
+					<ul>
+						<li>
+							<a href="#policydoc">Create a policy object by reading a policy document</a>
+							<ul>
+								<li>
+									<a href="#policyreader">How to create a PolicyReader</a>
+								</li>
+								<li>
+									<a href="#feedpolicydoc">Feed the policy document to PolicyReader as an
+            inputStream</a>
+								</li>
+							</ul>
+						</li>
+						<li>
+							<a href="#program">Create a policy object programmatically.</a>
+						</li>
+					</ul>
+				</li>
+				<li>
+					<a href="#write">Write a policy object</a>
+				</li>
+				<li>
+					<a href="#normalize">Normalization</a>
+				</li>
+				<li>
+					<a href="#merge">Merge policy objects</a>
+				</li>
+				<li>
+					<a href="#intersect">Intersect policy objects</a>
+				</li>
+			</ol><a name="create"></a><h2>Create a policy object</h2><p>You can create a policy obejct using one of the following two methods</p><ol>
+				<li>
+					<a href="#policydoc">Create a policy object by redaing a policy document</a>
+				</li>
+				<li>
+					<a href="#program">Create a policy object programmatically</a>
+				</li>
+			</ol><a name="policydoc"></a><h3>Create a policy object by reading a policy document</h3><p>The following steps need to be taken to create a policy object from a
+policy document</p><ol>
+				<li>
+					<a href="#policyreader">Create a PolicyReader</a> - This is the class that creates a policy object
+    using an InputStream.</li>
+				<li>
+					<a href="#feedpolicydoc">Feed the policy document to PolicyReader as an InputStream</a>-This will
+    return a policy object</li>
+			</ol><a name="policyreader"></a><h4>1. How to create a PolicyReader</h4><p>PolicyReader is the class that creates a policy object using an
+InputStream.</p>
+    <div class="source"><pre>
+				<pre>PolicyReader reader =
+PolicyFactory.getPolicyReader(PolicyFactory.OM_POLICY_READER);
+
+// or
+
+PolicyReader reader =
+PolicyFactory.getPolicyReader(PolicyFactory.DOM_POLICY_READER);</pre>
+			</pre></div>
+  <a name="feedpolicydoc"></a><h4>2. Feed the policy document to PolicyReader as an InputStream.</h4><p>This step will return a policy object.</p>
+    <div class="source"><pre>
+				<pre>String pathToPolicyFile = " /home/ ../Policy1.xml";
+
+FileInputStream fis = new FileInputStream(pathToPolicyFile);
+
+Policy policy = reader.readPolicy(fis);</pre>
+			</pre></div>
+  <a name="program"></a><h3>Create a policy object programmatically.</h3><a name="policy"></a><p>Lets consider the sample policy below.</p>
+    <div class="source"><pre>
+				<pre>&lt;wsp:Policy&gt;
+   &lt;wsp:ExactlyOne&gt; // Corresponds to XorCompositeAssertion
+   &lt;wsp:All&gt; // Corresponds to AndCompositeAssertion
+     &lt;ns1:TestAssertion&gt;
+     TestAssertion1
+     &lt;/ns:TestAssertion&gt;
+   &lt;/wsp:All&gt;
+   &lt;/wsp:ExactlyOne&gt;
+&lt;/wsp:Policy&gt;</pre>
+			</pre></div>
+  <p>Now lets create programmatically the policy object which represents the
+above policy</p>
+    <div class="source"><pre>
+				<pre>Policy p = new Policy(); // will give you the following element
+
+&lt;wsp:Policy&gt; &lt;/wsp:Policy&gt;
+
+XorCompositeAssertion x1 = new XorCompositeAssertion();
+p.addTerm(x1); //will give you XorCompositeAssertion as seen below
+
+&lt;wsp:Policy&gt;
+&lt;wsp:ExactlyOne&gt;....&lt;/wsp:ExactlyOne&gt;
+&lt;/wsp:Policy&gt;
+
+AndCompositeAssertion a1 = new AndCompositeAssertion();
+x1.addTerm(a1);// will give you AndCompositeAssertion as seen below
+
+&lt;wsp:Policy&gt;
+&lt;wsp:ExactlyOne&gt;
+&lt;wsp:All&gt;...&lt;/wsp:All&gt;
+&lt;/wsp:ExactlyOne&gt;
+&lt;/wsp:Policy&gt;
+
+QName name = new QName("Test", "http://tests.org/tests", "ns1");
+PrimitiveAssertion prim1 = new PrimitiveAssertion(name);
+prim1.setStrValue("MyTestAssertion");
+a1.addTerm(prim1); //will give you the <a href="#policy">complete policy</a>
+				</pre>
+			</pre></div>
+  <a name="write"></a><h2>Write a policy object</h2><p>The following code will achieve this task</p>
+    <div class="source"><pre>
+				<pre>String pathToOutFile = "/home/... /Policy2.xml";
+
+FileOutputStream fos = new FileOutputStream(pathToOutFile);
+
+PolicyWriter writer =
+PolicyFactory.getPolicyWriter(PolicyFactory.StAX_POLICY_WRITER);
+
+writer.writePolicy(policy, fos );</pre>
+			</pre></div>
+  <a name="normalize"></a><h2>Normalization</h2><p>The following code will achieve policy normalization</p>
+    <div class="source"><pre>
+				<pre>Policy policy1 = reader.readPolicy(...);
+
+Policy normalized = (Policy) policy1.normalize();</pre>
+			</pre></div>
+  <a name="merge"></a><h2>Merge policy objects</h2><p>The following code will merge two policy objects</p>
+    <div class="source"><pre>
+				<pre>Policy policy1 = reader.readPolicy(...);
+
+Policy policy2 = reader.readPolicy(...);
+
+Policy merged = (Policy) policy1.merge(policy2);</pre>
+			</pre></div>
+  <a name="intersect"></a><h2>Intersect policy objects</h2><p>The following code will intersect two policy objects</p>
+    <div class="source"><pre>
+				<pre>Policy policy1 = reader.readPolicy(..)
+
+Policy policy2 = reader.readPolicy(..)
+
+Policy intersected = (Policy) policy1.intersect(policy2);</pre>
+			</pre></div>
+  </div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 2002-2006, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file

Added: webservices/commons/site/policy/xref-test/allclasses-frame.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/allclasses-frame.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/allclasses-frame.html (added)
+++ webservices/commons/site/policy/xref-test/allclasses-frame.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,43 @@
+
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+  <html xmlns="http://www.w3.org/1999/xhtml lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>All Classes</title>
+      <link rel="stylesheet" href="stylesheet.css" type="text/css" title="style"></link>
+    </head>
+    <body>
+
+      <h3>All Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="org/apache/ws/policy/IntersectTest.html" target="classFrame">IntersectTest</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/ws/policy/MergeTest.html" target="classFrame">MergeTest</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/ws/policy/Normalize2Test.html" target="classFrame">Normalize2Test</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/ws/policy/NormalizeTest.html" target="classFrame">NormalizeTest</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/ws/policy/util/PolicyComparator.html" target="classFrame">PolicyComparator</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/ws/policy/PolicyTestCase.html" target="classFrame">PolicyTestCase</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/commons/site/policy/xref-test/index.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/index.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/index.html (added)
+++ webservices/commons/site/policy/xref-test/index.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,22 @@
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "DTD/xhtml1-frameset.dtd">
+  <html xmlns="http://www.w3.org/1999/xhtml lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>WS-Policy Implementation 0.92-SNAPSHOT Reference</title>
+    </head>
+    <frameset cols="20%,80%">
+      <frameset rows="30%,70%">
+        <frame name="packageListFrame" src="overview-frame.html"></frame>
+        <frame name="packageFrame" src="allclasses-frame.html"></frame>
+      </frameset>
+      <frame name="classFrame" src="overview-summary.html"></frame>
+    </frameset>
+    <noframes>
+      <h1>Frame Alert</h1>
+      <p>
+        You don't have frames. Go
+        <a href="overview-summary.html">here</a>
+      </p>
+    </noframes>
+  </html>

Added: webservices/commons/site/policy/xref-test/org/apache/ws/policy/IntersectTest.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/org/apache/ws/policy/IntersectTest.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/org/apache/ws/policy/IntersectTest.html (added)
+++ webservices/commons/site/policy/xref-test/org/apache/ws/policy/IntersectTest.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,85 @@
+<!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>IntersectTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2004,2005 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>  <strong>package</strong> <a href="../../../../org/apache/ws/policy/package-summary.html">org.apache.ws.policy</a>;
+<a name="17" href="#17">17</a>  
+<a name="18" href="#18">18</a>  <strong>import</strong> java.io.File;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.ws.policy.util.PolicyComparator;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.ws.policy.util.PolicyFactory;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.ws.policy.util.PolicyReader;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <em>/**<em>*</em></em>
+<a name="25" href="#25">25</a>  <em> * @author Sanka Samaranayake (sanka@apache.org)</em>
+<a name="26" href="#26">26</a>  <em> */</em>
+<a name="27" href="#27">27</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/ws/policy/IntersectTest.html">IntersectTest</a> <strong>extends</strong> <a href="../../../../org/apache/ws/policy/PolicyTestCase.html">PolicyTestCase</a> {
+<a name="28" href="#28">28</a>  	PolicyReader reader = PolicyFactory
+<a name="29" href="#29">29</a>  			.getPolicyReader(PolicyFactory.OM_POLICY_READER);
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  	<strong>public</strong> <a href="../../../../org/apache/ws/policy/IntersectTest.html">IntersectTest</a>() {
+<a name="32" href="#32">32</a>  		<strong>super</strong>(<span class="string">"IntersectTest"</span>);
+<a name="33" href="#33">33</a>  	}
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>public</strong> <strong>void</strong> test() throws Exception {
+<a name="36" href="#36">36</a>  		String r1, r2, r3;
+<a name="37" href="#37">37</a>  		Policy p1, p2, p3, p4;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  		File intersected = <strong>new</strong> File(testResourceDir, <span class="string">"intersected"</span>);
+<a name="40" href="#40">40</a>  		File[] files = intersected.listFiles();
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  		String f, f1, f2;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  		<strong>for</strong> (<strong>int</strong> i = 0; i &lt; files.length; i++) {
+<a name="45" href="#45">45</a>  			f = files[i].getName();
+<a name="46" href="#46">46</a>  			
+<a name="47" href="#47">47</a>  			<strong>if</strong> (files[i].isHidden()) { <em class="comment">// to ignor .svn files</em>
+<a name="48" href="#48">48</a>  				<strong>continue</strong>;
+<a name="49" href="#49">49</a>  			}
+<a name="50" href="#50">50</a>  			
+<a name="51" href="#51">51</a>  			f1 = f.substring(f.indexOf('y') + 1, f.indexOf('-'));
+<a name="52" href="#52">52</a>  			f2 = f.substring(f.indexOf('-') + 1, f.indexOf('.'));
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>  			r1 = <span class="string">"samples2"</span> + File.separator + <span class="string">"Policy"</span> + f1 + <span class="string">".xml"</span>;
+<a name="55" href="#55">55</a>  			r2 = <span class="string">"samples2"</span> + File.separator + <span class="string">"Policy"</span> + f2 + <span class="string">".xml"</span>;
+<a name="56" href="#56">56</a>  			r3 = <span class="string">"intersected"</span> + File.separator + f;
+<a name="57" href="#57">57</a>  
+<a name="58" href="#58">58</a>  			p1 = reader.readPolicy(getResource(r1));
+<a name="59" href="#59">59</a>  			p2 = reader.readPolicy(getResource(r2));
+<a name="60" href="#60">60</a>  			p3 = reader.readPolicy(getResource(r3));
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  			<em class="comment">// result</em>
+<a name="63" href="#63">63</a>  			p4 = (Policy) p1.intersect(p2);
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  			<strong>if</strong> (!PolicyComparator.compare(p4, p3)) {
+<a name="66" href="#66">66</a>  				
+<a name="67" href="#67">67</a>  				fail(<span class="string">"samples2"</span> + File.separator + <span class="string">" Policy"</span> + f1
+<a name="68" href="#68">68</a>  						+ <span class="string">".intersect(Policy"</span> + f2 + <span class="string">") FAILED"</span>);
+<a name="69" href="#69">69</a>  			}		
+<a name="70" href="#70">70</a>  		}
+<a name="71" href="#71">71</a>  	}
+<a name="72" href="#72">72</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/commons/site/policy/xref-test/org/apache/ws/policy/MergeTest.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/org/apache/ws/policy/MergeTest.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/org/apache/ws/policy/MergeTest.html (added)
+++ webservices/commons/site/policy/xref-test/org/apache/ws/policy/MergeTest.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,85 @@
+<!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>MergeTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2004,2005 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>  <strong>package</strong> <a href="../../../../org/apache/ws/policy/package-summary.html">org.apache.ws.policy</a>;
+<a name="17" href="#17">17</a>  
+<a name="18" href="#18">18</a>  <strong>import</strong> java.io.File;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.ws.policy.util.PolicyComparator;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.ws.policy.util.PolicyFactory;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.ws.policy.util.PolicyReader;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <em>/**<em>*</em></em>
+<a name="25" href="#25">25</a>  <em> * @author Sanka Samaranayake (sanka@apache.org)</em>
+<a name="26" href="#26">26</a>  <em> */</em>
+<a name="27" href="#27">27</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/ws/policy/MergeTest.html">MergeTest</a> <strong>extends</strong> <a href="../../../../org/apache/ws/policy/PolicyTestCase.html">PolicyTestCase</a> {
+<a name="28" href="#28">28</a>  	PolicyReader reader = PolicyFactory
+<a name="29" href="#29">29</a>  			.getPolicyReader(PolicyFactory.OM_POLICY_READER);
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  	<strong>public</strong> <a href="../../../../org/apache/ws/policy/MergeTest.html">MergeTest</a>() {
+<a name="32" href="#32">32</a>  		<strong>super</strong>(<span class="string">"MergeTest"</span>);
+<a name="33" href="#33">33</a>  	}
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>public</strong> <strong>void</strong> test() throws Exception {
+<a name="36" href="#36">36</a>  		String r1, r2, r3;
+<a name="37" href="#37">37</a>  		Policy p1, p2, p3, p4;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  		File samples2 = <strong>new</strong> File(testResourceDir, <span class="string">"merged"</span>);
+<a name="40" href="#40">40</a>  		File[] files = samples2.listFiles();
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  		String f, f1, f2;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  		<strong>for</strong> (<strong>int</strong> i = 0; i &lt; files.length; i++) {
+<a name="45" href="#45">45</a>  			
+<a name="46" href="#46">46</a>  			<strong>if</strong> (files[i].isHidden()) {
+<a name="47" href="#47">47</a>  				<strong>continue</strong>;
+<a name="48" href="#48">48</a>  			}
+<a name="49" href="#49">49</a>  			
+<a name="50" href="#50">50</a>  			f = files[i].getName();
+<a name="51" href="#51">51</a>  			
+<a name="52" href="#52">52</a>  			f1 = f.substring(f.indexOf('y') + 1, f.indexOf('-'));
+<a name="53" href="#53">53</a>  			f2 = f.substring(f.indexOf('-') + 1, f.indexOf('.'));
+<a name="54" href="#54">54</a>  
+<a name="55" href="#55">55</a>  			r1 = <span class="string">"samples2"</span> + File.separator + <span class="string">"Policy"</span> + f1 + <span class="string">".xml"</span>;
+<a name="56" href="#56">56</a>  			r2 = <span class="string">"samples2"</span> + File.separator + <span class="string">"Policy"</span> + f2 + <span class="string">".xml"</span>;
+<a name="57" href="#57">57</a>  			r3 = <span class="string">"merged"</span> + File.separator + f;
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>  			p1 = reader.readPolicy(getResource(r1));
+<a name="60" href="#60">60</a>  			p2 = reader.readPolicy(getResource(r2));
+<a name="61" href="#61">61</a>  			p3 = reader.readPolicy(getResource(r3));
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>  			<em class="comment">// result</em>
+<a name="64" href="#64">64</a>  			p4 = (Policy) p1.merge(p2);
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>  			<strong>if</strong> (!PolicyComparator.compare(p4, p3)) {
+<a name="67" href="#67">67</a>  				fail(<span class="string">"samples2"</span> + File.separator + <span class="string">" Policy"</span> + f1
+<a name="68" href="#68">68</a>  						+ <span class="string">".merge(Policy"</span> + f2 + <span class="string">") FAILED"</span>);
+<a name="69" href="#69">69</a>  			}
+<a name="70" href="#70">70</a>  		}
+<a name="71" href="#71">71</a>  	}
+<a name="72" href="#72">72</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/commons/site/policy/xref-test/org/apache/ws/policy/Normalize2Test.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/org/apache/ws/policy/Normalize2Test.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/org/apache/ws/policy/Normalize2Test.html (added)
+++ webservices/commons/site/policy/xref-test/org/apache/ws/policy/Normalize2Test.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,67 @@
+<!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>Normalize2Test xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2004,2005 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>  <strong>package</strong> <a href="../../../../org/apache/ws/policy/package-summary.html">org.apache.ws.policy</a>;
+<a name="17" href="#17">17</a>  
+<a name="18" href="#18">18</a>  <strong>import</strong> java.io.File;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.ws.policy.util.PolicyComparator;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.ws.policy.util.PolicyFactory;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.ws.policy.util.PolicyReader;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <em>/**<em>*</em></em>
+<a name="25" href="#25">25</a>  <em> * @author Sanka Samaranayake (sanka@apache.org)</em>
+<a name="26" href="#26">26</a>  <em> */</em>
+<a name="27" href="#27">27</a>  <strong>public</strong> <strong>class</strong> Normalize2Test <strong>extends</strong> <a href="../../../../org/apache/ws/policy/PolicyTestCase.html">PolicyTestCase</a> {
+<a name="28" href="#28">28</a>  	PolicyReader reader = PolicyFactory
+<a name="29" href="#29">29</a>  			.getPolicyReader(PolicyFactory.OM_POLICY_READER);
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  	<strong>public</strong> Normalize2Test() {
+<a name="32" href="#32">32</a>  		<strong>super</strong>(<span class="string">"Normalize2Test"</span>);
+<a name="33" href="#33">33</a>  	}
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>public</strong> <strong>void</strong> test() throws Exception {
+<a name="36" href="#36">36</a>  		String r1, r2;
+<a name="37" href="#37">37</a>  		Policy p1, p2;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  		<strong>for</strong> (<strong>int</strong> i = 1; i &lt; 21; i++) {
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  			r1 = <span class="string">"samples2"</span> + File.separator + <span class="string">"Policy"</span> + i + <span class="string">".xml"</span>;
+<a name="42" href="#42">42</a>  			r2 = <span class="string">"normalized2"</span> + File.separator + <span class="string">"Policy"</span> + i + <span class="string">".xml"</span>;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  			p1 = reader.readPolicy(getResource(r1));
+<a name="45" href="#45">45</a>  			p1 = (Policy) p1.normalize();
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  			p2 = reader.readPolicy(getResource(r2));
+<a name="48" href="#48">48</a>  
+<a name="49" href="#49">49</a>  			<strong>if</strong> (!PolicyComparator.compare(p1, p2)) {
+<a name="50" href="#50">50</a>  				fail(<span class="string">"samples2"</span> + File.separator + <span class="string">"Policy"</span> + i + <span class="string">".normalize() FAILED"</span>);
+<a name="51" href="#51">51</a>  			}
+<a name="52" href="#52">52</a>  		}
+<a name="53" href="#53">53</a>  	}
+<a name="54" href="#54">54</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/commons/site/policy/xref-test/org/apache/ws/policy/NormalizeTest.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/org/apache/ws/policy/NormalizeTest.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/org/apache/ws/policy/NormalizeTest.html (added)
+++ webservices/commons/site/policy/xref-test/org/apache/ws/policy/NormalizeTest.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,67 @@
+<!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>NormalizeTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2004,2005 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>  <strong>package</strong> <a href="../../../../org/apache/ws/policy/package-summary.html">org.apache.ws.policy</a>;
+<a name="17" href="#17">17</a>  
+<a name="18" href="#18">18</a>  <strong>import</strong> java.io.File;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.ws.policy.util.PolicyComparator;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.ws.policy.util.PolicyFactory;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.ws.policy.util.PolicyReader;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <em>/**<em>*</em></em>
+<a name="25" href="#25">25</a>  <em> * @author Sanka Samaranayake (sanka@apache.org)</em>
+<a name="26" href="#26">26</a>  <em> */</em>
+<a name="27" href="#27">27</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/ws/policy/NormalizeTest.html">NormalizeTest</a> <strong>extends</strong> <a href="../../../../org/apache/ws/policy/PolicyTestCase.html">PolicyTestCase</a> {
+<a name="28" href="#28">28</a>  	PolicyReader reader = PolicyFactory
+<a name="29" href="#29">29</a>  			.getPolicyReader(PolicyFactory.OM_POLICY_READER);
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  	<strong>public</strong> <a href="../../../../org/apache/ws/policy/NormalizeTest.html">NormalizeTest</a>() {
+<a name="32" href="#32">32</a>  		<strong>super</strong>(<span class="string">"NormalizeTest"</span>);
+<a name="33" href="#33">33</a>  	}
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>public</strong> <strong>void</strong> test() throws Exception {
+<a name="36" href="#36">36</a>  		String r1, r2;
+<a name="37" href="#37">37</a>  		Policy p1, p2;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  		<strong>for</strong> (<strong>int</strong> i = 1; i &lt; 25; i++) {
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  			r1 = <span class="string">"samples"</span> + File.separator + <span class="string">"test"</span> + i + <span class="string">".xml"</span>;
+<a name="42" href="#42">42</a>  			r2 = <span class="string">"normalized"</span> + File.separator + <span class="string">"test"</span> + i + <span class="string">".xml"</span>;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  			p1 = reader.readPolicy(getResource(r1));
+<a name="45" href="#45">45</a>  			p1 = (Policy) p1.normalize();
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  			p2 = reader.readPolicy(getResource(r2));
+<a name="48" href="#48">48</a>  
+<a name="49" href="#49">49</a>  			<strong>if</strong> (!PolicyComparator.compare(p1, p2)) {
+<a name="50" href="#50">50</a>  				fail(<span class="string">"test"</span> + i + <span class="string">" normalize() FAILED"</span>);
+<a name="51" href="#51">51</a>  			} 
+<a name="52" href="#52">52</a>  		}
+<a name="53" href="#53">53</a>  	}
+<a name="54" href="#54">54</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/commons/site/policy/xref-test/org/apache/ws/policy/PolicyTestCase.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/org/apache/ws/policy/PolicyTestCase.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/org/apache/ws/policy/PolicyTestCase.html (added)
+++ webservices/commons/site/policy/xref-test/org/apache/ws/policy/PolicyTestCase.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,65 @@
+<!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>PolicyTestCase xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2004,2005 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>  <strong>package</strong> <a href="../../../../org/apache/ws/policy/package-summary.html">org.apache.ws.policy</a>;
+<a name="17" href="#17">17</a>  
+<a name="18" href="#18">18</a>  <strong>import</strong> java.io.File;
+<a name="19" href="#19">19</a>  <strong>import</strong> java.io.FileInputStream;
+<a name="20" href="#20">20</a>  <strong>import</strong> java.io.FileNotFoundException;
+<a name="21" href="#21">21</a>  <strong>import</strong> java.io.InputStream;
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <strong>import</strong> junit.framework.TestCase;
+<a name="24" href="#24">24</a>  
+<a name="25" href="#25">25</a>  <em>/**<em>*</em></em>
+<a name="26" href="#26">26</a>  <em> * @author Sanka Samaranayake (sanka@apache.org)</em>
+<a name="27" href="#27">27</a>  <em> */</em>
+<a name="28" href="#28">28</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/ws/policy/PolicyTestCase.html">PolicyTestCase</a> <strong>extends</strong> TestCase {
+<a name="29" href="#29">29</a>  	<strong>protected</strong> String baseDir = System.getProperty(<span class="string">"basedir"</span>);
+<a name="30" href="#30">30</a>  	<strong>protected</strong> String testDir = <span class="string">"test"</span> + File.separator;
+<a name="31" href="#31">31</a>  	<strong>protected</strong> String testResourceDir = <span class="string">"test-resources"</span>;
+<a name="32" href="#32">32</a>  	
+<a name="33" href="#33">33</a>  	<strong>public</strong> <a href="../../../../org/apache/ws/policy/PolicyTestCase.html">PolicyTestCase</a>(String name) {
+<a name="34" href="#34">34</a>  		<strong>super</strong>(name);
+<a name="35" href="#35">35</a>  		<strong>if</strong> (baseDir == <strong>null</strong>) {
+<a name="36" href="#36">36</a>  			baseDir = (String) (<strong>new</strong> File(<span class="string">"."</span>)).getAbsolutePath();
+<a name="37" href="#37">37</a>  		}
+<a name="38" href="#38">38</a>  		testDir = (String) (<strong>new</strong> File(baseDir, testDir).getAbsolutePath());	
+<a name="39" href="#39">39</a>  	}	
+<a name="40" href="#40">40</a>  	
+<a name="41" href="#41">41</a>  	<strong>public</strong> InputStream getResource(String name) {
+<a name="42" href="#42">42</a>  		String filePath = (<strong>new</strong> File(testResourceDir, name)).getAbsolutePath(); 
+<a name="43" href="#43">43</a>  		<strong>try</strong> {
+<a name="44" href="#44">44</a>  			FileInputStream fis = <strong>new</strong> FileInputStream(filePath);
+<a name="45" href="#45">45</a>  			<strong>return</strong> fis;
+<a name="46" href="#46">46</a>  		} <strong>catch</strong> (FileNotFoundException e) {
+<a name="47" href="#47">47</a>  			fail(<span class="string">"Cannot get resource: "</span> + e.getMessage());
+<a name="48" href="#48">48</a>  			<strong>throw</strong> <strong>new</strong> RuntimeException();
+<a name="49" href="#49">49</a>  		}
+<a name="50" href="#50">50</a>  	}
+<a name="51" href="#51">51</a>  }
+<a name="52" href="#52">52</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/commons/site/policy/xref-test/org/apache/ws/policy/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/org/apache/ws/policy/package-frame.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/org/apache/ws/policy/package-frame.html (added)
+++ webservices/commons/site/policy/xref-test/org/apache/ws/policy/package-frame.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,43 @@
+
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+  <html xmlns="http://www.w3.org/1999/xhtml lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>WS-Policy Implementation 0.92-SNAPSHOT Reference Package org.apache.ws.policy</title>
+      <link rel="stylesheet" href="\.\./\.\./\.\./\.\./stylesheet.css" type="text/css" title="style"></link>
+    </head>
+    <body>
+
+      <h3>
+        <a href="package-summary.html" target="classFrame">org.apache.ws.policy</a>
+      </h3>
+
+      <h3>Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="IntersectTest.html" target="classFrame">IntersectTest</a>
+          </li>
+        
+          <li>
+            <a href="MergeTest.html" target="classFrame">MergeTest</a>
+          </li>
+        
+          <li>
+            <a href="Normalize2Test.html" target="classFrame">Normalize2Test</a>
+          </li>
+        
+          <li>
+            <a href="NormalizeTest.html" target="classFrame">NormalizeTest</a>
+          </li>
+        
+          <li>
+            <a href="PolicyTestCase.html" target="classFrame">PolicyTestCase</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/commons/site/policy/xref-test/org/apache/ws/policy/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/org/apache/ws/policy/package-summary.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/org/apache/ws/policy/package-summary.html (added)
+++ webservices/commons/site/policy/xref-test/org/apache/ws/policy/package-summary.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,126 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+
+  
+      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+      <html xmlns="http://www.w3.org/1999/xhtml lang="en">
+        <head>
+          <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+          <title>WS-Policy Implementation 0.92-SNAPSHOT Reference Package </title>
+          <link rel="stylesheet" href="\.\./\.\./\.\./\.\./stylesheet.css" type="text/css" title="style"></link>
+        </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.ws.policy</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Class Summary</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="IntersectTest.html" target="classFrame">IntersectTest</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="MergeTest.html" target="classFrame">MergeTest</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="Normalize2Test.html" target="classFrame">Normalize2Test</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="NormalizeTest.html" target="classFrame">NormalizeTest</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="PolicyTestCase.html" target="classFrame">PolicyTestCase</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></hr>
+
+          Copyright &copy; 2002-2006 Apache Software Foundation. All Rights Reserved.
+        </body>
+      </html>
+    

Added: webservices/commons/site/policy/xref-test/org/apache/ws/policy/util/PolicyComparator.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/org/apache/ws/policy/util/PolicyComparator.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/org/apache/ws/policy/util/PolicyComparator.html (added)
+++ webservices/commons/site/policy/xref-test/org/apache/ws/policy/util/PolicyComparator.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,188 @@
+<!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>PolicyComparator xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2004,2005 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>  
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../org/apache/ws/policy/util/package-summary.html">org.apache.ws.policy.util</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> java.util.Hashtable;
+<a name="20" href="#20">20</a>  <strong>import</strong> java.util.Iterator;
+<a name="21" href="#21">21</a>  <strong>import</strong> java.util.List;
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="24" href="#24">24</a>  
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.ws.policy.AndCompositeAssertion;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.ws.policy.Assertion;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.ws.policy.Policy;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.ws.policy.PolicyReference;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.ws.policy.PrimitiveAssertion;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.ws.policy.XorCompositeAssertion;
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  <em>/**<em>*</em></em>
+<a name="33" href="#33">33</a>  <em> * @author Sanka Samaranayake (sanka@apache.org)</em>
+<a name="34" href="#34">34</a>  <em> */</em>
+<a name="35" href="#35">35</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/ws/policy/util/PolicyComparator.html">PolicyComparator</a> {
+<a name="36" href="#36">36</a>  	<strong>public</strong> <strong>static</strong> <strong>boolean</strong> compare(Policy arg1, Policy arg2) {
+<a name="37" href="#37">37</a>  		<strong>if</strong> (arg1.getId() == <strong>null</strong> &amp;&amp; arg2.getId() != <strong>null</strong>
+<a name="38" href="#38">38</a>  				|| arg1.getId() != <strong>null</strong> &amp;&amp; arg1.getId() == <strong>null</strong>) {
+<a name="39" href="#39">39</a>  			<strong>return</strong> false;
+<a name="40" href="#40">40</a>  		}
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  		<strong>if</strong> (arg1.getId() != <strong>null</strong>) {
+<a name="43" href="#43">43</a>  			<strong>if</strong> (!arg1.getId().equals(arg2.getId())) {
+<a name="44" href="#44">44</a>  				<strong>return</strong> false;
+<a name="45" href="#45">45</a>  			}
+<a name="46" href="#46">46</a>  		}
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  		<strong>if</strong> (arg1.getBase() == <strong>null</strong> &amp;&amp; arg2.getBase() != <strong>null</strong>
+<a name="49" href="#49">49</a>  				|| arg1.getBase() != <strong>null</strong> &amp;&amp; arg1.getBase() == <strong>null</strong>) {
+<a name="50" href="#50">50</a>  			<strong>return</strong> false;
+<a name="51" href="#51">51</a>  		}
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>  		<strong>if</strong> (arg1.getBase() != <strong>null</strong>) {
+<a name="54" href="#54">54</a>  			<strong>if</strong> (!arg1.getBase().equals(arg2.getBase())) {
+<a name="55" href="#55">55</a>  				<strong>return</strong> false;
+<a name="56" href="#56">56</a>  			}
+<a name="57" href="#57">57</a>  		}
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>  		<strong>return</strong> compare(arg1.getTerms(), arg2.getTerms());
+<a name="60" href="#60">60</a>  	}
+<a name="61" href="#61">61</a>  	
+<a name="62" href="#62">62</a>  	<strong>public</strong> <strong>static</strong> <strong>boolean</strong> compare(Assertion arg1, Assertion arg2) {
+<a name="63" href="#63">63</a>  		<strong>if</strong> (! arg1.getClass().equals(arg2.getClass())) {
+<a name="64" href="#64">64</a>  			<strong>return</strong> false;
+<a name="65" href="#65">65</a>  		}
+<a name="66" href="#66">66</a>  
+<a name="67" href="#67">67</a>  		<strong>if</strong> (arg1 instanceof Policy) {
+<a name="68" href="#68">68</a>  			<strong>return</strong> compare((Policy) arg1, (Policy) arg2);
+<a name="69" href="#69">69</a>  
+<a name="70" href="#70">70</a>  		} <strong>else</strong> <strong>if</strong> (arg1 instanceof PolicyReference) {
+<a name="71" href="#71">71</a>  
+<a name="72" href="#72">72</a>  			<strong>return</strong> compare((PolicyReference) arg1, (PolicyReference) arg2);
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>  		} <strong>else</strong> <strong>if</strong> (arg1 instanceof AndCompositeAssertion) {
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  			<strong>return</strong> compare((AndCompositeAssertion) arg1,
+<a name="77" href="#77">77</a>  					(AndCompositeAssertion) arg2);
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>  		} <strong>else</strong> <strong>if</strong> (arg1 instanceof XorCompositeAssertion) {
+<a name="80" href="#80">80</a>  			<strong>return</strong> compare((XorCompositeAssertion) arg1,
+<a name="81" href="#81">81</a>  					(XorCompositeAssertion) arg2);
+<a name="82" href="#82">82</a>  
+<a name="83" href="#83">83</a>  		} <strong>else</strong> <strong>if</strong> (arg1 instanceof PrimitiveAssertion) {
+<a name="84" href="#84">84</a>  			<strong>return</strong> compare((PrimitiveAssertion) arg1, (PrimitiveAssertion) arg2);
+<a name="85" href="#85">85</a>  
+<a name="86" href="#86">86</a>  		} <strong>else</strong> {
+<a name="87" href="#87">87</a>  			<em class="comment">// TODO should I throw an exception ..</em>
+<a name="88" href="#88">88</a>  		}
+<a name="89" href="#89">89</a>  
+<a name="90" href="#90">90</a>  		<strong>return</strong> false;
+<a name="91" href="#91">91</a>  	}
+<a name="92" href="#92">92</a>  
+<a name="93" href="#93">93</a>  	
+<a name="94" href="#94">94</a>  
+<a name="95" href="#95">95</a>  	<strong>public</strong> <strong>static</strong> <strong>boolean</strong> compare(PolicyReference arg1, PolicyReference arg2) {
+<a name="96" href="#96">96</a>  		<strong>return</strong> arg1.getPolicyURIString().equals(arg2.getPolicyURIString());
+<a name="97" href="#97">97</a>  	}
+<a name="98" href="#98">98</a>  
+<a name="99" href="#99">99</a>  	<strong>public</strong> <strong>static</strong> <strong>boolean</strong> compare(AndCompositeAssertion arg1,
+<a name="100" href="#100">100</a> 			AndCompositeAssertion arg2) {
+<a name="101" href="#101">101</a> 		<strong>return</strong> compare(arg1.getTerms(), arg2.getTerms());
+<a name="102" href="#102">102</a> 	}
+<a name="103" href="#103">103</a> 
+<a name="104" href="#104">104</a> 	<strong>public</strong> <strong>static</strong> <strong>boolean</strong> compare(XorCompositeAssertion arg1,
+<a name="105" href="#105">105</a> 			XorCompositeAssertion arg2) {
+<a name="106" href="#106">106</a> 		<strong>return</strong> compare(arg1.getTerms(), arg2.getTerms());
+<a name="107" href="#107">107</a> 	}
+<a name="108" href="#108">108</a> 
+<a name="109" href="#109">109</a> 	<strong>public</strong> <strong>static</strong> <strong>boolean</strong> compare(PrimitiveAssertion arg1,
+<a name="110" href="#110">110</a> 			PrimitiveAssertion arg2) {
+<a name="111" href="#111">111</a> 		<strong>if</strong> (!(arg1.getName().equals(arg2.getName()))) {
+<a name="112" href="#112">112</a> 			<strong>return</strong> false;
+<a name="113" href="#113">113</a> 		}
+<a name="114" href="#114">114</a> 		<strong>if</strong> (arg1.getStrValue() != <strong>null</strong>) {
+<a name="115" href="#115">115</a> 			String arg1Str = arg1.getStrValue().trim();
+<a name="116" href="#116">116</a> 			<strong>if</strong> (arg2.getStrValue() == <strong>null</strong>) {
+<a name="117" href="#117">117</a> 				<strong>return</strong> false;
+<a name="118" href="#118">118</a> 			} <strong>else</strong> {
+<a name="119" href="#119">119</a> 				String arg2Str = arg2.getStrValue().trim();
+<a name="120" href="#120">120</a> 				<strong>if</strong> (! arg1Str.equals(arg2Str)) {
+<a name="121" href="#121">121</a> 					<strong>return</strong> false;}
+<a name="122" href="#122">122</a> 			}
+<a name="123" href="#123">123</a> 		}
+<a name="124" href="#124">124</a> <em class="comment">//		if ((arg1.getStrValue() == null || arg1.getStrValue().trim() == "") &amp;&amp; (arg2.getStrValue() != null &amp;&amp; arg2.getStrValue().trim() != "")</em>
+<a name="125" href="#125">125</a> <em class="comment">//				|| (arg1.getStrValue() != null &amp;&amp; arg1.getStrValue().trim() == "") &amp;&amp; (arg1.getStrValue() == null || arg1.getStrValue().trim() == "")) {</em>
+<a name="126" href="#126">126</a> <em class="comment">//			return false;</em>
+<a name="127" href="#127">127</a> <em class="comment">//		}</em>
+<a name="128" href="#128">128</a> 		<strong>return</strong> compare(arg1.getTerms(), arg2.getTerms());
+<a name="129" href="#129">129</a> 	}
+<a name="130" href="#130">130</a> 
+<a name="131" href="#131">131</a> 	<strong>private</strong> <strong>static</strong> <strong>boolean</strong> compare(List arg1, List arg2) {
+<a name="132" href="#132">132</a> 		<strong>if</strong> (arg1.size() != arg2.size()) {
+<a name="133" href="#133">133</a> 			<strong>return</strong> false;
+<a name="134" href="#134">134</a> 		}
+<a name="135" href="#135">135</a> 		
+<a name="136" href="#136">136</a> 		Iterator iterator = arg1.iterator();
+<a name="137" href="#137">137</a> 		Assertion assertion1;
+<a name="138" href="#138">138</a> 
+<a name="139" href="#139">139</a> 		<strong>while</strong> (iterator.hasNext()) {
+<a name="140" href="#140">140</a> 			assertion1 = (Assertion) iterator.next();
+<a name="141" href="#141">141</a> 
+<a name="142" href="#142">142</a> 			Iterator iterator2 = arg2.iterator();
+<a name="143" href="#143">143</a> 			<strong>boolean</strong> match = false;
+<a name="144" href="#144">144</a> 			Assertion assertion2;
+<a name="145" href="#145">145</a> 
+<a name="146" href="#146">146</a> 			<strong>while</strong> (iterator2.hasNext()) {
+<a name="147" href="#147">147</a> 				assertion2 = (Assertion) iterator2.next();
+<a name="148" href="#148">148</a> 				<strong>if</strong> (compare(assertion1, assertion2)) {
+<a name="149" href="#149">149</a> 					match = <strong>true</strong>;
+<a name="150" href="#150">150</a> 					<strong>break</strong>;
+<a name="151" href="#151">151</a> 				}
+<a name="152" href="#152">152</a> 			}
+<a name="153" href="#153">153</a> 
+<a name="154" href="#154">154</a> 			<strong>if</strong> (!match) {
+<a name="155" href="#155">155</a> 				<strong>return</strong> false;
+<a name="156" href="#156">156</a> 			}
+<a name="157" href="#157">157</a> 		}
+<a name="158" href="#158">158</a> 		<strong>return</strong> <strong>true</strong>;
+<a name="159" href="#159">159</a> 	}
+<a name="160" href="#160">160</a> 
+<a name="161" href="#161">161</a> 	<strong>private</strong> <strong>static</strong> <strong>boolean</strong> compare(Hashtable arg1, Hashtable arg2) {
+<a name="162" href="#162">162</a> 		<strong>if</strong> (arg1.size() != arg2.size()) {
+<a name="163" href="#163">163</a> 			<strong>return</strong> false;
+<a name="164" href="#164">164</a> 		}
+<a name="165" href="#165">165</a> 		Iterator iterator1 = arg1.keySet().iterator();
+<a name="166" href="#166">166</a> 		<strong>while</strong> (iterator1.hasNext()) {
+<a name="167" href="#167">167</a> 			QName qname = (QName) iterator1.next();
+<a name="168" href="#168">168</a> 			<strong>if</strong> (arg2.get(qname) == <strong>null</strong>
+<a name="169" href="#169">169</a> 					|| !arg1.get(qname).equals(arg2.get(qname))) {
+<a name="170" href="#170">170</a> 				<strong>return</strong> false;
+<a name="171" href="#171">171</a> 			}
+<a name="172" href="#172">172</a> 		}
+<a name="173" href="#173">173</a> 		<strong>return</strong> <strong>true</strong>;
+<a name="174" href="#174">174</a> 	}
+<a name="175" href="#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>
+

Added: webservices/commons/site/policy/xref-test/org/apache/ws/policy/util/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/org/apache/ws/policy/util/package-frame.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/org/apache/ws/policy/util/package-frame.html (added)
+++ webservices/commons/site/policy/xref-test/org/apache/ws/policy/util/package-frame.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,27 @@
+
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+  <html xmlns="http://www.w3.org/1999/xhtml lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>WS-Policy Implementation 0.92-SNAPSHOT Reference Package org.apache.ws.policy.util</title>
+      <link rel="stylesheet" href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" type="text/css" title="style"></link>
+    </head>
+    <body>
+
+      <h3>
+        <a href="package-summary.html" target="classFrame">org.apache.ws.policy.util</a>
+      </h3>
+
+      <h3>Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="PolicyComparator.html" target="classFrame">PolicyComparator</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/commons/site/policy/xref-test/org/apache/ws/policy/util/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/org/apache/ws/policy/util/package-summary.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/org/apache/ws/policy/util/package-summary.html (added)
+++ webservices/commons/site/policy/xref-test/org/apache/ws/policy/util/package-summary.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,102 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+
+  
+      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+      <html xmlns="http://www.w3.org/1999/xhtml lang="en">
+        <head>
+          <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+          <title>WS-Policy Implementation 0.92-SNAPSHOT Reference Package </title>
+          <link rel="stylesheet" href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" type="text/css" title="style"></link>
+        </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.ws.policy.util</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Class Summary</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="PolicyComparator.html" target="classFrame">PolicyComparator</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></hr>
+
+          Copyright &copy; 2002-2006 Apache Software Foundation. All Rights Reserved.
+        </body>
+      </html>
+    

Added: webservices/commons/site/policy/xref-test/overview-frame.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/overview-frame.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/overview-frame.html (added)
+++ webservices/commons/site/policy/xref-test/overview-frame.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,31 @@
+
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+  <html xmlns="http://www.w3.org/1999/xhtml lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>WS-Policy Implementation 0.92-SNAPSHOT Reference</title>
+      <link rel="stylesheet" href="stylesheet.css" type="text/css" title="style"></link>
+    </head>
+    <body>
+
+      <h3>
+        <a href="allclasses-frame.html" target="packageFrame">All Classes</a>
+      </h3>
+
+      <h3>Packages</h3>
+
+      <ul>
+        
+          <li>
+            <a href="org/apache/ws/policy/package-frame.html" target="packageFrame">org.apache.ws.policy</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/ws/policy/util/package-frame.html" target="packageFrame">org.apache.ws.policy.util</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/commons/site/policy/xref-test/overview-summary.html
URL: http://svn.apache.org/viewcvs/webservices/commons/site/policy/xref-test/overview-summary.html?rev=385473&view=auto
==============================================================================
--- webservices/commons/site/policy/xref-test/overview-summary.html (added)
+++ webservices/commons/site/policy/xref-test/overview-summary.html Mon Mar 13 01:11:07 2006
@@ -0,0 +1,100 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+  
+      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+      <html xmlns="http://www.w3.org/1999/xhtml lang="en">
+        <head>
+          <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+          <title>WS-Policy Implementation 0.92-SNAPSHOT Reference</title>
+          <link rel="stylesheet" href="stylesheet.css" type="text/css" title="style"></link>
+        </head>
+        <body>
+
+          
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li class="selected">Overview</li>
+          <li>Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="overview-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+    
+      
+
+      <h2>WS-Policy Implementation 0.92-SNAPSHOT Reference</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Packages</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="org/apache/ws/policy/package-summary.html">org.apache.ws.policy</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/ws/policy/util/package-summary.html">org.apache.ws.policy.util</a>
+              </td>
+            </tr>
+          
+        </tbody>
+      </table>
+
+    
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li class="selected">Overview</li>
+          <li>Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="overview-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+    
+    
+          <hr></hr>
+          Copyright &copy; 2002-2006 Apache Software Foundation. All Rights Reserved.
+        </body>
+      </html>
+