public class FullTextConstraint extends AbstractConstraint implements Constraint
Constructor and Description |
---|
FullTextConstraint(java.lang.String expression)
Creates a new instance of FullTextConstraint with the given expression.
|
FullTextConstraint(java.lang.String expression,
Operator operator)
Creates a new instance of FullTextConstraint with the given expression.
|
FullTextConstraint(java.lang.String expression,
java.lang.String propertyName)
Creates a new instance of FullTextConstraint with the given expression.
|
FullTextConstraint(java.lang.String expression,
java.lang.String propertyName,
Operator operator)
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.
|
java.lang.String |
getExpression()
Gets the full text expression to match.
|
java.util.List<java.lang.String> |
getIncludedProperties()
Gets the list of included properties.
|
void |
includeProperty(java.lang.String propertyName)
Adds a property to include in the full text search.
|
void |
setExpression(java.lang.String expression)
Sets the full text expression to match.
|
getOperator, isNegated, negate, setOperator
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperator, isNegated, negate, setOperator
public FullTextConstraint(java.lang.String expression)
expression
- String containing the full text expression.public FullTextConstraint(java.lang.String expression, java.lang.String propertyName)
expression
- String containing the full text expression.propertyName
- String containing the name of a property to include in the search.public FullTextConstraint(java.lang.String expression, Operator operator)
expression
- String containing the full text expression.operator
- operatorpublic FullTextConstraint(java.lang.String expression, java.lang.String propertyName, Operator operator)
expression
- String containing the full text expression.propertyName
- String containing the name of a property to include in the search.operator
- operatorpublic boolean definesPropertiesToInclude()
public void includeProperty(java.lang.String propertyName)
propertyName
- String containing the name of the property to include.public java.lang.String getExpression()
public void setExpression(java.lang.String expression)
expression
- String containing the full text expression to match.public java.util.List<java.lang.String> getIncludedProperties()
public void accept(ConstraintVisitor constraintVisitor)
accept
in interface Constraint
constraintVisitor
- the visitor for this constraint."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"