|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.ucsb.nceas.morpho.query.QueryTerm
A single term in a query, containing the path to be searched, the value to match, and any relevant search modifiers.
Constructor Summary | |
QueryTerm(boolean casesensitive,
java.lang.String searchmode,
java.lang.String value)
Construct a new instance of a query term for a free text search (using the value only) |
|
QueryTerm(boolean casesensitive,
java.lang.String searchmode,
java.lang.String value,
java.lang.String pathexpr)
Construct a new instance of a query term for a structured search (matching the value only for those nodes in the pathexpr) |
Method Summary | |
java.lang.String |
getPathExpression()
get the path expression parameter |
java.lang.String |
getSearchMode()
get the searchmode parameter |
java.lang.String |
getValue()
get the Value parameter |
boolean |
isCaseSensitive()
determine if the QueryTerm is case sensitive |
java.lang.String |
printSQL(boolean useXMLIndex)
create a SQL serialization of the query that this instance represents |
void |
setCaseSensitive(boolean isCaseSensitive)
set if the QueryTerm is case sensitive |
void |
setPathExpression(java.lang.String val)
set the path expression parameter |
void |
setSearchMode(java.lang.String mode)
set the searchmode parameter |
void |
setValue(java.lang.String val)
set the value parameter |
java.lang.String |
toString()
create a String description of the query that this instance represents. |
java.lang.String |
toXml(int indent)
create a XML serialization of the query that this instance represents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public QueryTerm(boolean casesensitive, java.lang.String searchmode, java.lang.String value)
casesensitive
- flag indicating whether case is used to matchsearchmode
- determines what kind of substring match is performed
(one of starts-with|ends-with|contains|equals)value
- the text value to matchpublic QueryTerm(boolean casesensitive, java.lang.String searchmode, java.lang.String value, java.lang.String pathexpr)
casesensitive
- flag indicating whether case is used to matchsearchmode
- determines what kind of substring match is performed
(one of starts-with|ends-with|contains|equals)value
- the text value to matchpathexpr
- the hierarchical path to the nodes to be searchedMethod Detail |
public boolean isCaseSensitive()
public void setCaseSensitive(boolean isCaseSensitive)
public java.lang.String getSearchMode()
public void setSearchMode(java.lang.String mode)
public java.lang.String getValue()
public void setValue(java.lang.String val)
public java.lang.String getPathExpression()
public void setPathExpression(java.lang.String val)
public java.lang.String printSQL(boolean useXMLIndex)
public java.lang.String toXml(int indent)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |