Class JerseyJsonObject.JerseyJsonArray
java.lang.Object
de.oktoflow.platform.support.json.jackson.JerseyJsonObject.JerseyJsonArray
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.json.JsonArray,de.iip_ecosphere.platform.support.json.JsonValue
- Enclosing class:
JerseyJsonObject
static class JerseyJsonObject.JerseyJsonArray
extends Object
implements de.iip_ecosphere.platform.support.json.JsonArray
Wraps an EE JsonArray (provided by Jersey).
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.iip_ecosphere.platform.support.json.JsonObjectbooleanbooleangetBoolean(int index) intgetInt(int index) de.iip_ecosphere.platform.support.json.JsonArraygetJsonArray(int index) de.iip_ecosphere.platform.support.json.JsonNumbergetJsonNumber(int index) de.iip_ecosphere.platform.support.json.JsonObjectgetJsonObject(int index) de.iip_ecosphere.platform.support.json.JsonStringgetJsonString(int index) getString(int index) de.iip_ecosphere.platform.support.json.JsonValuegetValue(int index) inthashCode()booleanisEmpty()booleanisNull(int index) intsize()toString()
-
Field Details
-
array
private javax.json.JsonArray array
-
-
Constructor Details
-
JerseyJsonArray
JerseyJsonArray(javax.json.JsonArray array) Creates a wrapping JSON array.- Parameters:
array- the JSON array to wrap
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfacede.iip_ecosphere.platform.support.json.JsonArray
-
getJsonObject
public de.iip_ecosphere.platform.support.json.JsonObject getJsonObject(int index) - Specified by:
getJsonObjectin interfacede.iip_ecosphere.platform.support.json.JsonArray
-
getJsonArray
public de.iip_ecosphere.platform.support.json.JsonArray getJsonArray(int index) - Specified by:
getJsonArrayin interfacede.iip_ecosphere.platform.support.json.JsonArray
-
getJsonNumber
public de.iip_ecosphere.platform.support.json.JsonNumber getJsonNumber(int index) - Specified by:
getJsonNumberin interfacede.iip_ecosphere.platform.support.json.JsonArray
-
getJsonString
public de.iip_ecosphere.platform.support.json.JsonString getJsonString(int index) - Specified by:
getJsonStringin interfacede.iip_ecosphere.platform.support.json.JsonArray
-
getString
- Specified by:
getStringin interfacede.iip_ecosphere.platform.support.json.JsonArray
-
getInt
public int getInt(int index) - Specified by:
getIntin interfacede.iip_ecosphere.platform.support.json.JsonArray
-
getBoolean
public boolean getBoolean(int index) - Specified by:
getBooleanin interfacede.iip_ecosphere.platform.support.json.JsonArray
-
getValue
public de.iip_ecosphere.platform.support.json.JsonValue getValue(int index) - Specified by:
getValuein interfacede.iip_ecosphere.platform.support.json.JsonArray
-
asJsonObject
public de.iip_ecosphere.platform.support.json.JsonObject asJsonObject()- Specified by:
asJsonObjectin interfacede.iip_ecosphere.platform.support.json.JsonValue
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacede.iip_ecosphere.platform.support.json.JsonArray
-
isNull
public boolean isNull(int index) - Specified by:
isNullin interfacede.iip_ecosphere.platform.support.json.JsonArray
-
toString
-
hashCode
public int hashCode() -
equals
-