private void checkCustomizations(CClassInfo classInfo, CPropertyInfo customizable) { for (CPluginCustomization pluginCustomization : CustomizationUtils .getCustomizations(customizable)) { if (!pluginCustomization.isAcknowledged() && Customizations.NAMESPACE_URI .equals(pluginCustomization.element .getNamespaceURI())) { logger.warn("Unacknowledged customization [" + getName(pluginCustomization.element) + "] in the property [" + classInfo.getName() + "." + customizable.getName(true) + "]."); pluginCustomization.markAsAcknowledged(); } } }
private void checkCustomizations(CClassInfo classInfo, CPropertyInfo customizable) { for (CPluginCustomization pluginCustomization : CustomizationUtils .getCustomizations(customizable)) { if (!pluginCustomization.isAcknowledged() && Customizations.NAMESPACE_URI .equals(pluginCustomization.element .getNamespaceURI())) { logger.warn("Unacknowledged customization [" + getName(pluginCustomization.element) + "] in the property [" + classInfo.getName() + "." + customizable.getName(true) + "]."); pluginCustomization.markAsAcknowledged(); } } }
private void checkCustomizations(CClassInfo customizable) { for (final CPluginCustomization pluginCustomization : CustomizationUtils .getCustomizations(customizable)) { final Element element = pluginCustomization.element; if (!pluginCustomization.isAcknowledged() // && Customizations.NAMESPACE_URI.equals(element // .getNamespaceURI()) ) { logger.warn("Unacknowledged customization [" + getName(element) + "] in the class [" + customizable.getName() + "]."); pluginCustomization.markAsAcknowledged(); } } }
private void checkCustomizations(CClassInfo customizable) { for (final CPluginCustomization pluginCustomization : CustomizationUtils .getCustomizations(customizable)) { final Element element = pluginCustomization.element; if (!pluginCustomization.isAcknowledged() // && Customizations.NAMESPACE_URI.equals(element // .getNamespaceURI()) ) { logger.warn("Unacknowledged customization [" + getName(element) + "] in the class [" + customizable.getName() + "]."); pluginCustomization.markAsAcknowledged(); } } }
fromName.put(ci.getName(),new InterfaceAcceptor() { public void implement(JClass c) { ci._implements(c);
fromName.put(ci.getName(),new InterfaceAcceptor() { public void implement(JClass c) { ci._implements(c);
fromName.put(ci.getName(),new InterfaceAcceptor() { public void implement(JClass c) { ci._implements(c);
public DefinedClassOutline(final PluginContext pluginContext, final ClassOutline classOutline) { this.pluginContext = pluginContext; this.classOutline = classOutline; final List<DefinedPropertyOutline> properties = new ArrayList<>(classOutline.getDeclaredFields().length); for (final FieldOutline fieldOutline : classOutline.getDeclaredFields()) { properties.add(new DefinedPropertyOutline(fieldOutline)); } this.declaredFields = Collections.unmodifiableList(properties); if (this.classOutline.getSuperClass() != null) { this.superClass = new DefinedClassOutline(this.pluginContext, this.classOutline.getSuperClass()); } else { try { final Class<?> ungeneratedSuperClass = Class.forName(this.classOutline.implClass._extends().fullName()); if (Object.class.equals(ungeneratedSuperClass)) { this.superClass = null; } else { this.superClass = new ReferencedClassOutline(this.pluginContext.codeModel, ungeneratedSuperClass); } } catch (final Exception e) { throw new RuntimeException("Cannot find superclass of " + this.classOutline.target.getName() + ": " + this.classOutline.target.getLocator()); } } }
fromName.put(ci.getName(),new InterfaceAcceptor() { public void implement(JClass c) { ci._implements(c);
fromName.put(ci.getName(),new InterfaceAcceptor() { public void implement(JClass c) { ci._implements(c);
+ classInfo.getName() + "]."); + "but it already contains id properties. " + "The customization will be ignored.", classInfo.getName())); } else { newPropertyInfos.addAll(createDefaultIdPropertyInfos(context, + "but it already contains version properties. " + "The customization will be ignored.", classInfo.getName())); } else { newPropertyInfos.addAll(createDefaultVersionPropertyInfos( + classInfo.getName() + "] declares an attribute wildcard. This is currently not supported. See issue #46."); + classInfo.getName() + "]."); return newPropertyInfos;
fieldOutline.parent().target.getName() + "] because they already contain an embedded-id element."); fieldOutline.parent().target.getName() + "] because they already contain an id element."); } else if (attributes.getEmbeddedId() != null) { fieldOutline.parent().target.getName() + "] because they already contain an embedded-id element."); } else {
fieldOutline.parent().target.getName() + "] because they already contain an embedded-id element."); fieldOutline.parent().target.getName() + "] because they already contain an id element."); } else if (attributes.getEmbeddedId() != null) { fieldOutline.parent().target.getName() + "] because they already contain an embedded-id element."); } else {
@Override public boolean run(Outline outline, Options opt, ErrorHandler errorHandler) { for (final ClassOutline classOutline : outline.getClasses()) { for (final CPluginCustomization pluginCustomization : classOutline.target .getCustomizations()) { pluginCustomization.markAsAcknowledged(); } final CClassInfo classInfo = classOutline.target; logger.debug("Class:" + classInfo.getName()); for (final FieldOutline fieldOutline : classOutline .getDeclaredFields()) { final CPropertyInfo propertyInfo = fieldOutline .getPropertyInfo(); logger.debug("Property:" + propertyInfo.getName(true)); for (final CPluginCustomization pluginCustomization : fieldOutline .getPropertyInfo().getCustomizations()) { pluginCustomization.markAsAcknowledged(); } } } return true; }
@Override public boolean run(Outline outline, Options opt, ErrorHandler errorHandler) { for (final ClassOutline classOutline : outline.getClasses()) { for (final CPluginCustomization pluginCustomization : classOutline.target .getCustomizations()) { pluginCustomization.markAsAcknowledged(); } final CClassInfo classInfo = classOutline.target; logger.debug("Class:" + classInfo.getName()); for (final FieldOutline fieldOutline : classOutline .getDeclaredFields()) { final CPropertyInfo propertyInfo = fieldOutline .getPropertyInfo(); logger.debug("Property:" + propertyInfo.getName(true)); for (final CPluginCustomization pluginCustomization : fieldOutline .getPropertyInfo().getCustomizations()) { pluginCustomization.markAsAcknowledged(); } } } return true; }
if( bean.getName().equals(reservedClassName) ) { getErrorReporter().error( sc.getLocator(), Messages.ERR_RESERVED_CLASS_NAME, reservedClassName );
if( bean.getName().equals(reservedClassName) ) { getErrorReporter().error( sc.getLocator(), Messages.ERR_RESERVED_CLASS_NAME, reservedClassName );
if( bean.getName().equals(reservedClassName) ) { getErrorReporter().error( sc.getLocator(), Messages.ERR_RESERVED_CLASS_NAME, reservedClassName );
if( bean.getName().equals(reservedClassName) ) { getErrorReporter().error( sc.getLocator(), Messages.ERR_RESERVED_CLASS_NAME, reservedClassName );
if( bean.getName().equals(reservedClassName) ) { getErrorReporter().error( sc.getLocator(), Messages.ERR_RESERVED_CLASS_NAME, reservedClassName );