public final class StringComparisonField extends ComparisonField
Represents the string search field.
FieldName, owner
Modifier and Type | Method and Description |
---|---|
MailQuery |
contains(String value)
Indicates that field in message must contain the specified value.
|
MailQuery |
contains(String value,
boolean ignoreCase)
Indicates that field in message must contain the specified value.
|
protected MailQuery |
createKey(String name,
String value,
String comparsionOperator)
Creates the search key.
|
MailQuery |
empty()
Indicates that field in message must be empty.
|
MailQuery |
equals(String value)
Indicates that field in message must be equal to the specified value.
|
MailQuery |
equals(String value,
boolean ignoreCase)
Indicates that field in message must be equal to the specified value.
|
int |
hashCode()
hashCode.
|
MailQuery |
notContains(String value)
Indicates that field in message must not contain the specified value.
|
MailQuery |
notContains(String value,
boolean ignoreCase)
Indicates that field in message must not contain the specified value.
|
MailQuery |
notEmpty()
Indicates that field in message must not be empty.
|
MailQuery |
notEquals(String value)
Indicates that field in message must not be equal to the specified value.
|
MailQuery |
notEquals(String value,
boolean ignoreCase)
Indicates that field in message must not be equal to the specified value.
|
StringComparisonField |
setKQL(boolean isKQL)
Gets or sets value which defines whether property is used for Keyword Query Language
|
createKey, orderBy
protected MailQuery createKey(String name, String value, String comparsionOperator)
Creates the search key.
createKey
in class ComparisonField
name
- The field name.value
- The value.comparsionOperator
- The operator.MailQuery
that represents search query.public final MailQuery contains(String value)
Indicates that field in message must contain the specified value.
value
- The value.MailQuery
that represents search query (one searching criterion).public final MailQuery contains(String value, boolean ignoreCase)
Indicates that field in message must contain the specified value.
value
- The value.ignoreCase
- true to ignore case during the comparison; otherwise, false.MailQuery
that represents search query (one searching criterion).AsposeArgumentNullException
- value;Field value should not be null or emptypublic final MailQuery notContains(String value)
Indicates that field in message must not contain the specified value.
value
- The value.MailQuery
that represents search query (one searching criterion).public final MailQuery notContains(String value, boolean ignoreCase)
Indicates that field in message must not contain the specified value.
value
- The value.ignoreCase
- true to ignore case during the comparison; otherwise, false.MailQuery
that represents search query (one searching criterion).public final MailQuery equals(String value)
Indicates that field in message must be equal to the specified value.
value
- The value.MailQuery
that represents search query (one searching criterion).public final MailQuery equals(String value, boolean ignoreCase)
Indicates that field in message must be equal to the specified value.
value
- The value.ignoreCase
- true to ignore case during the comparison; otherwise, false.MailQuery
that represents search query (one searching criterion).public final MailQuery notEquals(String value)
Indicates that field in message must not be equal to the specified value.
value
- The value.MailQuery
that represents search query (one searching criterion).public final MailQuery notEquals(String value, boolean ignoreCase)
Indicates that field in message must not be equal to the specified value.
value
- The value.ignoreCase
- true to ignore case during the comparison; otherwise, false.MailQuery
that represents search query (one searching criterion).public final MailQuery empty()
Indicates that field in message must be empty.
MailQuery
that represents search query (one searching criterion).public final StringComparisonField setKQL(boolean isKQL)
Gets or sets value which defines whether property is used for Keyword Query Language
isKQL
-