Package org.apache.ofbiz.product.product
Class ProductSearch.KeywordConstraint
- java.lang.Object
-
- org.apache.ofbiz.product.product.ProductSearch.ProductSearchConstraint
-
- org.apache.ofbiz.product.product.ProductSearch.KeywordConstraint
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ProductSearch
public static class ProductSearch.KeywordConstraint extends ProductSearch.ProductSearchConstraint
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
anyPrefix
protected boolean
anySuffix
static java.lang.String
constraintName
protected boolean
isAnd
protected java.lang.String
keywordsString
protected boolean
removeStems
-
Constructor Summary
Constructors Constructor Description KeywordConstraint(java.lang.String keywordsString, boolean anyPrefix, boolean anySuffix, java.lang.Boolean removeStems, boolean isAnd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConstraint(ProductSearch.ProductSearchContext productSearchContext)
boolean
equals(java.lang.Object obj)
int
hashCode()
java.util.Set<java.lang.String>
makeFullKeywordSet(Delegator delegator)
java.lang.String
prettyPrintConstraint(Delegator delegator, boolean detailed, java.util.Locale locale)
pretty print for log messages and even UI stuffjava.lang.String
prettyPrintConstraint(LocalDispatcher dispatcher, boolean detailed, java.util.Locale locale)
-
-
-
Field Detail
-
constraintName
public static final java.lang.String constraintName
- See Also:
- Constant Field Values
-
keywordsString
protected java.lang.String keywordsString
-
anyPrefix
protected boolean anyPrefix
-
anySuffix
protected boolean anySuffix
-
isAnd
protected boolean isAnd
-
removeStems
protected boolean removeStems
-
-
Method Detail
-
makeFullKeywordSet
public java.util.Set<java.lang.String> makeFullKeywordSet(Delegator delegator)
-
addConstraint
public void addConstraint(ProductSearch.ProductSearchContext productSearchContext)
- Specified by:
addConstraint
in classProductSearch.ProductSearchConstraint
-
prettyPrintConstraint
public java.lang.String prettyPrintConstraint(Delegator delegator, boolean detailed, java.util.Locale locale)
pretty print for log messages and even UI stuff- Specified by:
prettyPrintConstraint
in classProductSearch.ProductSearchConstraint
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
prettyPrintConstraint
public java.lang.String prettyPrintConstraint(LocalDispatcher dispatcher, boolean detailed, java.util.Locale locale)
- Specified by:
prettyPrintConstraint
in classProductSearch.ProductSearchConstraint
-
-