Class SearchClause
- java.lang.Object
-
- eu.clarin.sru.server.fcs.parser_lex.QueryNode
-
- eu.clarin.sru.server.fcs.parser_lex.SearchClause
-
public class SearchClause extends QueryNode
A LexCQL expression tree search_clause node.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(QueryVisitor visitor)
String
getIndex()
Get the index (or field).Relation
getRelation()
Get the relation.String
getSearchTerm()
Get the search term.boolean
hasIndexAndRelation()
Check if index and relation in this search clause are set.String
toString()
-
Methods inherited from class eu.clarin.sru.server.fcs.parser_lex.QueryNode
getChild, getChild, getChildCount, getChildren, getFirstChild, getFirstChild, getLastChild, getNodeType, getParent, hasNodeType, setParent
-
-
-
-
Method Detail
-
getIndex
public String getIndex()
Get the index (or field).- Returns:
- the index (or field) or
null
if none
-
getRelation
public Relation getRelation()
Get the relation.- Returns:
- the relation or
null
if none
-
hasIndexAndRelation
public boolean hasIndexAndRelation()
Check if index and relation in this search clause are set.- Returns:
true
if index and relation were set,false
otherwise
-
getSearchTerm
public String getSearchTerm()
Get the search term.- Returns:
- the search term
-
accept
public void accept(QueryVisitor visitor)
-
-