private void addField ( int fieldIndex , XmlSchemaObjectBase xsdSchemaObject , Map < String , Object > fields , RootCompositeType compositeTypes ) { if ( xsdSchemaObject instanceof XmlSchemaElement ) { XmlSchemaElement xsdElement = ( XmlSchemaElement ) xsdSchemaObject ; fields . put ( getFieldName ( xsdElement ) , getProps ( fieldIndex , xsdElement , compositeTypes ) ) ; } else if ( xsdSchemaObject instanceof XmlSchemaChoice ) { XmlSchemaChoice xsdChoice = ( XmlSchemaChoice ) xsdSchemaObject ; fields . put ( getFieldName ( xsdChoice ) , getProps ( fieldIndex , xsdChoice , compositeTypes ) ) ; } // TODO Add Groups }
Add a field with associated properties to a complex type .