Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 1 (11.1.1)

E22649-02 ESAPI


oracle.security.jps.service.policystore.info
Class Expression

java.lang.Object
  extended by oracle.security.jps.service.policystore.info.Expression

All Implemented Interfaces:
ExpressionComponent

public class Expression
extends java.lang.Object
implements ExpressionComponent

Represents an expression. An expression has a function and one or more arguments. The number of arguments depends on the function. The arguments are of type ExpressionComponent, so they can contain other expressions/ expressioncomponents.


Nested Class Summary

 

Nested classes/interfaces inherited from interface oracle.security.jps.service.policystore.info.ExpressionComponent
ExpressionComponent.Type

 

Constructor Summary
Expression(FunctionEntry funcEntry)
          An expression must have a root function and its information must be provided to the constructor.

 

Method Summary
 void addExpressionComponent(ExpressionComponent comp)
          Adds the component to the list of components for this expression.
 ExpressionComponent.Type getComponentType()
          Returns type of the component.
 java.util.List<ExpressionComponent> getExpressionComponents()
          List of arguments to the expression.
 FunctionEntry getFunctionEntry()
          Returns function entry.
 boolean isValid()
          Validates the component.
 void setExpressionComponents(java.util.List<ExpressionComponent> comps)
          Sets the components of this expression.
 java.lang.String toString()
          Returns a free-form string representation of this expression.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

Expression

public Expression(FunctionEntry funcEntry)
           throws PolicyStoreException
An expression must have a root function and its information must be provided to the constructor.
Throws:
java.lang.IllegalArgumentException - if function name is null.
PolicyStoreException

Method Detail

getFunctionEntry

public FunctionEntry getFunctionEntry()
Returns function entry.
Returns:

getExpressionComponents

public java.util.List<ExpressionComponent> getExpressionComponents()
List of arguments to the expression.
Returns:
list of <IExpressionComponent>

addExpressionComponent

public void addExpressionComponent(ExpressionComponent comp)
                            throws PolicyStoreException
Adds the component to the list of components for this expression. The components are added in order. For example, if an expression has function F(a,b,c); components a, b, c must be added in sequence. This is a utility method. No delete or insert methods are provided. If the list of expression components needs to be changed while building an expression, use method setExpressionComponents.
Parameters:
comp -
Throws:
PolicyStoreException - in case of errors.

setExpressionComponents

public void setExpressionComponents(java.util.List<ExpressionComponent> comps)
                             throws PolicyStoreException
Sets the components of this expression. The components are added in order. For example, if an expression has function F(a,b,c); components a, b, c must be added in sequence.
Parameters:
comps -
Throws:
PolicyStoreException

getComponentType

public ExpressionComponent.Type getComponentType()
Returns type of the component.
Specified by:
getComponentType in interface ExpressionComponent
Returns:

isValid

public boolean isValid()
Validates the component. Expected to be invoked at management time.

toString

public java.lang.String toString()
Returns a free-form string representation of this expression.
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 1 (11.1.1)

E22649-02 ESAPI


Copyright © 2011, Oracle. All rights reserved.