Class EmbeddedObjectJsonNode
java.lang.Object
software.amazon.awssdk.protocols.jsoncore.internal.EmbeddedObjectJsonNode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasArray()WhenJsonNode.isArray()is true, this returns the array associated with this node.booleanWhenJsonNode.isBoolean()is true, this returns the boolean associated with this node.WhenJsonNode.isEmbeddedObject()is true, this returns the embedded object associated with this node.asNumber()WhenJsonNode.isNumber()is true, this returns the number associated with this node.asObject()WhenJsonNode.isObject()is true, this returns the object associated with this node.asString()WhenJsonNode.isString(), is true, this returns the string associated with this node.booleaninthashCode()booleanReturns true if this node represents a JSON "embedded object".text()WhenJsonNode.isString(),JsonNode.isBoolean(), orJsonNode.isNumber()is true, this will return the value of this node as a textual string.toString()<T> Tvisit(JsonNodeVisitor<T> visitor) Visit this node using the provided visitor.
-
Constructor Details
-
EmbeddedObjectJsonNode
-
-
Method Details
-
isEmbeddedObject
public boolean isEmbeddedObject()Description copied from interface:JsonNodeReturns true if this node represents a JSON "embedded object". This non-standard type is associated with JSON extensions, like CBOR or ION. It allows additional data types to be embedded in a JSON document, like a timestamp or a raw byte array.Users who are only concerned with handling JSON can ignore this field. It will only be present when using a custom
JsonFactoryviaJsonNodeParser.Builder.jsonFactory(JsonFactory).- Specified by:
isEmbeddedObjectin interfaceJsonNode- See Also:
-
asNumber
Description copied from interface:JsonNodeWhenJsonNode.isNumber()is true, this returns the number associated with this node. This will throw an exception ifJsonNode.isNumber()is false. -
asString
Description copied from interface:JsonNodeWhenJsonNode.isString(), is true, this returns the string associated with this node. This will throw an exception ifJsonNode.isString()()} is false. -
asBoolean
public boolean asBoolean()Description copied from interface:JsonNodeWhenJsonNode.isBoolean()is true, this returns the boolean associated with this node. This will throw an exception ifJsonNode.isBoolean()is false. -
asArray
Description copied from interface:JsonNodeWhenJsonNode.isArray()is true, this returns the array associated with this node. This will throw an exception ifJsonNode.isArray()is false. -
asObject
Description copied from interface:JsonNodeWhenJsonNode.isObject()is true, this returns the object associated with this node. This will throw an exception ifJsonNode.isObject()is false. -
asEmbeddedObject
Description copied from interface:JsonNodeWhenJsonNode.isEmbeddedObject()is true, this returns the embedded object associated with this node. This will throw an exception ifJsonNode.isEmbeddedObject()is false.- Specified by:
asEmbeddedObjectin interfaceJsonNode- See Also:
-
visit
Description copied from interface:JsonNodeVisit this node using the provided visitor. -
text
Description copied from interface:JsonNodeWhenJsonNode.isString(),JsonNode.isBoolean(), orJsonNode.isNumber()is true, this will return the value of this node as a textual string. If this is any other type, this will return null. -
toString
-
equals
-
hashCode
-