@JsonObject(value="MatchClause")
public static class SearchCriteria.MatchClause
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
static SearchCriteria.MatchClause |
createAnyFieldMatch(java.lang.String desiredValue)
Factory method to create a MatchClause matching against any property or attribute.
|
static SearchCriteria.MatchClause |
createAnyPropertyMatch(java.lang.String desiredValue)
Factory method to create a MatchClause matching against any property.
|
static SearchCriteria.MatchClause |
createAttributeMatch(SearchCriteria.MatchClauseAttribute attribute,
java.lang.String desiredValue)
Factory method to create a MatchClause matching against a specific attribute.
|
static SearchCriteria.MatchClause |
createPropertyMatch(java.lang.String propertyCode,
java.lang.String desiredValue)
Factory method to create a MatchClause matching against a specific property.
|
static SearchCriteria.MatchClause |
createTimeAttributeMatch(SearchCriteria.MatchClauseTimeAttribute attribute,
SearchCriteria.CompareMode mode,
java.lang.String date,
java.lang.String timezone)
Factory method to create a MatchClause matching against registration or modification
date.
|
boolean |
equals(java.lang.Object obj) |
static java.lang.String |
escape(java.lang.String s)
Returns a String where those characters that Lucene expects to be escaped are escaped by
a preceding
\ . |
SearchCriteria.CompareMode |
getCompareMode() |
java.lang.String |
getDesiredValue() |
SearchCriteria.MatchClauseFieldType |
getFieldType()
The field type this MatchClause matches against.
|
int |
hashCode() |
java.lang.String |
toString() |
public static SearchCriteria.MatchClause createPropertyMatch(java.lang.String propertyCode, java.lang.String desiredValue)
propertyCode
- The name of the property to compare against.desiredValue
- The desired value for the property.public static SearchCriteria.MatchClause createAttributeMatch(SearchCriteria.MatchClauseAttribute attribute, java.lang.String desiredValue)
attribute
- The attribute to compare against.desiredValue
- The desired value for the attribute.public static SearchCriteria.MatchClause createTimeAttributeMatch(SearchCriteria.MatchClauseTimeAttribute attribute, SearchCriteria.CompareMode mode, java.lang.String date, java.lang.String timezone)
attribute
- The attribute to compare againstmode
- The kind of comparison (<=, ==, >=)date
- The date to compare against, format YYYY-MM-DDpublic static SearchCriteria.MatchClause createAnyPropertyMatch(java.lang.String desiredValue)
desiredValue
- The desired value for a property.public static SearchCriteria.MatchClause createAnyFieldMatch(java.lang.String desiredValue)
desiredValue
- The desired value for a property or an attribute.public static java.lang.String escape(java.lang.String s)
\
.
Copy of Lucene's QueryParser.escape()
method.
public SearchCriteria.MatchClauseFieldType getFieldType()
public java.lang.String getDesiredValue()
public SearchCriteria.CompareMode getCompareMode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object