StringComparisonField

Inheritance: java.lang.Object, com.aspose.email.QueryField, com.aspose.email.ComparisonField

public final class StringComparisonField extends ComparisonField

Represents the string search field.

Methods

Method Description
contains(String value) Indicates that field in message must contain the specified value.
contains(String value, boolean ignoreCase) Indicates that field in message must contain the specified value.
notContains(String value) Indicates that field in message must not contain the specified value.
notContains(String value, boolean ignoreCase) Indicates that field in message must not contain the specified value.
hashCode() hashCode.
equals(String value) Indicates that field in message must be equal to the specified value.
equals(String value, boolean ignoreCase) Indicates that field in message must be equal to the specified value.
notEquals(String value) Indicates that field in message must not be equal to the specified value.
notEquals(String value, boolean ignoreCase) Indicates that field in message must not be equal to the specified value.
empty() Indicates that field in message must be empty.
setKQL(boolean isKQL) Gets or sets value which defines whether property is used for Keyword Query Language
notEmpty() Indicates that field in message must not be empty.

contains(String value)

public final MailQuery contains(String value)

Indicates that field in message must contain the specified value.

Parameters:

Parameter Type Description
value java.lang.String The value.

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

contains(String value, boolean ignoreCase)

public final MailQuery contains(String value, boolean ignoreCase)

Indicates that field in message must contain the specified value.

Parameters:

Parameter Type Description
value java.lang.String The value.
ignoreCase boolean true to ignore case during the comparison; otherwise, false.

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

notContains(String value)

public final MailQuery notContains(String value)

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

Parameters:

Parameter Type Description
value java.lang.String The value.

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

notContains(String value, boolean ignoreCase)

public final MailQuery notContains(String value, boolean ignoreCase)

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

Parameters:

Parameter Type Description
value java.lang.String The value.
ignoreCase boolean true to ignore case during the comparison; otherwise, false.

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

hashCode()

public int hashCode()

hashCode.

Returns: int - a int.

equals(String value)

public final MailQuery equals(String value)

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

Parameters:

Parameter Type Description
value java.lang.String The value.

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

equals(String value, boolean ignoreCase)

public final MailQuery equals(String value, boolean ignoreCase)

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

Parameters:

Parameter Type Description
value java.lang.String The value.
ignoreCase boolean true to ignore case during the comparison; otherwise, false.

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

notEquals(String value)

public final MailQuery notEquals(String value)

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

Parameters:

Parameter Type Description
value java.lang.String The value.

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

notEquals(String value, boolean ignoreCase)

public final MailQuery notEquals(String value, boolean ignoreCase)

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

Parameters:

Parameter Type Description
value java.lang.String The value.
ignoreCase boolean true to ignore case during the comparison; otherwise, false.

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

empty()

public final MailQuery empty()

Indicates that field in message must be empty.

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

setKQL(boolean isKQL)

public final StringComparisonField setKQL(boolean isKQL)

Gets or sets value which defines whether property is used for Keyword Query Language

Parameters:

Parameter Type Description
isKQL boolean

Returns: StringComparisonField -

notEmpty()

public final MailQuery notEmpty()

Indicates that field in message must not be empty.

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