|
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.Object weblogic.wsee.policy.framework.PolicyExpression
public class PolicyExpression
Encapsulates a Policy Expression. The grammar of a policy expression is:
PExpr := TERMINAL | OneOrMore(PExpr+) | All(PExpr+)
TERMINAL := a specific policy assertion
Field Summary | |
---|---|
protected PolicyAssertion |
assertion
|
protected List |
expressions
|
protected OperatorType |
operator
|
protected String |
policyNamespaceUri
|
Constructor Summary | |
---|---|
|
PolicyExpression()
|
protected |
PolicyExpression(OperatorType operator)
Construct a PolicyExpression that contains an ALL or ONE_OR_MORE expression |
protected |
PolicyExpression(OperatorType operator,
PolicyAssertion assertion)
Construct a PolicyExpression that is a PolicyAssertion terminal |
Method Summary | |
---|---|
void |
addExpression(PolicyExpression expression)
If this is a non-TERMINAL expression, add a subexpression to the list of operands |
void |
addExpressions(Collection expressions)
If this is a non-TERMINAL expression, add a collection of subexpressions to the list of operands |
static PolicyExpression |
createExpression(OperatorType op)
Factory method to create a new non-TERMINAL PolicyExpression. |
static PolicyExpression |
createTerminal(PolicyAssertion assertion)
Factory method to create a new TERMINAL PolicyExpression. |
PolicyAssertion |
getAssertion()
If this is a TERMINAL expression, return the PolicyAssertion |
List |
getExpressions()
If this is a non-TERMINAL expression, get the list of subexpression operands |
String |
getPolicyNamespaceUri()
|
NormalizedExpression |
normalize()
Return the normalized version of the statement |
void |
readExternal(ObjectInput in)
implement readExternal() of Externalizable interface |
void |
resetExpressions()
If this is a non-TERMINAL expression, clear the list of operands |
void |
setAssertion(PolicyAssertion assertion)
If this is a TERMINAL expression, set the PolicyAssertion |
void |
setPolicyNamespaceUri(String policyNamespaceUri)
|
String |
toString()
|
protected Element |
toXML(Document doc)
Serialize the expression to XML Infoset form |
protected void |
write(Element parent,
WsdlWriter wsdlWriter)
|
void |
writeExternal(ObjectOutput out)
implement writeExternal() of Externalizable interface |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected OperatorType operator
protected List expressions
protected PolicyAssertion assertion
protected String policyNamespaceUri
Constructor Detail |
---|
public PolicyExpression()
protected PolicyExpression(OperatorType operator)
operator
- The operator which must be ALL or ONE_OR_MOREprotected PolicyExpression(OperatorType operator, PolicyAssertion assertion)
operator
- assertion
- Method Detail |
---|
public PolicyAssertion getAssertion()
public String getPolicyNamespaceUri()
public void setPolicyNamespaceUri(String policyNamespaceUri)
public void setAssertion(PolicyAssertion assertion)
assertion
- the PolicyAssertionpublic List getExpressions()
public void addExpression(PolicyExpression expression)
expression
- the subexpression to be addedpublic void addExpressions(Collection expressions)
expressions
- the subexpressions to be addedpublic NormalizedExpression normalize() throws PolicyException
PolicyException
public void resetExpressions()
protected Element toXML(Document doc) throws PolicyException
doc
- The DOM Document with which the XML form is associated
PolicyException
protected void write(Element parent, WsdlWriter wsdlWriter)
public String toString()
toString
in class Object
public static PolicyExpression createTerminal(PolicyAssertion assertion)
assertion
- the PolicyAssertion that is the terminal
public static PolicyExpression createExpression(OperatorType op)
op
- the OperatorType of the operator that will operate on the
subexpression operands
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 |