|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.wsee.policy.framework.NormalizedExpression
public class NormalizedExpression
This class represents a normalized policy expression. A normalized policy expression is a set of policy alternatives. An alternative is simply a set of policy assertions all of which must be true in order for the alternative to be true. A NormalizedExpression can be said to be true if one of its alternatives is true.
Field Summary | |
---|---|
protected String |
policyNamespaceUri
|
Constructor Summary | |
---|---|
NormalizedExpression()
|
|
NormalizedExpression(String policyNamespaceUri)
|
Method Summary | |
---|---|
void |
addAlternative(PolicyAlternative alt)
Add a PolicyAlternative to this normalized expression |
void |
addAlternatives(Set addAlts)
Add a Set of PolicyAlternatives to this normalized expression |
boolean |
containsPolicyAssertion(Class asst)
check if contains a particular PolicyAssertion |
static NormalizedExpression |
createEmptyExpression()
Return an empty NormalizedExpression that contains no policy alternatives. |
static NormalizedExpression |
createFromPolicyAlternatives(Set policyAlts)
Create a NormalizedExpression from a set of policy alternatives. |
static NormalizedExpression |
createUnitializedExpression()
Return a NormalizedExpression with no policy associated with it. |
boolean |
equals(Object o)
|
PolicyAlternative |
getPolicyAlternative()
Retrieve an arbitrary policy alternative from the set of policy alternatives. |
Set |
getPolicyAlternatives()
Retrieves the Set of PolicyAlternatives which make up this normalized expression |
Set |
getPolicyAlternatives(Class assertionClass)
Retrieves a Set of PolicyAlternatives that are avaiable from this expression and in which an assertion that is an instance of the given class is set |
Set |
getPolicyAlternatives(PolicyAssertion a)
Retrieves a Set of PolicyAlternatives that are available from this expression in which a given assertion is set |
PolicyAssertion |
getPolicyAssertion(Class assertionClass)
Retrieve a particular policy assertion object |
String |
getPolicyNamespaceUri()
|
int |
hashCode()
|
boolean |
isEmpty()
Does this normalized expression contain an empty set of alternatives, meaning that no configuration is consistent with the policy? |
boolean |
isUninitialized()
Is this normalized expression uninitialized, meaning all configurations are consistent with the policy? |
void |
readExternal(ObjectInput in)
implement readExternal() of Externalizable interface |
void |
setPolicyNamespaceUri(String policyNamespaceUri)
|
PolicyStatement |
toCompactForm(String id)
Convert the normalized expression to a compact form. |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
implement writeExternal() of Externalizable interface |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String policyNamespaceUri
Constructor Detail |
---|
public NormalizedExpression()
public NormalizedExpression(String policyNamespaceUri)
Method Detail |
---|
public String getPolicyNamespaceUri()
public void setPolicyNamespaceUri(String policyNamespaceUri)
public static NormalizedExpression createFromPolicyAlternatives(Set policyAlts)
policyAlts
- a non-empty Set of PolicyAlternatives that will make up the
expression.
public static NormalizedExpression createEmptyExpression()
public static NormalizedExpression createUnitializedExpression()
public void addAlternative(PolicyAlternative alt)
alt
- A policy alternative to be added to the set of policy alternatives
supported by this expressionpublic void addAlternatives(Set addAlts)
addAlts
- A Set of policy alternatives to be added to the set of policy alternatives
supported by this expressionpublic boolean isEmpty()
public boolean isUninitialized()
public Set getPolicyAlternatives()
public PolicyAlternative getPolicyAlternative()
public Set getPolicyAlternatives(PolicyAssertion a)
a
- the assertion that must be set
public Set getPolicyAlternatives(Class assertionClass)
assertionClass
- the class of the assertion that must be set
public boolean containsPolicyAssertion(Class asst)
asst
- PolicyAssertion
public PolicyAssertion getPolicyAssertion(Class assertionClass)
assertionClass
- cPolicyAssertion class object
public String toString()
toString
in class Object
public PolicyStatement toCompactForm(String id)
(alternative-1)
(alternative-2)
etc.
id
- the name to give the compact form of the expression
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
-
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
-
IOException
|
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 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |