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 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 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 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 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 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 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 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 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 MailQuery empty()

        Indicates that field in message must be empty.

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

        public MailQuery notEmpty()

        Indicates that field in message must not be empty.

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