DataMethodCall

open class DataMethodCall : DataValue

Encapsulates the application of an OData method (function or action) to a list of parameters. This is used to represent calls to actions and functions defined within an entity model, as opposed to QueryFunction which is used to represent calls to builtin functions.

  • Default initializer.

    Declaration

    Swift

    override public init()
  • Declaration

    Swift

    open class func apply(method: DataMethod, parameters: ParameterList) -> DataMethodCall

    Parameters

    method

    Value for method.

    parameters

    Value for parameters.

    Return Value

    A new function application.

  • Declaration

    Swift

    override open func copyMutable() -> DataValue

    Return Value

    A clone of this value if it (together with all value subcomponents) is possibly mutable, or return self value if it (together with all value subcomponents) is definitely immutable. The resulting value might share mutable metadata with this query.

  • Data type of the wrapped value.

    Declaration

    Swift

    override open var dataType: DataType { get }
  • Metadata for the function or action.

    Declaration

    Swift

    public final var method: DataMethod { get set }
  • Actual parameters for ths method application.

    Declaration

    Swift

    public final var parameters: ParameterList { get set }
  • Convert this data value to a string. If the dataType is defined by XML Schema Part 2: Datatypes, then the corresponding lexical format is used. JSON format is used for structured values (arrays and objects).

    Declaration

    Swift

    override open func toString() -> String

    Return Value

    Lexical representation of this data value.