new EClassMatcher(directedRelationship) {
EObject matchingEObject = findEObject( getMatchCandidates(theEObject), new EClassMatcher(theEObject));
@Override public boolean matches(EObject otherEObject) { return super.matches(otherEObject) && safeEquals(eObject.eGet(eStructuralFeature), otherEObject .eGet(eStructuralFeature)); } }
@Override public boolean matches(EObject otherEObject) { return super.matches(otherEObject) && safeEquals(getResultingQName(eObject), getResultingQName(otherEObject)); } }
@SuppressWarnings("unchecked") @Override public boolean matches(EObject otherEObject) { return super.matches(otherEObject) && safeEquals(((BasicEMap.Entry<String, String>) eObject) .getKey(), ((BasicEMap.Entry<String, String>) otherEObject) .getKey()); } }
@Override public boolean matches(EObject otherEObject) { return super.matches(otherEObject) && safeEquals(eObject.eGet(eStructuralFeature), otherEObject .eGet(eStructuralFeature)); } }
@Override public boolean matches(EObject otherEObject) { if (super.matches(otherEObject)) { Feature otherFeature = (Feature) otherEObject; return eObject != otherFeature && safeEquals(otherFeature.getName(), name) && isRedefinitionValid((Feature) eObject, otherFeature); } return false; } });
@Override public boolean matches(EObject otherEObject) { return super.matches(otherEObject) && safeEquals(((ValueSpecification) eObject).stringValue(), ((ValueSpecification) otherEObject).stringValue()); } }
@Override public boolean matches(EObject otherEObject) { if (super.matches(otherEObject)) { Property otherProperty = (Property) otherEObject; return eObject != otherProperty && safeEquals(otherProperty.getName(), name) && isSubsetValid((Property) eObject, otherProperty); } return false; } });