public class PropertiesSearchQuery
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected LogicalOperator |
logicalOperator |
protected PropertiesSearchMode |
mode |
protected java.lang.String |
query |
Constructor and Description |
---|
PropertiesSearchQuery(java.lang.String query,
PropertiesSearchMode mode)
None
|
PropertiesSearchQuery(java.lang.String query,
PropertiesSearchMode mode,
LogicalOperator logicalOperator) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
LogicalOperator |
getLogicalOperator()
The logical operator with which to append the query.
|
PropertiesSearchMode |
getMode()
The mode with which to perform the search.
|
java.lang.String |
getQuery()
The property field value for which to search across templates.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String query
protected final PropertiesSearchMode mode
protected final LogicalOperator logicalOperator
public PropertiesSearchQuery(java.lang.String query, PropertiesSearchMode mode, LogicalOperator logicalOperator)
query
- The property field value for which to search across
templates. Must not be null
.mode
- The mode with which to perform the search. Must not be
null
.logicalOperator
- The logical operator with which to append the
query. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public PropertiesSearchQuery(java.lang.String query, PropertiesSearchMode mode)
The default values for unset fields will be used.
query
- The property field value for which to search across
templates. Must not be null
.mode
- The mode with which to perform the search. Must not be
null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getQuery()
null
.public PropertiesSearchMode getMode()
null
.public LogicalOperator getLogicalOperator()
null
if not present. Defaults to
LogicalOperator.OR_OPERATOR.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.