public ValidationResult validateEnumType(EnumTypeDefinition enumType) {
ValidationResult result = super.validateEnumType(enumType);
if (!isAMFTransient(enumType)) {
if (!disabledRules.contains("as3.conflicting.names")) {
if ("Date".equals(enumType.getClientSimpleName())) {
result.addError(enumType, "ActionScript can't handle a class named 'Date'. It conflicts with the top-level ActionScript class of the same name. Either rename the class, or use the @org.codehaus.enunciate.ClientName annotation to rename the class on the client-side.");
}
else if ("Event".equals(enumType.getClientSimpleName())) {
result.addError(enumType, "The Enunciate-generated ActionScript code can't handle a class named 'Event'. It conflicts with the ActionScript remoting class of the same name. Either rename the class, or use the @org.codehaus.enunciate.ClientName annotation to rename the class on the client-side.");
}
}