Class SimpleTypeProcessor
java.lang.Object
org.eclipse.lemminx.customservice.synapse.schemagen.xsd.SimpleTypeProcessor
- All Implemented Interfaces:
TypeProcessor
The SimpleTypeProcessor class processes XML Schema simple type definitions and converts them into JSON Schema nodes.
-
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 the root XML Schema element declaration and updates the provided JSON Schema object 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 an XML Schema element declaration and updates the provided JSON Schema object node.
-
Constructor Details
-
SimpleTypeProcessor
public SimpleTypeProcessor()
-
-
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 an XML Schema element declaration and updates the provided JSON Schema object node.- Specified by:
processTypein interfaceTypeProcessor- Parameters:
element- the XML Schema element declarationelementStructure- the XML Schema particle structurenode- the JSON Schema object node to updateid- the identifier for the JSON Schema nodeaddTitle- flag indicating if the title should be added
-
processRootType
public void processRootType(org.apache.xerces.xs.XSElementDeclaration element, com.fasterxml.jackson.databind.node.ObjectNode node, String id, boolean addTitle) Processes the root XML Schema element declaration and updates the provided JSON Schema object node.- Specified by:
processRootTypein interfaceTypeProcessor- Parameters:
element- the XML Schema element declarationnode- the JSON Schema object node to updateid- the identifier for the JSON Schema nodeaddTitle- flag indicating if the title should be added
-