Class IndexSlice
- java.lang.Object
- 
- com._1c.g5.modeling.xtext.scoping.IndexSlice
 
- 
- All Implemented Interfaces:
- IIndexSlice
 
 public class IndexSlice extends Object implements IIndexSlice Default implementation ofIIndexSlice
- 
- 
Constructor SummaryConstructors Constructor Description IndexSlice(ISliceFilter predicate)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddItem(long id, org.eclipse.xtext.resource.IEObjectDescription item)Tries to add index element to index sliceSet<Long>getItems()Gets unique ids of index elements contained in this index sliceISliceFiltergetPredicate()Gets specialISliceFilterthat determines elements in this index slice.booleanremoveItem(long id)Tries to delete index element from index slice
 
- 
- 
- 
Constructor Detail- 
IndexSlicepublic IndexSlice(ISliceFilter predicate) Constructor- Parameters:
- predicate- id of index slice predicate. See- IIndexSlicePredicateService, can't be- null
 
 
- 
 - 
Method Detail- 
getItemspublic Set<Long> getItems() Description copied from interface:IIndexSliceGets unique ids of index elements contained in this index slice- Specified by:
- getItemsin interface- IIndexSlice
- Returns:
- unique ids of index elements contained in this index slice, never null
 
 - 
addItempublic boolean addItem(long id, org.eclipse.xtext.resource.IEObjectDescription item)Description copied from interface:IIndexSliceTries to add index element to index slice- Specified by:
- addItemin interface- IIndexSlice
- Parameters:
- id- special unique id for adding index element
- item- index element for adding to index slice, can't be- null
- Returns:
- trueif index element was added to slice,- falseif index element is not supported of this index slice. If index already has contained element with the same- idthen- falsewill be returned and index won't change Supporting index items are determined by predicate from- IIndexSlice.getPredicate()
 
 - 
removeItempublic boolean removeItem(long id) Description copied from interface:IIndexSliceTries to delete index element from index slice- Specified by:
- removeItemin interface- IIndexSlice
- Parameters:
- id- special unique id for deleting index element
- Returns:
- trueif item was succeeded deleted,- falseotherwise
 
 - 
getPredicatepublic ISliceFilter getPredicate() Description copied from interface:IIndexSliceGets specialISliceFilterthat determines elements in this index slice. ThisISliceFilteris id of slice type- Specified by:
- getPredicatein interface- IIndexSlice
- Returns:
- special ISliceFilterthat determines elements in this index slice, can't benull
 
 
- 
 
-