org.apache.neethi.util
Class PolicyComparator

java.lang.Object
  extended by org.apache.neethi.util.PolicyComparator

public final class PolicyComparator
extends Object

A Utility class that provides methods the check the equality of PolicyComponents.


Method Summary
static boolean compare(All arg1, All arg2)
           
static boolean compare(Assertion arg1, Assertion arg2)
           
static boolean compare(ExactlyOne arg1, ExactlyOne arg2)
           
static boolean compare(PolicyComponent arg1, PolicyComponent arg2)
          Returns true if the two PolicyComponents have the same semantics.
static boolean compare(Policy arg1, Policy arg2)
          Returns true if the two policies have the same semantics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compare

public static boolean compare(Policy arg1,
                              Policy arg2)
Returns true if the two policies have the same semantics

Parameters:
arg1 - a Policy
arg2 - an another Policy
Returns:
true if both policies have the same semantics

compare

public static boolean compare(PolicyComponent arg1,
                              PolicyComponent arg2)
Returns true if the two PolicyComponents have the same semantics.

Parameters:
arg1 - a PolicyComponent
arg2 - an another PolicyComponent
Returns:
true if both PolicyComponents have the same semantics

compare

public static boolean compare(All arg1,
                              All arg2)

compare

public static boolean compare(ExactlyOne arg1,
                              ExactlyOne arg2)

compare

public static boolean compare(Assertion arg1,
                              Assertion arg2)


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.