java.lang.Object
dev.metaschema.databind.io.json.JsonAnyContent
- All Implemented Interfaces:
IAnyContent
JSON/YAML-specific implementation of
IAnyContent that stores captured
unmodeled content as a Jackson ObjectNode.-
Constructor Summary
ConstructorsConstructorDescriptionJsonAnyContent(com.fasterxml.jackson.databind.node.ObjectNode properties) Construct a new instance with the provided captured properties. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.node.ObjectNodeGet the captured JSON properties.booleanisEmpty()Determine if this content container has no captured content.
-
Constructor Details
-
JsonAnyContent
public JsonAnyContent(@NonNull com.fasterxml.jackson.databind.node.ObjectNode properties) Construct a new instance with the provided captured properties.- Parameters:
properties- the captured JSON properties, must not be null
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:IAnyContentDetermine if this content container has no captured content.- Specified by:
isEmptyin interfaceIAnyContent- Returns:
trueif no unmodeled content was captured,falseotherwise
-
getProperties
@NonNull public com.fasterxml.jackson.databind.node.ObjectNode getProperties()Get the captured JSON properties.- Returns:
- the captured ObjectNode
-