org.eclipse.uml2.common.util
Class UML2Util.EClassMatcher
java.lang.Object
org.eclipse.uml2.common.util.UML2Util.EClassMatcher
- All Implemented Interfaces:
- UML2Util.EObjectMatcher
- Direct Known Subclasses:
- UML2Util.EStructuralFeatureMatcher, UMLUtil.PackageMerger.KeyMatcher, UMLUtil.PackageMerger.ResultingQNameMatcher, UMLUtil.PackageMerger.StringValueMatcher
- Enclosing class:
- UML2Util
- public static class UML2Util.EClassMatcher
- extends Object
- implements UML2Util.EObjectMatcher
A matcher that determines matches based on the class of candidate
objects.
Method Summary |
boolean |
matches(EObject otherEObject)
Determines whether the specified object matches some criteria. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eObject
protected final EObject eObject
UML2Util.EClassMatcher
public UML2Util.EClassMatcher(EObject eObject)
- Constructs a new class matcher based on the specified object.
- Parameters:
eObject
- The object whose class is to be used as a match criterion.
matches
public boolean matches(EObject otherEObject)
- Description copied from interface:
UML2Util.EObjectMatcher
- Determines whether the specified object matches some criteria.
- Specified by:
matches
in interface UML2Util.EObjectMatcher
- Parameters:
otherEObject
- The candidate object.
- Returns:
true
if the object meets the criteria;
false
otherwise.