Class OrExpression

  • All Implemented Interfaces:
    org.dogtagpki.legacy.policy.IExpression

    public class OrExpression
    extends java.lang.Object
    implements org.dogtagpki.legacy.policy.IExpression
    This class represents an Or expression of the form (var1 op val1 OR var2 op val2). Expressions are used as predicates for policy selection.
    Version:
    $Revision$, $Date$
    Author:
    kanda
    • Field Summary

      • Fields inherited from interface org.dogtagpki.legacy.policy.IExpression

        EQUAL_STR, GE_STR, GT_STR, LE_STR, LT_STR, NEQUAL_STR, OP_EQUAL, OP_GE, OP_GT, OP_LE, OP_LT, OP_NEQUAL
    • Constructor Summary

      Constructors 
      Constructor Description
      OrExpression​(org.dogtagpki.legacy.policy.IExpression exp1, org.dogtagpki.legacy.policy.IExpression exp2)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(com.netscape.certsrv.request.IRequest req)
      Evaluate the Expression.
      java.lang.String toString()
      Convert to a string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OrExpression

        public OrExpression​(org.dogtagpki.legacy.policy.IExpression exp1,
                            org.dogtagpki.legacy.policy.IExpression exp2)
    • Method Detail

      • evaluate

        public boolean evaluate​(com.netscape.certsrv.request.IRequest req)
                         throws org.dogtagpki.legacy.policy.EPolicyException
        Description copied from interface: org.dogtagpki.legacy.policy.IExpression
        Evaluate the Expression.
        Specified by:
        evaluate in interface org.dogtagpki.legacy.policy.IExpression
        Parameters:
        req - The PKIRequest on which we are applying the condition.
        Returns:
        The return value.
        Throws:
        org.dogtagpki.legacy.policy.EPolicyException
      • toString

        public java.lang.String toString()
        Description copied from interface: org.dogtagpki.legacy.policy.IExpression
        Convert to a string.
        Specified by:
        toString in interface org.dogtagpki.legacy.policy.IExpression
        Overrides:
        toString in class java.lang.Object