/** * {@inheritDoc} * <p> * XJC has built an abstract in-memory model of the target classes. We are * given a chance to tweak it. * */ public void postProcessModel(Model model, ErrorHandler errorHandler) { /* * With ECI we need to change field names so that they match the bean * getter/setter convention. */ if (isEciCompatible()) { for (Entry < NClass, CClassInfo > entry : model.beans().entrySet()) { CClassInfo classInfo = entry.getValue(); List < CPropertyInfo > properties = classInfo.getProperties(); for (CPropertyInfo property : properties) { String publicName = property.getName(true); String newPrivateName = Character.toLowerCase(publicName .charAt(0)) + publicName.substring(1); property.setName(false, newPrivateName); } } } }
for (CClassInfo c : model.beans().values()) { for (CPropertyInfo prop : c.getProperties()) { prop.setName(false, prop.getName(true));