com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class StringComparisonField



  • public final class StringComparisonField
    extends ComparisonField

    Represents the string search field.

    • Method Detail

      • createKey

        protected MailQuery createKey(String name,
                          String value,
                          String comparsionOperator)

        Creates the search key.

        Overrides:
        createKey in class ComparisonField
        Parameters:
        name - The field name.
        value - The value.
        comparsionOperator - The operator.
        Returns:
        MailQuery that represents search query.
      • contains

        public final MailQuery contains(String value)

        Indicates that field in message must contain the specified value.

        Parameters:
        value - The value.
        Returns:
        MailQuery that represents search query (one searching criterion).
      • contains

        public final MailQuery contains(String value,
                         boolean ignoreCase)

        Indicates that field in message must contain the specified value.

        Parameters:
        value - The value.
        ignoreCase - true to ignore case during the comparison; otherwise, false.
        Returns:
        MailQuery that represents search query (one searching criterion).
        Throws:
        AsposeArgumentNullException - value;Field value should not be null or empty
      • notContains

        public final MailQuery notContains(String value)

        Indicates that field in message must not contain the specified value.

        Parameters:
        value - The value.
        Returns:
        MailQuery that represents search query (one searching criterion).
      • notContains

        public final MailQuery notContains(String value,
                            boolean ignoreCase)

        Indicates that field in message must not contain the specified value.

        Parameters:
        value - The value.
        ignoreCase - true to ignore case during the comparison; otherwise, false.
        Returns:
        MailQuery that represents search query (one searching criterion).
      • hashCode

        public int hashCode()

        hashCode.

        Overrides:
        hashCode in class Object
        Returns:
        a int.
      • equals

        public final MailQuery equals(String value)

        Indicates that field in message must be equal to the specified value.

        Parameters:
        value - The value.
        Returns:
        MailQuery that represents search query (one searching criterion).
      • equals

        public final MailQuery equals(String value,
                       boolean ignoreCase)

        Indicates that field in message must be equal to the specified value.

        Parameters:
        value - The value.
        ignoreCase - true to ignore case during the comparison; otherwise, false.
        Returns:
        MailQuery that represents search query (one searching criterion).
      • notEquals

        public final MailQuery notEquals(String value)

        Indicates that field in message must not be equal to the specified value.

        Parameters:
        value - The value.
        Returns:
        MailQuery that represents search query (one searching criterion).
      • notEquals

        public final MailQuery notEquals(String value,
                          boolean ignoreCase)

        Indicates that field in message must not be equal to the specified value.

        Parameters:
        value - The value.
        ignoreCase - true to ignore case during the comparison; otherwise, false.
        Returns:
        MailQuery that represents search query (one searching criterion).
      • empty

        public final MailQuery empty()

        Indicates that field in message must be empty.

        Returns:
        MailQuery that represents search query (one searching criterion).
      • notEmpty

        public final MailQuery notEmpty()

        Indicates that field in message must not be empty.

        Returns:
        MailQuery that represents search query (one searching criterion).