Class FullTextTerm
- java.lang.Object
 - 
- org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
 - 
- org.apache.jackrabbit.oak.spi.query.fulltext.FullTextTerm
 
 
 
- 
public class FullTextTerm extends FullTextExpression
A fulltext term, or a "not" term. 
- 
- 
Field Summary
- 
Fields inherited from class org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
PRECEDENCE_AND, PRECEDENCE_OR, PRECEDENCE_TERM 
 - 
 
- 
Constructor Summary
Constructors Constructor Description FullTextTerm(java.lang.String propertyName, java.lang.String text, boolean not, boolean escaped, java.lang.String boost)FullTextTerm(java.lang.String propertyName, FullTextTerm copy) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(FullTextVisitor v)Let the expression call the applicable visit method of the visitor.booleanevaluate(java.lang.String value)Evaluate whether the value matches the condition.java.lang.StringgetBoost()intgetPrecedence()Get the operator precedence.java.lang.StringgetPropertyName()java.lang.StringgetText()static booleanisFullTextCharacter(char c)Whether or not the given character is part of a full-text term that should be indexed.booleanisNot()Whether the currentFullTextExpressionis aNOTcondition or not.FullTextExpressionsimplify()java.lang.StringtoString()Get the string representation of the condition.- 
Methods inherited from class org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
equals, hashCode 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
FullTextTerm
public FullTextTerm(java.lang.String propertyName, FullTextTerm copy) 
- 
FullTextTerm
public FullTextTerm(java.lang.String propertyName, java.lang.String text, boolean not, boolean escaped, java.lang.String boost) 
 - 
 
- 
Method Detail
- 
isFullTextCharacter
public static boolean isFullTextCharacter(char c)
Whether or not the given character is part of a full-text term that should be indexed. Not indexed are punctuation, control characters such as tab, See also Unicode Categories.- Parameters:
 c- the character- Returns:
 - true if the character should be indexed
 
 
- 
evaluate
public boolean evaluate(java.lang.String value)
Description copied from class:FullTextExpressionEvaluate whether the value matches the condition.- Specified by:
 evaluatein classFullTextExpression- Parameters:
 value- the value- Returns:
 - true if it matches
 
 
- 
simplify
public FullTextExpression simplify()
 
- 
toString
public java.lang.String toString()
Description copied from class:FullTextExpressionGet the string representation of the condition.- Specified by:
 toStringin classFullTextExpression
 
- 
getPropertyName
public java.lang.String getPropertyName()
 
- 
getBoost
public java.lang.String getBoost()
 
- 
isNot
public boolean isNot()
Description copied from class:FullTextExpressionWhether the currentFullTextExpressionis aNOTcondition or not. Default is false- Overrides:
 isNotin classFullTextExpression- Returns:
 - true if the current condition represent a NOT, false otherwise.
 
 
- 
getText
public java.lang.String getText()
 
- 
getPrecedence
public int getPrecedence()
Description copied from class:FullTextExpressionGet the operator precedence.- Specified by:
 getPrecedencein classFullTextExpression- Returns:
 - the precedence
 
 
- 
accept
public boolean accept(FullTextVisitor v)
Description copied from class:FullTextExpressionLet the expression call the applicable visit method of the visitor.- Specified by:
 acceptin classFullTextExpression- Parameters:
 v- the visitor- Returns:
 - true if the visit method returned true
 
 
 - 
 
 -