return null;
}
private SDOType startNewComplexType(String targetNamespace, String sdoTypeName, String xsdLocalName, ComplexType complexType) {
SDOType currentType;
if(null == complexType.getName()) {
currentType = createSDOTypeForName(targetNamespace, sdoTypeName, xsdLocalName);
} else {
currentType = getGeneratedTypesByXsdQName().get(new QName(targetNamespace, complexType.getName()));
}
if (complexType.isMixed()) {
currentType.setMixed(true);
currentType.setSequenced(true);
// currentType.setOpen(true); Remove as part of SDO JIRA-106
}
if (complexType.getAnyAttribute() != null) {
currentType.setOpen(true);
}
currentType.setAbstract(complexType.isAbstractValue());
currentType.setDataType(false);
String value = (String) complexType.getAttributesMap().get(SDOConstants.SDOXML_ALIASNAME_QNAME);
if (value != null) {
XMLConversionManager xmlConversionManager = ((SDOXMLHelper) aHelperContext.getXMLHelper()).getXmlConversionManager();
java.util.List names = (java.util.List) xmlConversionManager.convertObject(value, java.util.List.class);
currentType.setAliasNames(names);
}
String sequencedValue = (String) complexType.getAttributesMap().get(SDOConstants.SDOXML_SEQUENCE_QNAME);
if (sequencedValue != null) {
Boolean sequencedBoolean = new Boolean(sequencedValue);
currentType.setSequenced(sequencedBoolean.booleanValue());
}
Annotation annotation = complexType.getAnnotation();
if (annotation != null) {
java.util.List documentation = annotation.getDocumentation();
if ((documentation != null) && (documentation.size() > 0)) {
currentType.setInstanceProperty(SDOConstants.DOCUMENTATION_PROPERTY, documentation);
}
}
currentType.preInitialize(packageName, namespaceResolvers);
if (complexType.getAnnotation() != null) {
currentType.setAppInfoElements(complexType.getAnnotation().getAppInfo());
}
return currentType;
}