Class CommonModuleFunctionProvider
java.lang.Object
com._1c.g5.v8.dt.dcs.expressions.functions.CommonModuleFunctionProvider
- All Implemented Interfaces:
IFunctionProvider
Special
IFunctionProvider collects items corresponding to the methods from CommonModule for Expression language in DCS-
Constructor Summary
ConstructorsConstructorDescriptionCommonModuleFunctionProvider(String moduleName, org.eclipse.emf.common.util.URI uri, boolean isGlobal, IBmObject contextObject, ExportMethodTypeProvider exportMethodTypeProvider, INamingService namingService, IBmModelManager modelManager) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetFunctionByName(String name) GetsExpressionsFunctionsFunctionby nameCollection<? extends IExpressionsFunctionsItem>getItems()GetsIExpressionsFunctionsItems corresponding to the available elements in the Expression language in DCSbooleanhasItems()Checks that there are items in provider
-
Constructor Details
-
CommonModuleFunctionProvider
public CommonModuleFunctionProvider(String moduleName, org.eclipse.emf.common.util.URI uri, boolean isGlobal, IBmObject contextObject, ExportMethodTypeProvider exportMethodTypeProvider, INamingService namingService, IBmModelManager modelManager) Constructor- Parameters:
moduleName- name of theCommonModule, cannot benulluri-URIof theCommonModule, cannot benullisGlobal-trueifCommonModuleis global,falseotherwisecontextObject- context object for resolving elements, cannot benullexportMethodTypeProvider-ExportMethodTypeProviderfor getting types of the method elements, cannot benullnamingService-INamingServicefor converting URIs and FQNs, cannot benullmodelManager-IBmModelManagerfor executing BM tasks, cannot benull
-
-
Method Details
-
getItems
Description copied from interface:IFunctionProviderGetsIExpressionsFunctionsItems corresponding to the available elements in the Expression language in DCS- Specified by:
getItemsin interfaceIFunctionProvider- Returns:
- collection of
IExpressionsFunctionsItemcorresponding to the available elements in the Expression language in DCS, nevernull
-
getFunctionByName
Description copied from interface:IFunctionProviderGetsExpressionsFunctionsFunctionby name- Specified by:
getFunctionByNamein interfaceIFunctionProvider- Parameters:
name- name of theExpressionsFunctionsFunction, cannot benull- Returns:
ExpressionsFunctionsFunctionornullif there is no items withname
-
hasItems
public boolean hasItems()Description copied from interface:IFunctionProviderChecks that there are items in provider- Specified by:
hasItemsin interfaceIFunctionProvider- Returns:
trueif there are items in provider,falseotherwise
-