Package org.dogtagpki.legacy.core.policy
Class AndExpression
- java.lang.Object
-
- org.dogtagpki.legacy.core.policy.AndExpression
-
- All Implemented Interfaces:
IExpression
public class AndExpression extends java.lang.Object implements IExpression
This class represents an expression of the form. Expressions are used as predicates for policy selection. - Version:
- $Revision$, $Date$
- Author:
- kanda
-
-
Constructor Summary
Constructors Constructor Description AndExpression(IExpression exp1, IExpression exp2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(IRequest req)
Evaluate the Expression.java.lang.String
toString()
Convert to a string.
-
-
-
Constructor Detail
-
AndExpression
public AndExpression(IExpression exp1, IExpression exp2)
-
-
Method Detail
-
evaluate
public boolean evaluate(IRequest req) throws EPolicyException
Description copied from interface:IExpression
Evaluate the Expression.- Specified by:
evaluate
in interfaceIExpression
- Parameters:
req
- The PKIRequest on which we are applying the condition.- Returns:
- The return value.
- Throws:
EPolicyException
-
toString
public java.lang.String toString()
Description copied from interface:IExpression
Convert to a string.- Specified by:
toString
in interfaceIExpression
- Overrides:
toString
in classjava.lang.Object
-
-