org.eclipse.ocl.examples.xtext.completeocl.attributes
Class OperationContextFilter

java.lang.Object
  extended by org.eclipse.ocl.examples.xtext.completeocl.attributes.OperationContextFilter
All Implemented Interfaces:
ScopeFilter

public class OperationContextFilter
extends java.lang.Object
implements ScopeFilter


Constructor Summary
OperationContextFilter(OperationContextDeclCS csOperationContext)
           
 
Method Summary
 int compareMatches(MetaModelManager metaModelManager, java.lang.Object match1, java.util.Map<TemplateParameter,ParameterableElement> bindings1, java.lang.Object match2, java.util.Map<TemplateParameter,ParameterableElement> bindings2)
          Return -ve if match1 is inferior to match2, +ve if match2 is inferior to match1, or zero if both matches are of equal validity.
 boolean matches(EnvironmentView environmentView, java.lang.Object object)
          Return true if the filter accepts eObject as a candidate for inclusion in the EnvironmentView.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationContextFilter

public OperationContextFilter(@NonNull
                              OperationContextDeclCS csOperationContext)
Method Detail

compareMatches

public int compareMatches(@NonNull
                          MetaModelManager metaModelManager,
                          @NonNull
                          java.lang.Object match1,
                          @Nullable
                          java.util.Map<TemplateParameter,ParameterableElement> bindings1,
                          @NonNull
                          java.lang.Object match2,
                          @Nullable
                          java.util.Map<TemplateParameter,ParameterableElement> bindings2)
Description copied from interface: ScopeFilter
Return -ve if match1 is inferior to match2, +ve if match2 is inferior to match1, or zero if both matches are of equal validity.

Specified by:
compareMatches in interface ScopeFilter

matches

public boolean matches(@NonNull
                       EnvironmentView environmentView,
                       @NonNull
                       java.lang.Object object)
Description copied from interface: ScopeFilter
Return true if the filter accepts eObject as a candidate for inclusion in the EnvironmentView.

Specified by:
matches in interface ScopeFilter