Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01

weblogic.wsee.policy.framework
Class PolicyAlternative

java.lang.Object
  extended by weblogic.wsee.policy.framework.PolicyAlternative
All Implemented Interfaces:
Externalizable, Serializable

public class PolicyAlternative
extends Object
implements Externalizable

Represents a set of policy assertions that are a single policy alternative in a normal form policy.

See Also:
for discussion of normal form., Serialized Form

Field Summary
static PolicyAlternative EMPTY_ALTERNATIVE
           
 
Constructor Summary
PolicyAlternative()
           
 
Method Summary
 PolicyAlternative clone()
          clone the PolicyALternative object
 boolean equals(Object o)
           
 Set getAssertions()
           
 Set getAssertions(Class assertionClass)
          Return the subset of policy assertions present in this policy alternative that are instances of a given class
 int hashCode()
           
 boolean isEmpty()
          Return whether this policy alternative is empty; ie., does not assert any assertions
 boolean isTrue(PolicyAssertion a)
          Is the policy assertion present in this policy alternative?
 void readExternal(ObjectInput in)
          implement readExternal() of Externalizable interface
 String toString()
           
 void writeExternal(ObjectOutput out)
          implement writeExternal() of Externalizable interface
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_ALTERNATIVE

public static final PolicyAlternative EMPTY_ALTERNATIVE
Constructor Detail

PolicyAlternative

public PolicyAlternative()
Method Detail

getAssertions

public Set getAssertions()

isTrue

public boolean isTrue(PolicyAssertion a)
Is the policy assertion present in this policy alternative?

Parameters:
a - the assertion being checked
Returns:
true if the assertion is present, false if it is not.

getAssertions

public Set getAssertions(Class assertionClass)
Return the subset of policy assertions present in this policy alternative that are instances of a given class

Parameters:
assertionClass - the class of assertions that are being checked

isEmpty

public boolean isEmpty()
Return whether this policy alternative is empty; ie., does not assert any assertions

Returns:
whether there are any assertions asserted in this alternative

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
implement readExternal() of Externalizable interface

Specified by:
readExternal in interface Externalizable
Parameters:
in -
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
implement writeExternal() of Externalizable interface

Specified by:
writeExternal in interface Externalizable
Parameters:
out -
Throws:
IOException

clone

public PolicyAlternative clone()
clone the PolicyALternative object

Overrides:
clone in class Object
Returns:
the new object, null for IOException or ClassNotFoundException

Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01