|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.query.model.FullTextSearch
@Immutable public class FullTextSearch
A constraint that evaluates to true only when a full-text search applied to the search scope results in positive findings. If a property name is supplied, then the search is limited to the value(s) of the named property on the node(s) in the search scope.
Nested Class Summary | |
---|---|
static class |
FullTextSearch.CompoundTerm
A list of FullTextSearch.Term s. |
static class |
FullTextSearch.Conjunction
A set of FullTextSearch.Term s that are ANDed together. |
static class |
FullTextSearch.Disjunction
A set of FullTextSearch.Term s that are ORed together. |
static class |
FullTextSearch.NegationTerm
A FullTextSearch.Term that represents a search term that requires another term to not appear. |
static class |
FullTextSearch.SimpleTerm
A FullTextSearch.Term that represents a single search term. |
static interface |
FullTextSearch.Term
The general notion of a term that makes up a full-text search. |
Constructor Summary | |
---|---|
FullTextSearch(SelectorName selectorName,
String fullTextSearchExpression)
Create a constraint defining a full-text search against the node within the search scope. |
|
FullTextSearch(SelectorName selectorName,
String propertyName,
String fullTextSearchExpression)
Create a constraint defining a full-text search against the property values on node within the search scope. |
|
FullTextSearch(SelectorName selectorName,
String propertyName,
String fullTextSearchExpression,
FullTextSearch.Term term)
Create a constraint defining a full-text search against the property values on node within the search scope. |
Method Summary | |
---|---|
void |
accept(Visitor visitor)
Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation. |
boolean |
equals(Object obj)
|
String |
fullTextSearchExpression()
Get the full-text search expression, as a string. |
FullTextSearch.Term |
getTerm()
Get the formal FullTextSearch.Term representation of the expression. |
int |
hashCode()
|
String |
propertyName()
Get the name of the property that is to be searched. |
SelectorName |
selectorName()
Get the name of the selector that is to be searched |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FullTextSearch(SelectorName selectorName, String propertyName, String fullTextSearchExpression, FullTextSearch.Term term)
selectorName
- the name of the node selector defining the search scopepropertyName
- the name of the property to be searched; may be null if all property values are to be searchedfullTextSearchExpression
- the search expressionterm
- the term representation, if it is known; may be nullpublic FullTextSearch(SelectorName selectorName, String propertyName, String fullTextSearchExpression)
selectorName
- the name of the node selector defining the search scopepropertyName
- the name of the property to be searched; may be null if all property values are to be searchedfullTextSearchExpression
- the search expressionpublic FullTextSearch(SelectorName selectorName, String fullTextSearchExpression)
selectorName
- the name of the node selector defining the search scopefullTextSearchExpression
- the search expressionMethod Detail |
---|
public final SelectorName selectorName()
public final String propertyName()
public final String fullTextSearchExpression()
public FullTextSearch.Term getTerm()
FullTextSearch.Term
representation of the expression.
ParsingException
- if there is an error producing the term representationpublic String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public void accept(Visitor visitor)
accept
in interface Visitable
visitor
- the visitor; never nullVisitable.accept(org.modeshape.graph.query.model.Visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |