Class JerseyJsonObject
java.lang.Object
de.oktoflow.platform.support.json.jackson.JerseyJsonObject
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.json.JsonObject,de.iip_ecosphere.platform.support.json.JsonValue
Wraps an EE JsonObject (provided by Jersey).
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classWraps an EE JsonArray (provided by Jersey).(package private) static classImplements the object builder.(package private) static classWraps an EE JsonNumber (provided by Jersey).(package private) static classImplements the object builder.(package private) static classWraps an EE JsonString (provided by Jersey). -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJerseyJsonObject(javax.json.JsonObject object) Creates a wrapping JSON object. -
Method Summary
Modifier and TypeMethodDescriptionde.iip_ecosphere.platform.support.json.JsonObjectbooleancontainsKey(String key) (package private) static de.iip_ecosphere.platform.support.json.JsonArrayBuilderCreates a JSON array builder.(package private) static de.iip_ecosphere.platform.support.json.JsonObjectcreateObject(Reader reader) Creates a JSON object for individual access fromreader.(package private) static de.iip_ecosphere.platform.support.json.JsonObjectBuilderCreates a JSON object builder.booleanbooleangetBoolean(String name) intde.iip_ecosphere.platform.support.json.JsonArraygetJsonArray(String name) de.iip_ecosphere.platform.support.json.JsonNumbergetJsonNumber(String name) de.iip_ecosphere.platform.support.json.JsonObjectgetJsonObject(String name) de.iip_ecosphere.platform.support.json.JsonStringgetJsonString(String name) de.iip_ecosphere.platform.support.json.JsonValueinthashCode()booleanisEmpty()booleankeys()(package private) static de.iip_ecosphere.platform.support.json.JsonValuemap(javax.json.JsonValue value) Maps an implementation value to an abstracted value.toString()
-
Field Details
-
object
private javax.json.JsonObject object
-
-
Constructor Details
-
JerseyJsonObject
JerseyJsonObject(javax.json.JsonObject object) Creates a wrapping JSON object.- Parameters:
object- the JSON object to wrap
-
-
Method Details
-
createObject
static de.iip_ecosphere.platform.support.json.JsonObject createObject(Reader reader) throws IOException Creates a JSON object for individual access fromreader.- Parameters:
reader- the reader- Returns:
- the JSON object
- Throws:
IOException- if the object cannot be read/constructed
-
createObjectBuilder
static de.iip_ecosphere.platform.support.json.JsonObjectBuilder createObjectBuilder()Creates a JSON object builder.- Returns:
- the JSON object builder
-
createArrayBuilder
static de.iip_ecosphere.platform.support.json.JsonArrayBuilder createArrayBuilder()Creates a JSON array builder.- Returns:
- the JSON array builder
-
getJsonObject
- Specified by:
getJsonObjectin interfacede.iip_ecosphere.platform.support.json.JsonObject
-
getJsonArray
- Specified by:
getJsonArrayin interfacede.iip_ecosphere.platform.support.json.JsonObject
-
getJsonNumber
- Specified by:
getJsonNumberin interfacede.iip_ecosphere.platform.support.json.JsonObject
-
getJsonString
- Specified by:
getJsonStringin interfacede.iip_ecosphere.platform.support.json.JsonObject
-
getValue
- Specified by:
getValuein interfacede.iip_ecosphere.platform.support.json.JsonObject
-
getString
- Specified by:
getStringin interfacede.iip_ecosphere.platform.support.json.JsonObject
-
getInt
- Specified by:
getIntin interfacede.iip_ecosphere.platform.support.json.JsonObject
-
getBoolean
- Specified by:
getBooleanin interfacede.iip_ecosphere.platform.support.json.JsonObject
-
isNull
- Specified by:
isNullin interfacede.iip_ecosphere.platform.support.json.JsonObject
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacede.iip_ecosphere.platform.support.json.JsonObject
-
map
static de.iip_ecosphere.platform.support.json.JsonValue map(javax.json.JsonValue value) Maps an implementation value to an abstracted value.- Parameters:
value- the implementation value (may be null)- Returns:
- the abstracted value (may be null)
-
keys
- Specified by:
keysin interfacede.iip_ecosphere.platform.support.json.JsonObject
-
asJsonObject
public de.iip_ecosphere.platform.support.json.JsonObject asJsonObject()- Specified by:
asJsonObjectin interfacede.iip_ecosphere.platform.support.json.JsonValue
-
toString
-
hashCode
public int hashCode() -
equals
-
containsKey
- Specified by:
containsKeyin interfacede.iip_ecosphere.platform.support.json.JsonObject
-