org.eclipse.uml2.common.util
Class UML2Util.EStructuralFeatureMatcher

java.lang.Object
  extended byorg.eclipse.uml2.common.util.UML2Util.EClassMatcher
      extended byorg.eclipse.uml2.common.util.UML2Util.EStructuralFeatureMatcher
All Implemented Interfaces:
UML2Util.EObjectMatcher
Direct Known Subclasses:
UMLUtil.PackageMerger.BodyMatcher, UMLUtil.PackageMerger.NameMatcher, UMLUtil.PackageMerger.SourceMatcher, UMLUtil.UML2EcoreConverter.NameMatcher
Enclosing class:
UML2Util

public static class UML2Util.EStructuralFeatureMatcher
extends UML2Util.EClassMatcher

A matcher that determines matches based on the class of, and the value for a specific structural feature held by, candidate objects.


Field Summary
protected  EStructuralFeature eStructuralFeature
           
 
Fields inherited from class org.eclipse.uml2.common.util.UML2Util.EClassMatcher
eObject
 
Constructor Summary
UML2Util.EStructuralFeatureMatcher(EObject eObject, EStructuralFeature eStructuralFeature)
          Constructs a new structural feature matcher based on the specified object.
 
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
 

Field Detail

eStructuralFeature

protected final EStructuralFeature eStructuralFeature
Constructor Detail

UML2Util.EStructuralFeatureMatcher

public UML2Util.EStructuralFeatureMatcher(EObject eObject,
                                          EStructuralFeature eStructuralFeature)
Constructs a new structural feature matcher based on the specified object.

Parameters:
eObject - The object whose class is to be used as a match criterion.
eStructuralFeature - The structural feature whose value is to be used as a match criterion.
Method Detail

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
Overrides:
matches in class UML2Util.EClassMatcher

Copyright 2003, 2006 IBM Corporation and others.
All Rights Reserved.