Class TargetFilter


  • public final class TargetFilter
    extends Object
    This class represents a targetfilter keyword of an aci.
    • Method Detail

      • decode

        public static TargetFilter decode​(EnumTargetOperator op,
                                          String expr)
                                   throws AciException
        Decode a aci's targetfilter string.
        Parameters:
        op - The operation enumeration of the expression.
        expr - A string representing the target filter.
        Returns:
        A TargetFilter class suitable for using in a match.
        Throws:
        AciException - If the expression string is invalid.
      • isApplicable

        public boolean isApplicable​(AciTargetMatchContext matchCtx)
        Checks if a targetfilter matches an evaluation context.
        Parameters:
        matchCtx - The evaluation context to use in the matching.
        Returns:
        True if the target filter matched the context.