Class SearchCriteria.MatchClause
java.lang.Object
ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.MatchClause
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SearchCriteria.AnyFieldMatchClause,SearchCriteria.AnyPropertyMatchClause,SearchCriteria.AttributeMatchClause,SearchCriteria.PropertyMatchClause,SearchCriteria.TimeAttributeMatchClause
- Enclosing class:
SearchCriteria
@JsonObject("MatchClause")
public static class SearchCriteria.MatchClause
extends Object
implements Serializable
A specification of one field (either property or attribute) and desired value for that field.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMatchClause(SearchCriteria.MatchClauseFieldType fieldType, String fieldCode, String desiredValue, SearchCriteria.CompareMode compareMode) -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchCriteria.MatchClausecreateAnyFieldMatch(String desiredValue) Factory method to create a MatchClause matching against any property or attribute.static SearchCriteria.MatchClausecreateAnyPropertyMatch(String desiredValue) Factory method to create a MatchClause matching against any property.static SearchCriteria.MatchClausecreateAttributeMatch(SearchCriteria.MatchClauseAttribute attribute, String desiredValue) Factory method to create a MatchClause matching against a specific attribute.static SearchCriteria.MatchClausecreatePropertyMatch(String propertyCode, String desiredValue) Factory method to create a MatchClause matching against a specific property.static SearchCriteria.MatchClausecreateTimeAttributeMatch(SearchCriteria.MatchClauseTimeAttribute attribute, SearchCriteria.CompareMode mode, String date, String timezone) Factory method to create a MatchClause matching against registration or modification date.booleanstatic StringReturns a String where those characters that Lucene expects to be escaped are escaped by a preceding\.protected StringThe code of the field.The field type this MatchClause matches against.inthashCode()toString()
-
Constructor Details
-
Method Details
-
createPropertyMatch
public static SearchCriteria.MatchClause createPropertyMatch(String propertyCode, String desiredValue) Factory method to create a MatchClause matching against a specific property.- Parameters:
propertyCode- The name of the property to compare against.desiredValue- The desired value for the property.
-
createAnyPropertyMatch
Factory method to create a MatchClause matching against any property.- Parameters:
desiredValue- The desired value for a property.
-
createAnyFieldMatch
Factory method to create a MatchClause matching against any property or attribute.- Parameters:
desiredValue- The desired value for a property or an attribute.
-
escape
Returns a String where those characters that Lucene expects to be escaped are escaped by a preceding\.Copy of Lucene's
QueryParser.escape()method. -
getFieldType
The field type this MatchClause matches against. Could be either a property or attribute. -
getFieldCode
The code of the field. -
getDesiredValue
-
getCompareMode
-
equals
-
hashCode
public int hashCode() -
toString
-