Class TargetControl


  • public final class TargetControl
    extends Object
    This class represents an ACI's targetcontrol keyword.
    • Method Detail

      • decode

        public static TargetControl decode​(EnumTargetOperator operator,
                                           String expr)
                                    throws AciException
        Decode an targetcontrol expression string.
        Parameters:
        operator - An enumeration representing the operator type.
        expr - A string representing the targetcontrol expression.
        Returns:
        A class representing the targetcontrol expression that can be used to evaluate an ACI.
        Throws:
        AciException - If the specified expression string is invalid.
      • isApplicable

        public boolean isApplicable​(AciTargetMatchContext matchCtx)
        Check if a targetcontrol is applicable based on the provided target match context.
        Parameters:
        matchCtx - The target match context to use in the check.
        Returns:
        True if the targetcontrol is applicable based on the context.