org.eclipse.emf.emfstore.internal.server.model.impl.api.query
Class ESModelElementQueryImpl

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<U,T>
      extended by org.eclipse.emf.emfstore.internal.server.model.impl.api.query.ESHistoryQueryImpl<T,U>
          extended by org.eclipse.emf.emfstore.internal.server.model.impl.api.query.ESRangeQueryImpl<ESModelElementQuery,ModelElementQuery>
              extended by org.eclipse.emf.emfstore.internal.server.model.impl.api.query.ESModelElementQueryImpl
All Implemented Interfaces:
InternalAPIDelegator<ESModelElementQuery,ModelElementQuery>, ESHistoryQuery<ESModelElementQuery>, ESModelElementQuery, ESRangeQuery<ESModelElementQuery>

public class ESModelElementQueryImpl
extends ESRangeQueryImpl<ESModelElementQuery,ModelElementQuery>
implements ESModelElementQuery

Mapping between ESModelElementQuery and ModelElementQuery.

The model element query is a specialization of the ESRangeQueryImpl, which allows to additionally alter the results produced by the range query on selected elements.

Author:
emueller

Field Summary
 
Fields inherited from interface org.eclipse.emf.emfstore.server.model.query.ESHistoryQuery
FACTORY
 
Constructor Summary
ESModelElementQueryImpl(ModelElementQuery query)
          Constructor.
 
Method Summary
 void addModelElementId(ESModelElementId id)
          Adds the ID of a model element that the query should filter for.
 List<ESModelElementId> getModelElementIds()
          Returns all model element IDs this query is filtering for.
 void removeModelElementId(ESModelElementId id)
          Removes the ID of a model element from this query.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.server.model.impl.api.query.ESRangeQueryImpl
getLowerLimit, getSource, getUpperLimit, isIncludeAllVersions, isIncludeChangePackages, isIncludeIncoming, isIncludeOutgoing, setIncludeAllVersions, setIncludeChangePackages, setIncludeIncoming, setIncludeOutgoing, setLowerLimit, setSource, setUpperLimit
 
Methods inherited from class org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl
equals, hashCode, toInternalAPI
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.emfstore.server.model.query.ESRangeQuery
getLowerLimit, getUpperLimit, isIncludeIncoming, isIncludeOutgoing, setIncludeIncoming, setIncludeOutgoing, setLowerLimit, setUpperLimit
 
Methods inherited from interface org.eclipse.emf.emfstore.server.model.query.ESHistoryQuery
getSource, isIncludeAllVersions, isIncludeChangePackages, setIncludeAllVersions, setIncludeChangePackages, setSource
 

Constructor Detail

ESModelElementQueryImpl

public ESModelElementQueryImpl(ModelElementQuery query)
Constructor.

Parameters:
query - the delegate
Method Detail

getModelElementIds

public List<ESModelElementId> getModelElementIds()
Returns all model element IDs this query is filtering for.

Specified by:
getModelElementIds in interface ESModelElementQuery
Returns:
a list of model elements IDs for which this query is filtering for
See Also:
ESModelElementQuery.getModelElementIds()

addModelElementId

public void addModelElementId(ESModelElementId id)
Adds the ID of a model element that the query should filter for.

Specified by:
addModelElementId in interface ESModelElementQuery
Parameters:
id - the ID of a model element
See Also:
ESModelElementQuery.addModelElementId(org.eclipse.emf.emfstore.common.model.ESModelElementId)

removeModelElementId

public void removeModelElementId(ESModelElementId id)
Removes the ID of a model element from this query.

Specified by:
removeModelElementId in interface ESModelElementQuery
Parameters:
id - the ID of the model element to be removed
See Also:
ESModelElementQuery.removeModelElementId(org.eclipse.emf.emfstore.common.model.ESModelElementId)


Copyright © 2015. All Rights Reserved.