Search in sources :

Example 11 with MapperTableEntry

use of org.talend.designer.mapper.model.emf.mapper.MapperTableEntry in project tdi-studio-se by Talend.

the class AbstractDataMapTableImpl method equals.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated not
     */
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (obj == null) {
        return false;
    }
    if (getClass() != obj.getClass()) {
        return false;
    }
    AbstractDataMapTableImpl other = (AbstractDataMapTableImpl) obj;
    if (this.minimized != other.minimized) {
        return false;
    }
    if (this.name == null) {
        if (other.name != null) {
            return false;
        }
    } else if (!this.name.equals(other.name)) {
        return false;
    }
    if (this.sizeState == null) {
        if (other.sizeState != null) {
            return false;
        }
    } else if (!this.sizeState.getName().equals(other.sizeState.getName())) {
        return false;
    } else if (this.sizeState.getValue() != other.sizeState.getValue()) {
        return false;
    } else if (!this.sizeState.getLiteral().equals(other.sizeState.getLiteral())) {
        return false;
    }
    EList<MapperTableEntry> otherEntries = other.getMapperTableEntries();
    if (getMapperTableEntries().size() != otherEntries.size()) {
        return false;
    }
    for (MapperTableEntry entry : mapperTableEntries) {
        boolean found = false;
        for (MapperTableEntry otherEntry : otherEntries) {
            if (entry.getName().equals(otherEntry.getName())) {
                found = true;
                if (!entry.equals(otherEntry)) {
                    return false;
                }
                break;
            }
        }
        if (found == false) {
            return false;
        }
    }
    return true;
}
Also used : MapperTableEntry(org.talend.designer.mapper.model.emf.mapper.MapperTableEntry)

Aggregations

MapperTableEntry (org.talend.designer.mapper.model.emf.mapper.MapperTableEntry)11 ExternalMapperTableEntry (org.talend.designer.mapper.external.data.ExternalMapperTableEntry)3 InputTable (org.talend.designer.mapper.model.emf.mapper.InputTable)3 OutputTable (org.talend.designer.mapper.model.emf.mapper.OutputTable)3 ArrayList (java.util.ArrayList)2 VarTable (org.talend.designer.mapper.model.emf.mapper.VarTable)2 IMetadataColumn (org.talend.core.model.metadata.IMetadataColumn)1 ExternalMapperData (org.talend.designer.mapper.external.data.ExternalMapperData)1 MapperData (org.talend.designer.mapper.model.emf.mapper.MapperData)1