Package com._1c.g5.v8.dt.md.typeinfo
Interface IMdTypeIndex
-
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addTypeToIndex(MdType type)
Adds type to the indexList<Type>
getRefTypes(IDtProject dtProject, String typeCategory)
Gets ref types for the given projectList<Type>
getRefTypes(org.eclipse.emf.ecore.EObject context, String typeCategory)
Gets ref types for the given projectIterable<Type>
getResolvedTypeSetTypes(IDtProject dtProject, TypeSet typeSet)
Gets the resolvedTypeSet
typesIterable<Type>
getResolvedTypeSetTypes(org.eclipse.emf.ecore.EObject context, TypeSet typeSet)
Gets the resolvedTypeSet
types
-
-
-
Method Detail
-
addTypeToIndex
void addTypeToIndex(MdType type)
Adds type to the index- Parameters:
type
- The type to add. May not benull
-
getRefTypes
List<Type> getRefTypes(org.eclipse.emf.ecore.EObject context, String typeCategory)
Gets ref types for the given project- Parameters:
context
- The context object to get the type by. Used to find the correspondingIDtProject
. May not benull
typeCategory
- The type category. May not benull
- Returns:
- The list of associated types or empty collection. Never
null
-
getRefTypes
List<Type> getRefTypes(IDtProject dtProject, String typeCategory)
Gets ref types for the given project- Parameters:
dtProject
- The targetIDtProject
. May not benull
typeCategory
- The type category. May not benull
- Returns:
- The list of associated types or empty collection. Never
null
-
getResolvedTypeSetTypes
Iterable<Type> getResolvedTypeSetTypes(org.eclipse.emf.ecore.EObject context, TypeSet typeSet)
Gets the resolvedTypeSet
types- Parameters:
context
- The resolution context object. May not benull
typeSet
- TheTypeSet
to resolve. May not benull
- Returns:
- The iterable with resolved types. May not be
null
-
getResolvedTypeSetTypes
Iterable<Type> getResolvedTypeSetTypes(IDtProject dtProject, TypeSet typeSet)
Gets the resolvedTypeSet
types- Parameters:
dtProject
- The target project. May not benull
typeSet
- TheTypeSet
to resolve. May not benull
- Returns:
- The iterable with resolved types. May not be
null
-
-