/** * @since 7.2 */ @Override public boolean equals(Object obj) { if (!(obj instanceof WidgetTypeDefinitionImpl)) { return false; } if (obj == this) { return true; } WidgetTypeDefinitionImpl w = (WidgetTypeDefinitionImpl) obj; return new EqualsBuilder().append(name, w.name).append(aliases, w.aliases).append(handlerClassName, w.handlerClassName).append(properties, w.properties).append(configuration, w.configuration).isEquals(); }
public EqualsBuilder append(Object[] lhs, Object[] rhs) { if (isEquals == false) { return this; } if (lhs == rhs) { return this; } if (lhs == null || rhs == null) { this.setEquals(false); return this; } if (lhs.length != rhs.length) { this.setEquals(false); return this; } for (int i = 0; i < lhs.length && isEquals; ++i) { append(lhs[i], rhs[i]); } return this; }
@SuppressWarnings("rawtypes") public EqualsBuilder append(Object lhs, Object rhs) { if (isEquals == false) { return this; } if (lhs == rhs) { return this; } if (lhs == null || rhs == null) { this.setEquals(false); return this; } Class lhsClass = lhs.getClass(); if (!lhsClass.isArray()) { // The simple case, not an array, just test the element isEquals = lhs.equals(rhs); } else if (lhs.getClass() != rhs.getClass()) { // Here when we compare different dimensions, for example: a boolean[][] to a boolean[] this.setEquals(false); } else if (lhs instanceof Object[]) { append((Object[]) lhs, (Object[]) rhs); } else { // assume there are no arrays of primitives append(lhs, rhs); } return this; }
/** * @since 7.2 */ @Override public boolean equals(Object obj) { if (!(obj instanceof LayoutDefinitionImpl)) { return false; } if (obj == this) { return true; } LayoutDefinitionImpl ld = (LayoutDefinitionImpl) obj; return new EqualsBuilder().append(name, ld.name).append(type, ld.type).append(typeCategory, ld.typeCategory).append( properties, ld.properties).append(templates, ld.templates).append(rows, ld.rows).append(widgets, ld.widgets).append(renderingInfos, ld.renderingInfos).append(aliases, ld.aliases).append(dynamic, ld.dynamic).isEquals(); }
/** * @since 7.2 */ @Override public boolean equals(Object obj) { if (!(obj instanceof RenderingInfoImpl)) { return false; } if (obj == this) { return true; } RenderingInfoImpl ri = (RenderingInfoImpl) obj; return new EqualsBuilder().append(level, ri.level).append(message, ri.message).append(translated, ri.translated).isEquals(); }
/** * @since 7.2 */ @Override public boolean equals(Object obj) { if (!(obj instanceof FieldDefinitionImpl)) { return false; } if (obj == this) { return true; } FieldDefinitionImpl fd = (FieldDefinitionImpl) obj; return new EqualsBuilder().append(schema, fd.schema).append(field, fd.field).isEquals(); }
/** * @since 7.2 */ @Override public boolean equals(Object obj) { if (!(obj instanceof WidgetReferenceImpl)) { return false; } if (obj == this) { return true; } WidgetReferenceImpl w = (WidgetReferenceImpl) obj; return new EqualsBuilder().append(name, w.name).append(category, w.category).isEquals(); }
/** * @since 7.2 */ @Override public boolean equals(Object obj) { if (!(obj instanceof LayoutTypeDefinitionImpl)) { return false; } if (obj == this) { return true; } LayoutTypeDefinitionImpl lt = (LayoutTypeDefinitionImpl) obj; return new EqualsBuilder().append(name, lt.name).append(aliases, lt.aliases).append(templates, lt.templates).append( configuration, lt.configuration).isEquals(); }
/** * @since 7.2 */ @Override public boolean equals(Object obj) { if (!(obj instanceof WidgetTypeImpl)) { return false; } if (obj == this) { return true; } WidgetTypeImpl w = (WidgetTypeImpl) obj; return new EqualsBuilder().append(name, w.name).append(aliases, w.aliases).append(typeClass, w.typeClass).append( properties, w.properties).isEquals(); }
/** * @since 7.2 */ @Override public boolean equals(Object obj) { if (!(obj instanceof LayoutTypeConfigurationImpl)) { return false; } if (obj == this) { return true; } LayoutTypeConfigurationImpl lc = (LayoutTypeConfigurationImpl) obj; return new EqualsBuilder().append(sinceVersion, lc.sinceVersion).append(deprecatedVersion, lc.deprecatedVersion).append( title, lc.title).append(description, lc.description).append(demoId, lc.demoId).append( demoPreviewEnabled, lc.demoPreviewEnabled).append(supportedModes, lc.supportedModes).append( handlingLabels, lc.handlingLabels).append(supportedControls, lc.supportedControls).append( containingForm, lc.containingForm).append(categories, lc.categories).append(propertyLayouts, lc.propertyLayouts).append(defaultPropertyValues, lc.defaultPropertyValues).append(fieldLayouts, lc.fieldLayouts).isEquals(); }
/** * @since 7.2 */ @Override public boolean equals(Object obj) { if (!(obj instanceof WidgetSelectOptionImpl)) { return false; } if (obj == this) { return true; } WidgetSelectOptionImpl w = (WidgetSelectOptionImpl) obj; return new EqualsBuilder().append(value, w.value).append(var, w.var).append(itemLabel, w.itemLabel).append( labels, w.labels).append(itemValue, w.itemValue).append(itemDisabled, w.itemDisabled).append( itemRendered, w.itemRendered).isEquals(); }
/** * @since 7.2 */ @Override public boolean equals(Object obj) { if (!(obj instanceof LayoutRowDefinitionImpl)) { return false; } if (obj == this) { return true; } LayoutRowDefinitionImpl ld = (LayoutRowDefinitionImpl) obj; return new EqualsBuilder().append(name, ld.name) .append(properties, ld.properties) .append(widgets, ld.widgets) .append(alwaysSelected, ld.alwaysSelected) .append(selectedByDefault, ld.selectedByDefault) .isEquals(); }
/** * @since 7.2 */ @Override public boolean equals(Object obj) { if (!(obj instanceof WidgetSelectOptionsImpl)) { return false; } if (obj == this) { return true; } WidgetSelectOptionsImpl w = (WidgetSelectOptionsImpl) obj; return new EqualsBuilder().append(value, w.value).append(var, w.var).append(itemLabel, w.itemLabel).append( labels, w.labels).append(itemValue, w.itemValue).append(itemDisabled, w.itemDisabled).append( itemRendered, w.itemRendered).append(ordering, w.ordering).isEquals(); } }
/** * @since 7.2 */ @Override public boolean equals(Object obj) { if (!(obj instanceof WidgetDefinitionImpl)) { return false; } if (obj == this) { return true; } WidgetDefinitionImpl w = (WidgetDefinitionImpl) obj; return new EqualsBuilder().append(name, w.name).append(type, w.type).append(typeCategory, w.typeCategory).append( labels, w.labels).append(helpLabels, w.helpLabels).append(translated, w.translated).append( handlingLabels, w.handlingLabels).append(modes, w.modes).append(fieldDefinitions, w.fieldDefinitions).append( properties, w.properties).append(widgetModeProperties, w.widgetModeProperties).append(controls, w.controls).append(subWidgets, w.subWidgets).append(subWidgetReferences, w.subWidgetReferences).append( selectOptions, w.selectOptions).append(renderingInfos, w.renderingInfos).append(aliases, w.aliases).append( dynamic, w.dynamic).append(global, w.global).isEquals(); }
return new EqualsBuilder().append(sinceVersion, wc.sinceVersion) .append(deprecatedVersion, wc.deprecatedVersion) .append(title, wc.title) .append(description, wc.description) .append(demoId, wc.demoId) .append(demoPreviewEnabled, wc.demoPreviewEnabled) .append(properties, wc.properties) .append(supportedModes, wc.supportedModes) .append(acceptingSubWidgets, wc.acceptingSubWidgets) .append(handlingLabels, wc.handlingLabels) .append(supportedControls, wc.supportedControls) .append(list, wc.list) .append(complex, wc.complex) .append(containingForm, wc.containingForm) .append(supportedFieldTypes, wc.supportedFieldTypes) .append(defaultFieldTypes, wc.defaultFieldTypes) .append(defaultFieldDefinitions, wc.defaultFieldDefinitions) .append(categories, wc.categories) .append(propertyLayouts, wc.propertyLayouts) .append(defaultPropertyValues, wc.defaultPropertyValues) .append(defaultControlValues, wc.defaultControlValues) .append(fieldLayouts, wc.fieldLayouts) .isEquals();