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.
|
createKey
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 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 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 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 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 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 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 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 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 MailQuery empty()
Indicates that field in message must be empty.
MailQuery
that represents search query (one searching criterion).public MailQuery notEmpty()
Indicates that field in message must not be empty.
MailQuery
that represents search query (one searching criterion).Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.