Class IndexSlicePredicateService
- java.lang.Object
-
- com._1c.g5.modeling.xtext.scoping.IndexSlicePredicateService
-
- All Implemented Interfaces:
IIndexSlicePredicateService
public class IndexSlicePredicateService extends Object implements IIndexSlicePredicateService
Default implementation ofIIndexSlicePredicateService. Reads registered index slices form extension point "com._1c.g5.modeling.xtext.indexSlicePredicate"
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.modeling.xtext.scoping.IIndexSlicePredicateService
MANAGER_TYPE, NON_SELECTION_TYPE, ONE_SEGMENT, SCRIPT_INTNL, SCRIPT_RU, SOME_SEGMENTS
-
-
Constructor Summary
Constructors Constructor Description IndexSlicePredicateService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,ISliceFilter>getAllPredicates()Gets all registered predicates with its names from extension point "com._1c.g5.v8.dt.core.indexSlicePredicate".ISliceFiltergetPredicate(String name)Gets index slice predicate by name.protected Map<String,ISliceFilter>internalGetAllPredicates()Reads index slices predicates from extension point "com._1c.g5.modeling.xtext.indexSlicePredicate"org.eclipse.xtext.util.Pair<Collection<ISliceFilter>,com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>>separateSlices(AndPredicate<org.eclipse.xtext.resource.IEObjectDescription> predicates)Separates slices predicates fromAndPredicateorg.eclipse.xtext.util.Pair<Collection<ISliceFilter>,com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>>separateSlices(Collection<com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>> predicates)Separates slices predicates from colletion of the predicates
-
-
-
Method Detail
-
getPredicate
public ISliceFilter getPredicate(String name)
Description copied from interface:IIndexSlicePredicateServiceGets index slice predicate by name. See extension point "com._1c.g5.v8.dt.core.indexSlicePredicate" andIIndexSlice- Specified by:
getPredicatein interfaceIIndexSlicePredicateService- Parameters:
name- name of the registered index slice predicate, can't benull- Returns:
- index slice predicate or
nullif predicate wasn't registered for this name.
-
getAllPredicates
public Map<String,ISliceFilter> getAllPredicates()
Description copied from interface:IIndexSlicePredicateServiceGets all registered predicates with its names from extension point "com._1c.g5.v8.dt.core.indexSlicePredicate". Also seeIIndexSlice- Specified by:
getAllPredicatesin interfaceIIndexSlicePredicateService- Returns:
- map of registered predicates with its names from extension point "com._1c.g5.v8.dt.core.indexSlicePredicate", never
null
-
separateSlices
public org.eclipse.xtext.util.Pair<Collection<ISliceFilter>,com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>> separateSlices(Collection<com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>> predicates)
Description copied from interface:IIndexSlicePredicateServiceSeparates slices predicates from colletion of the predicates- Specified by:
separateSlicesin interfaceIIndexSlicePredicateService- Parameters:
predicates- separating predicates, can't benull- Returns:
- pair - the first is index slices predicates, the second is remaining predicate, never
null
-
separateSlices
public org.eclipse.xtext.util.Pair<Collection<ISliceFilter>,com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>> separateSlices(AndPredicate<org.eclipse.xtext.resource.IEObjectDescription> predicates)
Description copied from interface:IIndexSlicePredicateServiceSeparates slices predicates fromAndPredicate- Specified by:
separateSlicesin interfaceIIndexSlicePredicateService- Parameters:
predicates- separating predicates, can't benull- Returns:
- pair - the first is index slices predicates, the second is remaining predicate, never
null
-
internalGetAllPredicates
protected Map<String,ISliceFilter> internalGetAllPredicates()
Reads index slices predicates from extension point "com._1c.g5.modeling.xtext.indexSlicePredicate"- Returns:
- dictionary with key - name of the index slice predicate, value -
Predicateof the index slice, nevernull
-
-