Class PolicyPredicateParser

java.lang.Object
org.dogtagpki.legacy.core.policy.PolicyPredicateParser

public class PolicyPredicateParser extends Object
Default implementation of predicate parser. Limitations: 1. Currently parentheses are not suported. 2. Only , , , , and operators are supported. 3. The only boolean operators supported are AND and OR. AND takes precedence over OR. Example: a AND b OR e OR c AND d is treated as (a AND b) OR e OR (c AND d) 4. If this is n't adequate, roll your own.
Version:
$Revision$, $Date$
Author:
kanda
  • Field Details

  • Constructor Details

    • PolicyPredicateParser

      public PolicyPredicateParser()
  • Method Details

    • parse

      public static IExpression parse(String predicateExpression) throws EPolicyException
      Parse the predicate expression and return a vector of expressions.
      Parameters:
      predicateExpression - The predicate expression as read from the config file.
      Returns:
      expVector The vector of expressions.
      Throws:
      EPolicyException
    • main

      public static void main(String[] args)