createStringValueAsAttributeStrategy

Type: Function

Sets an attribute based on a string value on the context node.

Arguments

  1. attributeName

    (Required)

    Type: String

    The name of the attribute to be set

  2. valueName

    (Required)

    Type: String

    The name of the value to look for in the specification

  3. defaultValue

    (Required)

    Type: String | NULL

    The default value when the value is not present in the specification or null when no attribute should be set

  4. mapToAttributeValue

    (Required)

    Type: Function

    The function to get the attribute value by specification value

    Arguments

Returns

Type: Function

Arguments