org.eclipse.emf.emfstore.internal.client.ui.views.scm
Class FilterOperations

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.ui.views.scm.FilterOperations

public class FilterOperations
extends Object

A class that divides an given input into operations that may be filtered via the EClassFilter.

Author:
emueller

Constructor Summary
FilterOperations(ModelElementIdToEObjectMapping idToEObjectMapping)
          Constructor.
FilterOperations(ModelElementIdToEObjectMapping idToEObjectMapping, Class<? extends org.eclipse.emf.ecore.EObject> ignoredClass)
          Constructor.
 
Method Summary
 FilteredOperationsResult filter(Object[] input)
          Filters the given input according to the filtering rules of the EClassFilter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterOperations

public FilterOperations(ModelElementIdToEObjectMapping idToEObjectMapping)
Constructor.

Parameters:
idToEObjectMapping - a mapping from EObjects to their IDs. Used to resolve EObjects involved within operations

FilterOperations

public FilterOperations(ModelElementIdToEObjectMapping idToEObjectMapping,
                        Class<? extends org.eclipse.emf.ecore.EObject> ignoredClass)
Constructor.

Parameters:
idToEObjectMapping - a mapping from EObjects to their IDs. Used to resolve EObjects involved within operations
ignoredClass - a type that is completely ignored while filtering, i.e. instances of this type are ignored by the FilteredOperationsResult type
Method Detail

filter

public FilteredOperationsResult filter(Object[] input)
Filters the given input according to the filtering rules of the EClassFilter.

Parameters:
input - the input to be filtered
Returns:
a FilteredOperationsResult containing the filtered and non-filtered types


Copyright © 2015. All Rights Reserved.