Package ca.uhn.fhir.parser.json
Class BaseJsonLikeValue
java.lang.Object
ca.uhn.fhir.parser.json.BaseJsonLikeValue
- Direct Known Subclasses:
BaseJsonLikeArray
,BaseJsonLikeObject
This is the generalization of anything that is a "value"
element in a JSON structure. This could be a JSON object,
a JSON array, a scalar value (number, string, boolean),
or a null.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BaseJsonLikeValue
static final BaseJsonLikeValue
static final BaseJsonLikeValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BaseJsonLikeArray
asArray
(BaseJsonLikeValue element) static boolean
asBoolean
(BaseJsonLikeValue element) static BaseJsonLikeObject
asObject
(BaseJsonLikeValue element) static String
asString
(BaseJsonLikeValue element) boolean
abstract BaseJsonLikeValue.ScalarType
abstract BaseJsonLikeValue.ValueType
abstract Object
getValue()
boolean
isArray()
boolean
isNull()
boolean
isNumber()
boolean
isObject()
boolean
isScalar()
boolean
isString()
-
Field Details
-
NULL
-
TRUE
-
FALSE
-
-
Constructor Details
-
BaseJsonLikeValue
public BaseJsonLikeValue()
-
-
Method Details
-
getJsonType
-
getDataType
-
getValue
-
isArray
-
isObject
-
isScalar
-
isString
-
isNumber
-
isNull
-
getAsArray
-
getAsObject
-
getAsString
-
getAsNumber
-
getAsBoolean
-
asArray
-
asObject
-
asString
-
asBoolean
-