Class JsonSchemaArrayNode

java.lang.Object
org.eclipse.lemminx.customservice.synapse.schemagen.xsd.JsonSchemaNode
org.eclipse.lemminx.customservice.synapse.schemagen.xsd.JsonSchemaArrayNode

public class JsonSchemaArrayNode extends JsonSchemaNode
The JsonSchemaArrayNode class represents a JSON Schema node for array types. It extends the JsonSchemaNode class and provides methods to manage array items.
  • Constructor Details

    • JsonSchemaArrayNode

      public JsonSchemaArrayNode(String id, com.fasterxml.jackson.databind.node.ObjectNode node)
      Constructs a new JsonSchemaArrayNode with the specified ID and parent node.
      Parameters:
      id - the identifier for the JSON Schema node
      node - the parent JSON Schema object node
  • Method Details

    • addItem

      public void addItem(JsonSchemaNode item)
      Adds an item to the array node of this JSON Schema array node.
      Parameters:
      item - the JSON Schema node to add as an item