protected void writeSimpleTypeWithEnumerations() throws WrapperFault{
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 ");
if ("string".equals(baseType.getLocalPart()) || "NMTOKEN".equals(baseType.getLocalPart())){