Class Target


  • public final class Target
    extends Object
    A class representing an ACI target keyword.
    • Method Detail

      • decode

        public static Target decode​(EnumTargetOperator operator,
                                    String expr,
                                    Dn aciDN)
                             throws AciException
        Decode an expression string representing a target keyword expression.
        Parameters:
        operator - An enumeration of the operation of this target.
        expr - A string representation of the target.
        aciDN - The DN of the ACI entry used for a descendant check.
        Returns:
        A Target class representing this target.
        Throws:
        AciException - If the expression string is invalid.
      • getOperator

        public EnumTargetOperator getOperator()
        Returns the operator of this expression.
        Returns:
        An enumeration of the operation value.
      • getDN

        public Dn getDN()
        Returns the URL DN of the expression.
        Returns:
        A DN of the URL or null if the URL contained a DN pattern.
      • isPattern

        public boolean isPattern()
        Returns boolean if a pattern was seen during parsing.
        Returns:
        True if the URL contained a DN pattern.
      • matchesPattern

        public boolean matchesPattern​(Dn dn,
                                      Schema schema)
        This method tries to match a pattern against a DN.
        Parameters:
        dn - The DN to try an match.
        schema - The schema
        Returns:
        True if the pattern matches.