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

Part Number E41849-02

weblogic.wsee.policy.framework
Class PolicyExpression

java.lang.Object
  extended by weblogic.wsee.policy.framework.PolicyExpression
All Implemented Interfaces:
Externalizable, Serializable
Direct Known Subclasses:
PolicyStatement

Deprecated.

public class PolicyExpression
extends Object
implements Externalizable

Encapsulates a Policy Expression. The grammar of a policy expression is:
PExpr := TERMINAL | OneOrMore(PExpr+) | All(PExpr+)
TERMINAL := a specific policy assertion

See Also:
Serialized Form

Field Summary
protected  PolicyAssertion assertion
          Deprecated.  
protected  List expressions
          Deprecated.  
protected  OperatorType operator
          Deprecated.  
protected  String policyNamespaceUri
          Deprecated.  
 
Constructor Summary
  PolicyExpression()
          Deprecated.  
protected PolicyExpression(OperatorType operator)
          Deprecated. Construct a PolicyExpression that contains an ALL or ONE_OR_MORE expression
protected PolicyExpression(OperatorType operator, PolicyAssertion assertion)
          Deprecated. Construct a PolicyExpression that is a PolicyAssertion terminal
 
Method Summary
 void addExpression(PolicyExpression expression)
          Deprecated. If this is a non-TERMINAL expression, add a subexpression to the list of operands
 void addExpressions(Collection expressions)
          Deprecated. If this is a non-TERMINAL expression, add a collection of subexpressions to the list of operands
static PolicyExpression createExpression(OperatorType op)
          Deprecated. Factory method to create a new non-TERMINAL PolicyExpression.
static PolicyExpression createTerminal(PolicyAssertion assertion)
          Deprecated. Factory method to create a new TERMINAL PolicyExpression.
 PolicyAssertion getAssertion()
          Deprecated. If this is a TERMINAL expression, return the PolicyAssertion
 List getExpressions()
          Deprecated. If this is a non-TERMINAL expression, get the list of subexpression operands
 String getPolicyNamespaceUri()
          Deprecated.  
 boolean isTerminal()
          Deprecated. checks if this is a TERMINAL expression
 NormalizedExpression normalize()
          Deprecated. Return the normalized version of the statement
 void readExternal(ObjectInput in)
          Deprecated. implement readExternal() of Externalizable interface
 void resetExpressions()
          Deprecated. If this is a non-TERMINAL expression, clear the list of operands
 void setAssertion(PolicyAssertion assertion)
          Deprecated. If this is a TERMINAL expression, set the PolicyAssertion
 void setPolicyNamespaceUri(String policyNamespaceUri)
          Deprecated.  
 String toString()
          Deprecated.  
protected  Element toXML(Document doc)
          Deprecated. Serialize the expression to XML Infoset form
protected  void write(Element parent, WsdlWriter wsdlWriter)
          Deprecated.  
 void writeExternal(ObjectOutput out)
          Deprecated. implement writeExternal() of Externalizable interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

operator

protected OperatorType operator
Deprecated. 

expressions

protected List expressions
Deprecated. 

assertion

protected PolicyAssertion assertion
Deprecated. 

policyNamespaceUri

protected String policyNamespaceUri
Deprecated. 
Constructor Detail

PolicyExpression

public PolicyExpression()
Deprecated. 

PolicyExpression

protected PolicyExpression(OperatorType operator)
Deprecated. 
Construct a PolicyExpression that contains an ALL or ONE_OR_MORE expression

Parameters:
operator - The operator which must be ALL or ONE_OR_MORE

PolicyExpression

protected PolicyExpression(OperatorType operator,
                           PolicyAssertion assertion)
Deprecated. 
Construct a PolicyExpression that is a PolicyAssertion terminal

Parameters:
operator -
assertion -
Method Detail

getAssertion

public PolicyAssertion getAssertion()
Deprecated. 
If this is a TERMINAL expression, return the PolicyAssertion

Returns:
the PolicyAssertion

getPolicyNamespaceUri

public String getPolicyNamespaceUri()
Deprecated. 

setPolicyNamespaceUri

public void setPolicyNamespaceUri(String policyNamespaceUri)
Deprecated. 

setAssertion

public void setAssertion(PolicyAssertion assertion)
Deprecated. 
If this is a TERMINAL expression, set the PolicyAssertion

Parameters:
assertion - the PolicyAssertion

isTerminal

public boolean isTerminal()
Deprecated. 
checks if this is a TERMINAL expression

Returns:
true if this is a TERMINAL expression

getExpressions

public List getExpressions()
Deprecated. 
If this is a non-TERMINAL expression, get the list of subexpression operands

Returns:
the list of subexpressions

addExpression

public void addExpression(PolicyExpression expression)
Deprecated. 
If this is a non-TERMINAL expression, add a subexpression to the list of operands

Parameters:
expression - the subexpression to be added

addExpressions

public void addExpressions(Collection expressions)
Deprecated. 
If this is a non-TERMINAL expression, add a collection of subexpressions to the list of operands

Parameters:
expressions - the subexpressions to be added

normalize

public NormalizedExpression normalize()
                               throws PolicyException
Deprecated. 
Return the normalized version of the statement

Returns:
the normalized expression
Throws:
PolicyException

resetExpressions

public void resetExpressions()
Deprecated. 
If this is a non-TERMINAL expression, clear the list of operands


toXML

protected Element toXML(Document doc)
                 throws PolicyException
Deprecated. 
Serialize the expression to XML Infoset form

Parameters:
doc - The DOM Document with which the XML form is associated
Returns:
returns the DOM XML Infoset serialization of the expression
Throws:
PolicyException

write

protected void write(Element parent,
                     WsdlWriter wsdlWriter)
Deprecated. 

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

createTerminal

public static PolicyExpression createTerminal(PolicyAssertion assertion)
Deprecated. 
Factory method to create a new TERMINAL PolicyExpression.

Parameters:
assertion - the PolicyAssertion that is the terminal
Returns:
the newly instantiated PolicyExpression

createExpression

public static PolicyExpression createExpression(OperatorType op)
Deprecated. 
Factory method to create a new non-TERMINAL PolicyExpression.

Parameters:
op - the OperatorType of the operator that will operate on the subexpression operands
Returns:
the newly instantiated PolicyExpression

readExternal

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

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

writeExternal

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

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

Copyright 1996, 2014, 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.3)

Part Number E41849-02