Enum Rule.Condition

    • Enum Constant Detail

      • DELIVER

        public static final Rule.Condition DELIVER
        The "deliver" condition is used to ensure delivery (or non-delivery) in one of five ways.
        See Also:
        3.3.1 deliver
      • EXPIRE_AT

        public static final Rule.Condition EXPIRE_AT
        The "expire-at" condition is used to ensure delivery before an absolute point in time.
        See Also:
        3.3.2 expire-at
      • MATCH_RESOURCE

        public static final Rule.Condition MATCH_RESOURCE
        The "match-resource" condition is used to restrict delivery based on the resource identifier of the recipient JID.
        See Also:
        3.3.3 match-resource
    • Method Detail

      • values

        public static Rule.Condition[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Rule.Condition c : Rule.Condition.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Rule.Condition valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null