public class FullTextConstraint extends AbstractConstraint implements Constraint
| Constructor and Description |
|---|
FullTextConstraint(String expression)
Creates a new instance of FullTextConstraint with the given expression.
|
FullTextConstraint(String expression,
String propertyName)
Creates a new instance of FullTextConstraint with the given expression.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ConstraintVisitor constraintVisitor)
Visit this constraint.
|
boolean |
definesPropertiesToInclude()
Gets whether or not the constraint defines which properties should be included in the full text search.
|
String |
getExpression()
Gets the full text expression to match.
|
List<String> |
getIncludedProperties()
Gets the list of included properties.
|
void |
includeProperty(String propertyName)
Adds a property to include in the full text search.
|
void |
setExpression(String expression)
Sets the full text expression to match.
|
getOperator, isNegated, negate, setOperatorequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOperator, isNegated, negate, setOperatorpublic FullTextConstraint(String expression)
expression - String containing the full text expression.public FullTextConstraint(String expression, String propertyName)
expression - String containing the full text expression.propertyName - String containing the name of a property to include in the search.public boolean definesPropertiesToInclude()
public void includeProperty(String propertyName)
propertyName - String containing the name of the property to include.public String getExpression()
public void setExpression(String expression)
expression - String containing the full text expression to match.public List<String> getIncludedProperties()
public void accept(ConstraintVisitor constraintVisitor)
accept in interface ConstraintconstraintVisitor - the visitor for this constraint."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"