Class JsonSchemaArrayNode
java.lang.Object
org.eclipse.lemminx.customservice.synapse.schemagen.xsd.JsonSchemaNode
org.eclipse.lemminx.customservice.synapse.schemagen.xsd.JsonSchemaArrayNode
The JsonSchemaArrayNode class represents a JSON Schema node for array types.
It extends the JsonSchemaNode class and provides methods to manage array items.
-
Field Summary
Fields inherited from class org.eclipse.lemminx.customservice.synapse.schemagen.xsd.JsonSchemaNode
name, node -
Constructor Summary
ConstructorsConstructorDescriptionJsonSchemaArrayNode(String id, com.fasterxml.jackson.databind.node.ObjectNode node) Constructs a new JsonSchemaArrayNode with the specified ID and parent node. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem(JsonSchemaNode item) Adds an item to the array node of this JSON Schema array node.
-
Constructor Details
-
JsonSchemaArrayNode
Constructs a new JsonSchemaArrayNode with the specified ID and parent node.- Parameters:
id- the identifier for the JSON Schema nodenode- the parent JSON Schema object node
-
-
Method Details
-
addItem
Adds an item to the array node of this JSON Schema array node.- Parameters:
item- the JSON Schema node to add as an item
-