Package com._1c.g5.v8.dt.md.typeinfo
Interface IMdTypeIndex
- All Known Implementing Classes:
MdTypeIndex
public interface IMdTypeIndex
The fast index of MD types. Provides some commonly used type selections (like ref types, etc).
Types are available only for DT projects being loaded at the moment (as the part of DT project lifecycle).
The index is self-cleanable (on request of types) and always returns the set of types available at the moment of
request
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTypeToIndex(MdType mdType) Adds type to the index.getRefTypes(IDtProject dtProject, String typeCategory) Gets ref types for the given projectgetRefTypes(org.eclipse.emf.ecore.EObject context, String typeCategory) Gets ref types for the given projectgetResolvedTypeSetTypes(IDtProject dtProject, TypeSet typeSet) Gets the resolvedTypeSettypesgetResolvedTypeSetTypes(org.eclipse.emf.ecore.EObject context, TypeSet typeSet) Gets the resolvedTypeSettypes
-
Method Details
-
addTypeToIndex
Adds type to the index. This method must be executed in a transaction, and the type must be connected to it.- Parameters:
mdType- The type to add. May not benull
-
getRefTypes
Gets ref types for the given project- Parameters:
context- The context object to get the type by. Used to find the correspondingIDtProject. May not benulltypeCategory- The type category. May not benull- Returns:
- The list of associated types or empty collection. Never
null
-
getRefTypes
Gets ref types for the given project- Parameters:
dtProject- The targetIDtProject. May not benulltypeCategory- The type category. May not benull- Returns:
- The list of associated types or empty collection. Never
null
-
getResolvedTypeSetTypes
Gets the resolvedTypeSettypes- Parameters:
context- The resolution context object. May not benulltypeSet- TheTypeSetto resolve. May not benull- Returns:
- The iterable with resolved types. May not be
null
-
getResolvedTypeSetTypes
Gets the resolvedTypeSettypes- Parameters:
dtProject- The target project. May not benulltypeSet- TheTypeSetto resolve. May not benull- Returns:
- The iterable with resolved types. May not be
null
-