public class PolicyAlternative
extends java.lang.Object
implements java.io.Externalizable, java.lang.Cloneable
for discussion of normal form.
,
Serialized FormModifier and Type | Field and Description |
---|---|
private java.util.Set |
assertions
Deprecated.
|
private java.util.Map |
cacheClassAssertions
Deprecated.
|
private static boolean |
debug
Deprecated.
|
static PolicyAlternative |
EMPTY_ALTERNATIVE
Deprecated.
|
private static java.util.logging.Logger |
LOGGER
Deprecated.
|
private static long |
serialVersionUID
Deprecated.
|
Constructor and Description |
---|
PolicyAlternative()
Deprecated.
|
PolicyAlternative(PolicyAssertion[] assertions)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addAssertion(PolicyAssertion assertion)
Deprecated.
|
(package private) void |
addAssertions(java.util.Set assertions)
Deprecated.
Set the assertions that are represented in this policy alternative
|
(package private) void |
clearAssertions()
Deprecated.
|
PolicyAlternative |
clone()
Deprecated.
clone the PolicyALternative object
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
java.util.Set |
getAssertions()
Deprecated.
|
java.util.Set |
getAssertions(java.lang.Class assertionClass)
Deprecated.
Return the subset of policy assertions present in this policy alternative
that are instances of a given class
|
int |
hashCode()
Deprecated.
|
boolean |
isEmpty()
Deprecated.
Return whether this policy alternative is empty; ie., does not assert any assertions
|
boolean |
isTrue(PolicyAssertion a)
Deprecated.
Is the policy assertion present in this policy alternative?
|
void |
readExternal(java.io.ObjectInput in)
Deprecated.
implement readExternal() of Externalizable interface
|
(package private) void |
removeAssertion(PolicyAssertion assertion)
Deprecated.
|
(package private) void |
removeCachedKeys(PolicyAssertion assertion)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
void |
writeExternal(java.io.ObjectOutput out)
Deprecated.
implement writeExternal() of Externalizable interface
|
private static final long serialVersionUID
private static final java.util.logging.Logger LOGGER
public static final PolicyAlternative EMPTY_ALTERNATIVE
private static final boolean debug
private java.util.Set assertions
private java.util.Map cacheClassAssertions
public PolicyAlternative()
PolicyAlternative(PolicyAssertion[] assertions)
void addAssertions(java.util.Set assertions)
assertions
- Set of PolicyAssertionsvoid addAssertion(PolicyAssertion assertion)
void removeAssertion(PolicyAssertion assertion)
void removeCachedKeys(PolicyAssertion assertion)
void clearAssertions()
public java.util.Set getAssertions()
public boolean isTrue(PolicyAssertion a)
a
- the assertion being checkedpublic java.util.Set getAssertions(java.lang.Class assertionClass)
assertionClass
- the class of assertions that are being checkedpublic boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- java.io.IOException
public PolicyAlternative clone()
clone
in class java.lang.Object