@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class SortCollection extends java.lang.Object implements ISort
Constructor and Description |
---|
SortCollection() |
Modifier and Type | Method and Description |
---|---|
void |
addSort(ISort sort) |
void |
clearSorts() |
int |
compare(ValueCollection row1,
ValueCollection row2) |
java.lang.String |
getFieldName() |
java.util.ArrayList<ISort> |
getSorters() |
boolean |
isAscending() |
boolean |
isCaseSensitive() |
void |
resolveFields(DataShapeDefinition fields) |
void |
setAscending(boolean value) |
void |
setFieldName(java.lang.String value) |
org.json.JSONArray |
toJSON()
Produces JSONArray of child sorters' JSON representations. |
org.json.JSONArray |
toJSONArray()
|
@ThingworxExtensionApiMethod(since={6,6}) public SortCollection()
@ThingworxExtensionApiMethod(since={6,6}) public void addSort(ISort sort)
@ThingworxExtensionApiMethod(since={6,6}) public void clearSorts()
@ThingworxExtensionApiMethod(since={6,6}) public java.util.ArrayList<ISort> getSorters()
@ThingworxExtensionApiMethod(since={6,6}) public void resolveFields(DataShapeDefinition fields)
resolveFields
in interface ISort
@ThingworxExtensionApiMethod(since={6,6}) public int compare(ValueCollection row1, ValueCollection row2)
compare
in interface java.util.Comparator<ValueCollection>
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getFieldName()
getFieldName
in interface ISort
@ThingworxExtensionApiMethod(since={6,6}) public boolean isAscending()
isAscending
in interface ISort
@ThingworxExtensionApiMethod(since={6,6}) public void setAscending(boolean value)
setAscending
in interface ISort
@ThingworxExtensionApiMethod(since={6,6}) public void setFieldName(java.lang.String value)
setFieldName
in interface ISort
@ThingworxExtensionApiMethod(since={6,6}) public boolean isCaseSensitive()
isCaseSensitive
in interface ISort
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONArray toJSON() throws org.json.JSONException
toJSON
in interface ISort
org.json.JSONException
- Upon internal errorsgetSorters()
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONArray toJSONArray() throws org.json.JSONException
toJSONArray
in interface ISort
org.json.JSONException
- Upon internal errors