Class ComplexTypeProcessor
java.lang.Object
org.eclipse.lemminx.customservice.synapse.schemagen.xsd.ComplexTypeProcessor
- All Implemented Interfaces:
TypeProcessor
The ComplexTypeProcessor class is responsible for processing complex types in an XML Schema
and converting them to JSON Schema.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessRootType(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.voidprocessType(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.
-
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:
processTypein interfaceTypeProcessor- 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:
processRootTypein interfaceTypeProcessor- 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.
-