Class CommonModuleFunctionProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.expressions.functions.CommonModuleFunctionProvider
-
- All Implemented Interfaces:
IFunctionProvider
public class CommonModuleFunctionProvider extends Object implements IFunctionProvider
SpecialIFunctionProvidercollects items corresponding to the methods fromCommonModulefor Expression language in DCS
-
-
Constructor Summary
Constructors Constructor Description CommonModuleFunctionProvider(String moduleName, org.eclipse.emf.common.util.URI uri, boolean isGlobal, IBmObject contextObject, ExportMethodTypeProvider exportMethodTypeProvider, INamingService namingService, IBmModelManager modelManager)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionsFunctionsFunctiongetFunctionByName(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 Detail
-
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 Detail
-
getItems
public Collection<? extends IExpressionsFunctionsItem> 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
public ExpressionsFunctionsFunction getFunctionByName(String name)
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
-
-