public class RangeQueryCriteria extends QueryCriteria
A Range Criteria element for a Query to the Catalog.
| Constructor and Description |
|---|
RangeQueryCriteria()
Default constructor.
|
RangeQueryCriteria(String elementName,
String start,
String end)
Constructor for the RangeQuerycriteria class.
|
RangeQueryCriteria(String elementName,
String start,
String end,
boolean inclusive)
Constructor for the RangeQueryCriteria clas that can be used to specify
both inclusive and exclusive ranges.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getElementName()
Implementation of the abstract method inherited from QueryCriteria for
accessing the element name to search on.
|
String |
getEndValue()
Accessor method for the end value of the element to search on.
|
boolean |
getInclusive()
Accessor method for the inclusive setting for the range.
|
String |
getStartValue()
Accessor method for the start value of the element to search on.
|
void |
setElementName(String elementName)
Implementation of the abstract method inherited from QueryCriteria for
mutating the element name to search on.
|
void |
setEndValue(String value)
Mutator method for the end value fo the element to search on.
|
void |
setInclusive(boolean flag)
Mutator method for the inclusive setting for the range.
|
void |
setStartValue(String value)
Mutator method for the start value fo the element to search on.
|
String |
toString()
Implementation of the abstract method inherited from QueryCriteria for
generating a human-parsable string version of the query criteria.
|
public RangeQueryCriteria()
public RangeQueryCriteria(String elementName, String start, String end)
elementName - The name of the element to search on.start - The start value for the range search as a String.end - The end value for the range search as a String.public RangeQueryCriteria(String elementName, String start, String end, boolean inclusive)
elementName - The name of the element to search on.start - The start value for the range search as a String.end - The end value for the range search as a String.inclusive - Boolean: true for inclusive, false for exclusive.public String getStartValue()
public void setStartValue(String value)
value - The start value of the range as a String.public String getEndValue()
public void setEndValue(String value)
value - The end value of the range as a String.public boolean getInclusive()
public void setInclusive(boolean flag)
public String getElementName()
getElementName in class QueryCriteriapublic void setElementName(String elementName)
setElementName in class QueryCriteriaelementName - The element name to search on as a String.public String toString()
toString in class QueryCriteriaCopyright © 1999–2017 Apache OODT. All rights reserved.