public class QueryResults
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
QueryResults.Result
Represents one of the results of the query.
|
static class |
QueryResults.Value
Represents a value.
|
| Constructor and Description |
|---|
QueryResults() |
QueryResults(boolean stripPrefix,
java.lang.String orderedBy,
java.util.List<QueryResults.Result> results) |
| Modifier and Type | Method and Description |
|---|---|
QueryResults |
addDefaults(java.util.Map<java.lang.String,QueryResults.Value> defaults)
Add default values to the results.
|
java.lang.Object |
clone() |
int |
countResults()
Return the number of results.
|
static QueryResults |
createEmptyResults()
Create an empty result list.
|
QueryResults.Result |
getFirstResult()
Return the first result.
|
QueryResults.Result |
getOrderedResult(int index)
Return the ordered result of a specified index.
|
java.util.List<QueryResults.Result> |
getOrderedResultsList()
Return the ordered result list.
|
java.util.SortedMap<java.lang.String,QueryResults.Result> |
getResults()
Return the Map of results.
|
boolean |
hasResults()
Return true if there are results.
|
java.lang.String |
orderedBy()
Return the variable which must be used to sort the results.
|
boolean |
stripPrefix()
Return true if the prefix must be stripped from the results URI.
|
java.lang.String |
toString() |
public QueryResults()
public QueryResults(boolean stripPrefix,
java.lang.String orderedBy,
java.util.List<QueryResults.Result> results)
public static QueryResults createEmptyResults()
public QueryResults addDefaults(java.util.Map<java.lang.String,QueryResults.Value> defaults)
defaults - the defaultspublic boolean hasResults()
public java.lang.String toString()
toString in class java.lang.Objectpublic int countResults()
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.util.List<QueryResults.Result> getOrderedResultsList()
public QueryResults.Result getOrderedResult(int index) throws java.lang.IndexOutOfBoundsException
index - the indexjava.lang.IndexOutOfBoundsExceptionpublic java.util.SortedMap<java.lang.String,QueryResults.Result> getResults()
public QueryResults.Result getFirstResult()
public boolean stripPrefix()
public java.lang.String orderedBy()
Copyright © 2025 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence