private void createSequenceClasses ( XsdAbstractElement sequenceElement , ClassWriter classWriter , String className , String typeName , String nextTypeName , String apiName , boolean isFirst ) { List < XsdElement > elements = null ; if ( sequenceElement instanceof XsdElement ) { elements = Collections . singletonList ( ( XsdElement ) sequenceElement ) ; } if ( sequenceElement instanceof XsdGroup || sequenceElement instanceof XsdChoice || sequenceElement instanceof XsdAll ) { elements = getAllElementsRecursively ( sequenceElement ) ; } if ( elements != null ) { if ( isFirst ) { createFirstSequenceInterface ( classWriter , className , nextTypeName , apiName , elements ) ; } else { createElementsForSequence ( className , typeName , nextTypeName , apiName , elements ) ; } } }
Creates classes and methods required to implement the sequence .