try
{
Vector restrictionData = type.getEnumerationdata();
if (restrictionData == null)
return;
TypeEntry baseEType = (TypeEntry) restrictionData.firstElement();
QName baseType = baseEType.getQName();
if (!CUtils.isSimpleType(baseType))
return;
String langTypeName = CUtils.getclass4qname(baseType);
writer.write("typedef ");