Class ComplexTypeProcessor

java.lang.Object
org.eclipse.lemminx.customservice.synapse.schemagen.xsd.ComplexTypeProcessor
All Implemented Interfaces:
TypeProcessor

public class ComplexTypeProcessor extends Object implements TypeProcessor
The ComplexTypeProcessor class is responsible for processing complex types in an XML Schema and converting them to JSON Schema.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    processRootType(org.apache.xerces.xs.XSElementDeclaration element, com.fasterxml.jackson.databind.node.ObjectNode node, String id, boolean addTitle)
    Processes a root complex type element and adds it to the JSON Schema node.
    void
    processType(org.apache.xerces.xs.XSElementDeclaration element, org.apache.xerces.xs.XSParticle elementStructure, com.fasterxml.jackson.databind.node.ObjectNode node, String id, boolean addTitle)
    Processes a complex type element and adds it to the JSON Schema node.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ComplexTypeProcessor

      public ComplexTypeProcessor()
  • Method Details

    • processType

      public void processType(org.apache.xerces.xs.XSElementDeclaration element, org.apache.xerces.xs.XSParticle elementStructure, com.fasterxml.jackson.databind.node.ObjectNode node, String id, boolean addTitle)
      Processes a complex type element and adds it to the JSON Schema node.
      Specified by:
      processType in interface TypeProcessor
      Parameters:
      element - The complex type element to be processed.
      elementStructure - The particle associated with the element.
      node - The JSON Schema node.
      id - The ID of the node.
      addTitle - Flag indicating whether to add a title to the JSON Schema node.
    • processRootType

      public void processRootType(org.apache.xerces.xs.XSElementDeclaration element, com.fasterxml.jackson.databind.node.ObjectNode node, String id, boolean addTitle)
      Processes a root complex type element and adds it to the JSON Schema node.
      Specified by:
      processRootType in interface TypeProcessor
      Parameters:
      element - The root complex type element to be processed.
      node - The JSON Schema node.
      id - The ID of the node.
      addTitle - Flag indicating whether to add a title to the JSON Schema node.