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
SpecialIFunctionProvider
collects items corresponding to the methods fromCommonModule
for 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 ExpressionsFunctionsFunction
getFunctionByName(String name)
GetsExpressionsFunctionsFunction
by nameCollection<? extends IExpressionsFunctionsItem>
getItems()
GetsIExpressionsFunctionsItem
s corresponding to the available elements in the Expression language in DCSboolean
hasItems()
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 benull
uri
-URI
of theCommonModule
, cannot benull
isGlobal
-true
ifCommonModule
is global,false
otherwisecontextObject
- context object for resolving elements, cannot benull
exportMethodTypeProvider
-ExportMethodTypeProvider
for getting types of the method elements, cannot benull
namingService
-INamingService
for converting URIs and FQNs, cannot benull
modelManager
-IBmModelManager
for executing BM tasks, cannot benull
-
-
Method Detail
-
getItems
public Collection<? extends IExpressionsFunctionsItem> getItems()
Description copied from interface:IFunctionProvider
GetsIExpressionsFunctionsItem
s corresponding to the available elements in the Expression language in DCS- Specified by:
getItems
in interfaceIFunctionProvider
- Returns:
- collection of
IExpressionsFunctionsItem
corresponding to the available elements in the Expression language in DCS, nevernull
-
getFunctionByName
public ExpressionsFunctionsFunction getFunctionByName(String name)
Description copied from interface:IFunctionProvider
GetsExpressionsFunctionsFunction
by name- Specified by:
getFunctionByName
in interfaceIFunctionProvider
- Parameters:
name
- name of theExpressionsFunctionsFunction
, cannot benull
- Returns:
ExpressionsFunctionsFunction
ornull
if there is no items withname
-
hasItems
public boolean hasItems()
Description copied from interface:IFunctionProvider
Checks that there are items in provider- Specified by:
hasItems
in interfaceIFunctionProvider
- Returns:
true
if there are items in provider,false
otherwise
-
-