Class TableJSONObject
java.lang.Object
org.json.JSONObject
com.onenetwork.platform.integ.rest.json.TableJSONObject
public class TableJSONObject
extends org.json.JSONObject
A JSONObject used by reports to describe the table of the report including
the record definition.
Note: The setPageSize method is used to inform the client about the page size
and can not be used to change the actually page size of the report.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TableJSONObject()
TableJSONObject(org.json.JSONObject jsonObject)
-
Method Summary
Modifier and Type Method Description org.json.JSONArray
getColumns()
org.json.JSONArray
getFields()
int
getPageSize()
org.json.JSONArray
getSorting()
void
setColumns(org.json.JSONArray value)
void
setFields(org.json.JSONArray value)
void
setPageSize(int pageSize)
void
setSorting(org.json.JSONArray value)
Methods inherited from class org.json.JSONObject
accumulate, append, asMap, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getNumber, getString, has, increment, isDecimalNotation, isEmpty, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optDouble, optDouble, optEnum, optEnum, optFloat, optFloat, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optNumber, optNumber, optQuery, optQuery, optString, optString, put, put, put, put, put, put, put, put, putOnce, putOpt, query, query, quote, quote, remove, similar, stringToNumber, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, write
-
Field Details
-
COLUMNS
public static final java.lang.String COLUMNS- See Also:
- Constant Field Values
-
FIELDS
public static final java.lang.String FIELDS- See Also:
- Constant Field Values
-
SORTING
public static final java.lang.String SORTING- See Also:
- Constant Field Values
-
PAGE_SIZE
public static final java.lang.String PAGE_SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
TableJSONObject
public TableJSONObject() -
TableJSONObject
public TableJSONObject(org.json.JSONObject jsonObject)
-
-
Method Details
-
setColumns
public void setColumns(org.json.JSONArray value) -
getColumns
public org.json.JSONArray getColumns()- Returns:
- A JSONArray of ColumnJSONObjects
-
setFields
public void setFields(org.json.JSONArray value) -
getFields
public org.json.JSONArray getFields()- Returns:
- A JSONArray of ReaderFieldJSONObjects
-
setSorting
public void setSorting(org.json.JSONArray value) -
getSorting
public org.json.JSONArray getSorting()- Returns:
- A JSONArray of SortingJSONObjects
-
setPageSize
public void setPageSize(int pageSize) -
getPageSize
public int getPageSize()
-