Class SimpleExpression
java.lang.Object
org.dogtagpki.legacy.core.policy.SimpleExpression
- All Implemented Interfaces:
IExpression
This class represents an expression of the form var = val,
var val, var val, var val, var val, var val.
Expressions are used as predicates for policy selection.
- Version:
- $Revision$, $Date$
- Author:
- kanda
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Loggerstatic SimpleExpressionstatic final char -
Constructor Summary
ConstructorsConstructorDescriptionSimpleExpression(String var, int op, String val) SimpleExpression(String prefix, String var, int op, String val) -
Method Summary
-
Field Details
-
logger
public static org.slf4j.Logger logger -
WILDCARD_CHAR
public static final char WILDCARD_CHAR- See Also:
-
NULL_EXPRESSION
-
-
Constructor Details
-
SimpleExpression
-
SimpleExpression
-
-
Method Details
-
parse
- Throws:
EPolicyException
-
evaluate
Description copied from interface:IExpressionEvaluate the Expression.- Specified by:
evaluatein interfaceIExpression- Parameters:
req- The PKIRequest on which we are applying the condition.- Returns:
- The return value.
- Throws:
EPolicyException
-
toString
Description copied from interface:IExpressionConvert to a string.- Specified by:
toStringin interfaceIExpression- Overrides:
toStringin classObject
-