Interface TypeProcessor
- All Known Implementing Classes:
ComplexTypeProcessor,SimpleTypeProcessor
public interface TypeProcessor
The TypeProcessor interface defines methods for processing XML Schema types and converting them into JSON Schema nodes.
-
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.
-
Method Details
-
processType
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.- 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
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.- 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
-