blob: 4deb0db375159bbe72a6545fb0bfdcc7ff2991c2 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>PolicyUtils (Apache CXF JavaDoc 3.1.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="PolicyUtils (Apache CXF JavaDoc 3.1.0 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/PolicyUtils.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em>Apache CXF API</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/cxf/ws/policy/PolicyRegistryImpl.html" title="class in org.apache.cxf.ws.policy"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/cxf/ws/policy/PolicyUtils.WrappedAssertor.html" title="class in org.apache.cxf.ws.policy"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/cxf/ws/policy/PolicyUtils.html" target="_top">Frames</a></li>
<li><a href="PolicyUtils.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.cxf.ws.policy</div>
<h2 title="Class PolicyUtils" class="title">Class PolicyUtils</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.cxf.ws.policy.PolicyUtils</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public final class <span class="strong">PolicyUtils</span>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cxf/ws/policy/PolicyUtils.WrappedAssertor.html" title="class in org.apache.cxf.ws.policy">PolicyUtils.WrappedAssertor</a></strong></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cxf/ws/policy/PolicyUtils.html#contains(java.util.Collection,%20org.apache.neethi.Assertion)">contains</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;org.apache.neethi.Assertion&gt;&nbsp;assertions,
org.apache.neethi.Assertion&nbsp;candidate)</code>
<div class="block">Determine if a collection of assertions contains a given assertion, using
the equal method from the Assertion interface.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cxf/ws/policy/PolicyUtils.html#contains(java.util.Collection,%20java.util.Collection)">contains</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;org.apache.neethi.Assertion&gt;&nbsp;assertions,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;org.apache.neethi.Assertion&gt;&nbsp;candidates)</code>
<div class="block">Determine if one collection of assertions contains another collection of assertion, using
the equal method from the Assertion interface.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/cxf/ws/policy/Assertor.html" title="interface in org.apache.cxf.ws.policy">Assertor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cxf/ws/policy/PolicyUtils.html#createAsserter(java.lang.Object)">createAsserter</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;o)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cxf/ws/policy/PolicyUtils.html#isEmptyPolicy(org.apache.neethi.Policy)">isEmptyPolicy</a></strong>(org.apache.neethi.Policy&nbsp;p)</code>
<div class="block">Checks if a given policy contains no policy components
or if it has only empty ExactlyOne or All components
containing no assertions</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cxf/ws/policy/PolicyUtils.html#isEmptyPolicyOperator(org.apache.neethi.PolicyOperator)">isEmptyPolicyOperator</a></strong>(org.apache.neethi.PolicyOperator&nbsp;p)</code>
<div class="block">Checks if a given policy operator has no policy components
or if it has only empty ExactlyOne or All components
containing no assertions</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cxf/ws/policy/PolicyUtils.html#logPolicy(java.util.logging.Logger,%20java.util.logging.Level,%20java.lang.String,%20org.apache.neethi.PolicyComponent)">logPolicy</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/logging/Logger.html?is-external=true" title="class or interface in java.util.logging">Logger</a>&nbsp;log,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</a>&nbsp;level,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;msg,
org.apache.neethi.PolicyComponent&nbsp;pc)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cxf/ws/policy/PolicyUtils.html#printPolicyComponent(org.apache.neethi.PolicyComponent)">printPolicyComponent</a></strong>(org.apache.neethi.PolicyComponent&nbsp;pc)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/cxf/ws/policy/PolicyUtils.html#printPolicyComponent(org.apache.neethi.PolicyComponent,%20java.lang.StringBuilder,%20int)">printPolicyComponent</a></strong>(org.apache.neethi.PolicyComponent&nbsp;pc,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a>&nbsp;buf,
int&nbsp;level)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="isEmptyPolicy(org.apache.neethi.Policy)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEmptyPolicy</h4>
<pre>public static&nbsp;boolean&nbsp;isEmptyPolicy(org.apache.neethi.Policy&nbsp;p)</pre>
<div class="block">Checks if a given policy contains no policy components
or if it has only empty ExactlyOne or All components
containing no assertions</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>p</code> - the policy</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if the policy is empty</dd></dl>
</li>
</ul>
<a name="isEmptyPolicyOperator(org.apache.neethi.PolicyOperator)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEmptyPolicyOperator</h4>
<pre>public static&nbsp;boolean&nbsp;isEmptyPolicyOperator(org.apache.neethi.PolicyOperator&nbsp;p)</pre>
<div class="block">Checks if a given policy operator has no policy components
or if it has only empty ExactlyOne or All components
containing no assertions</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>p</code> - the policy operator</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if this policy operator is empty</dd></dl>
</li>
</ul>
<a name="contains(java.util.Collection, org.apache.neethi.Assertion)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contains</h4>
<pre>public static&nbsp;boolean&nbsp;contains(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;org.apache.neethi.Assertion&gt;&nbsp;assertions,
org.apache.neethi.Assertion&nbsp;candidate)</pre>
<div class="block">Determine if a collection of assertions contains a given assertion, using
the equal method from the Assertion interface.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>assertions</code> - a collection of assertions</dd><dd><code>candidate</code> - the assertion to test</dd>
<dt><span class="strong">Returns:</span></dt><dd>true iff candidate is equal to one of the assertions in the collection</dd></dl>
</li>
</ul>
<a name="contains(java.util.Collection, java.util.Collection)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contains</h4>
<pre>public static&nbsp;boolean&nbsp;contains(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;org.apache.neethi.Assertion&gt;&nbsp;assertions,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;org.apache.neethi.Assertion&gt;&nbsp;candidates)</pre>
<div class="block">Determine if one collection of assertions contains another collection of assertion, using
the equal method from the Assertion interface.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>assertions</code> - a collection of assertions</dd><dd><code>candidates</code> - the collections of assertion to test</dd>
<dt><span class="strong">Returns:</span></dt><dd>true iff each candidate is equal to one of the assertions in the collection</dd></dl>
</li>
</ul>
<a name="logPolicy(java.util.logging.Logger, java.util.logging.Level, java.lang.String, org.apache.neethi.PolicyComponent)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logPolicy</h4>
<pre>public static&nbsp;void&nbsp;logPolicy(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/logging/Logger.html?is-external=true" title="class or interface in java.util.logging">Logger</a>&nbsp;log,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</a>&nbsp;level,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;msg,
org.apache.neethi.PolicyComponent&nbsp;pc)</pre>
</li>
</ul>
<a name="printPolicyComponent(org.apache.neethi.PolicyComponent)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>printPolicyComponent</h4>
<pre>public static&nbsp;void&nbsp;printPolicyComponent(org.apache.neethi.PolicyComponent&nbsp;pc)</pre>
</li>
</ul>
<a name="printPolicyComponent(org.apache.neethi.PolicyComponent, java.lang.StringBuilder, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>printPolicyComponent</h4>
<pre>public static&nbsp;void&nbsp;printPolicyComponent(org.apache.neethi.PolicyComponent&nbsp;pc,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a>&nbsp;buf,
int&nbsp;level)</pre>
</li>
</ul>
<a name="createAsserter(java.lang.Object)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>createAsserter</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/cxf/ws/policy/Assertor.html" title="interface in org.apache.cxf.ws.policy">Assertor</a>&nbsp;createAsserter(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;o)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/PolicyUtils.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em>Apache CXF API</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/cxf/ws/policy/PolicyRegistryImpl.html" title="class in org.apache.cxf.ws.policy"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/cxf/ws/policy/PolicyUtils.WrappedAssertor.html" title="class in org.apache.cxf.ws.policy"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/cxf/ws/policy/PolicyUtils.html" target="_top">Frames</a></li>
<li><a href="PolicyUtils.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Apache CXF</small></p>
</body>
</html>