MacroMethodContainer Class |
Namespace: CMS.MacroEngine
public class MacroMethodContainer : MacroExtensionContainer<MacroMethodContainer, MacroMethod>
The MacroMethodContainer type exposes the following members.
Name | Description | |
---|---|---|
MacroMethodContainer |
Name | Description | |
---|---|---|
Extensions |
Extensions dictionary
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
RegisteredExtensionNames |
Returns enumerable of all registered Extension names.
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
RegisteredExtensions |
Returns enumerable of all Extensions.
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
RegisteredMethods |
Returns enumerable of all methods.
|
Name | Description | |
---|---|---|
CompareDateTime |
Compares DateTime values.
| |
CompareDouble |
Compares double numbers.
| |
CompareString |
Compares strings (lexicographically).
| |
CompareTimeSpan |
Compares TimeSpan values.
| |
CompareValues |
Returns true if first parameter is lower than or equal to second.
| |
GetBoolParam |
Returns the parameter converted to boolean or false if parameter is not boolean.
| |
GetDecimalParam |
Returns the parameter converted to decimal or zero if parameter is not decimal.
| |
GetDoubleParam |
Returns the parameter converted to double or zero if parameter is not double.
| |
GetExtension(String) |
Returns a Extension of given name (return null if specified Extension does not exist).
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
GetExtension(Type, String) |
Returns the extension by type and name. Does not cache the result. Does not cache the result.
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
GetExtensions |
Gets the extensions for the given type. Does not cache the result.
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
GetGuidParam |
Converts the parameter to GUID. Returns Guid.Empty if parameter is not GUID.
| |
GetIntParam |
Returns the parameter converted to integer or zero if parameter is not integer.
| |
GetLazyParamValue |
Gets the lazy parameter value by evaluating it
| |
GetMethod |
Returns a method of given name (return null if specified method does not exist).
| |
GetMethodForObject |
Returns macro method object of given name if registered for specified object.
It loops through all MacroMethodContainer extensions of given object type.
Returns null if there is no such Extension for given object.
| |
GetMethodsForObject |
Returns list of macro method extension registered for specified object.
Returns null if there is no such extension for given object.
| |
GetOptionalParamT |
Gets the optional param of the given type
| |
GetParamValueT |
Returns the index-th parameter evaluated using given resolver.
| |
GetStringParam |
Returns the parameter converted to string or empty string.
| |
RegisterExtension |
Registers a Extension to the container.
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
RegisterExtensions |
Registers all the methods.
(Overrides MacroExtensionContainerTContainer, TExtensionRegisterExtensions.) | |
RegisterMethod |
Registers the given method.
| |
RegisterMethodInternal(String, FuncEvaluationContext, Object, Object, Type, String, Int32, Object, String) |
Registers the given method within the method table.
| |
RegisterMethodInternal(String, FuncEvaluationContext, Object, Object, Type, String, Int32, Object, String) |
Registers the given method within the method table.
| |
RegisterMethods |
Registers all the methods.
| |
RegisterMethods(MacroMethod) |
Registers the given methods.
| |
UnwrapContainer |
Unwraps all DateTime and TimeSpan containers to their original system value.
|