//-- create class member,if necessary
if (!((contentModel instanceof ComplexType)
|| (contentModel instanceof ModelGroup))) {
if (contentModel instanceof ModelGroup) {
ModelGroup mg = (ModelGroup) contentModel;
if (mg.isReference()) {
contentModel = mg.getReference();
}
}
if (contentModel.getParticleCount() > 0) {
fieldInfo = _memberFactory.createFieldInfo(
component, state.getSGStateInfo(), getConfig().useJava50());
handleField(fieldInfo, state, component);
}
} else {
//--else we just flatten the group
processContentModel(group, state);
}
break;
case Structure.MODELGROUP:
ModelGroup modelgroup = (ModelGroup) annotated;
//--a Model Group definition can only referenced
//--another group at this point.
//get the contentModel and proccess it
if (modelgroup.getName() != null) {
//create the field info for the element
//that is referring to a model group in order
//not to loose the Particle information
if (modelgroup.isReference()) {
modelgroup = modelgroup.getReference();
}
if (modelgroup.getParticleCount() > 0) {
fieldInfo = _memberFactory.createFieldInfo(
component, state.getSGStateInfo(), getConfig().useJava50());
handleField(fieldInfo, state, component);
}
break;
}
//--else we just flatten the group
processContentModel(modelgroup.getContentModelGroup(), state);
break;
case Structure.WILDCARD:
Wildcard wildcard = (Wildcard) annotated;
FieldInfo fieldForAny = _memberFactory.createFieldInfoForAny(